2b3f1d
%global ver_maj 1.0
2b3f1d
%global ver_min 17
2b3f1d
2b3f1d
Name:           gsm
2b3f1d
Version:        %{ver_maj}.%{ver_min}
2b3f1d
Release:        5%{?dist}
2b3f1d
Summary:        Shared libraries for GSM speech compressor
2b3f1d
2b3f1d
Group:          System Environment/Libraries
2b3f1d
License:        MIT
2b3f1d
URL:            http://www.quut.com/gsm/
2b3f1d
Source:         http://www.quut.com/gsm/%{name}-%{version}.tar.gz
2b3f1d
Patch0:         %{name}-makefile.patch
2b3f1d
Patch1:         %{name}-warnings.patch
2b3f1d
2b3f1d
%global srcver %{ver_maj}-pl%{ver_min}
2b3f1d
2b3f1d
%description
2b3f1d
Contains runtime shared libraries for libgsm, an implementation of
2b3f1d
the European GSM 06.10 provisional standard for full-rate speech
2b3f1d
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
2b3f1d
excitation/long term prediction) coding at 13 kbit/s.
2b3f1d
2b3f1d
GSM 06.10 compresses frames of 162 13-bit samples (8 kHz sampling
2b3f1d
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
2b3f1d
with typical UNIX applications, our implementation turns frames of 160
2b3f1d
16-bit linear samples into 33-byte frames (1650 Bytes/s).
2b3f1d
The quality of the algorithm is good enough for reliable speaker
2b3f1d
recognition; even music often survives transcoding in recognizable
2b3f1d
form (given the bandwidth limitations of 8 kHz sampling rate).
2b3f1d
2b3f1d
The interfaces offered are a front end modelled after compress(1), and
2b3f1d
a library API.  Compression and decompression run faster than realtime
2b3f1d
on most SPARCstations.  The implementation has been verified against the
2b3f1d
ETSI standard test patterns.
2b3f1d
2b3f1d
%package        tools
2b3f1d
Summary:        GSM speech compressor tools
2b3f1d
Group:          Applications/Multimedia
2b3f1d
2b3f1d
%description    tools
2b3f1d
Contains command line utilities for libgsm, an implementation of
2b3f1d
the European GSM 06.10 provisional standard for full-rate speech
2b3f1d
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
2b3f1d
excitation/long term prediction) coding at 13 kbit/s.
2b3f1d
2b3f1d
%package        devel
2b3f1d
Summary:        Header files and development libraries for libgsm
2b3f1d
Group:          Development/Libraries
2b3f1d
Requires:       %{name}%{_isa} = %{version}-%{release}
2b3f1d
2b3f1d
%description    devel
2b3f1d
Contains header files and development libraries for libgsm, an
2b3f1d
implementation of the European GSM 06.10 provisional standard for
2b3f1d
full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP
2b3f1d
(residual pulse excitation/long term prediction) coding at 13 kbit/s.
2b3f1d
2b3f1d
%prep
2b3f1d
%setup -n gsm-%{srcver} -q
2b3f1d
%patch0 -p1 -b .mk
2b3f1d
%patch1 -p1 -b .warn
2b3f1d
2b3f1d
%build
2b3f1d
export LDFLAGS="%{?__global_ldflags}"
2b3f1d
make %{?_smp_mflags} all
2b3f1d
2b3f1d
%install
2b3f1d
export LDFLAGS="%{?__global_ldflags}"
2b3f1d
mkdir -p %{buildroot}{%{_bindir},%{_includedir}/gsm,%{_libdir},%{_mandir}/{man1,man3}}
2b3f1d
2b3f1d
make install \
2b3f1d
	INSTALL_ROOT=%{buildroot}%{_prefix} \
2b3f1d
	GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
2b3f1d
	GSM_INSTALL_LIB=%{buildroot}%{_libdir}
2b3f1d
2b3f1d
# some apps look for this in /usr/include
2b3f1d
ln -s gsm/gsm.h %{buildroot}%{_includedir}
2b3f1d
2b3f1d
echo ".so toast.1" > %{buildroot}%{_mandir}/man1/tcat.1
2b3f1d
echo ".so toast.1" > %{buildroot}%{_mandir}/man1/untoast.1
2b3f1d
2b3f1d
%check
2b3f1d
# This is to ensure that the patch creates the proper library version.
2b3f1d
[ -f %{buildroot}%{_libdir}/libgsm.so.%{version} ]
2b3f1d
export LDFLAGS="%{?__global_ldflags}"
2b3f1d
make addtst
2b3f1d
2b3f1d
%ldconfig_scriptlets
2b3f1d
2b3f1d
%files
2b3f1d
%license COPYRIGHT
2b3f1d
%doc ChangeLog MACHINES README
2b3f1d
%{_libdir}/libgsm.so.*
2b3f1d
2b3f1d
%files tools
2b3f1d
%{_bindir}/tcat
2b3f1d
%{_bindir}/toast
2b3f1d
%{_bindir}/untoast
2b3f1d
%{_mandir}/man1/tcat.1*
2b3f1d
%{_mandir}/man1/toast.1*
2b3f1d
%{_mandir}/man1/untoast.1*
2b3f1d
2b3f1d
%files devel
2b3f1d
%dir %{_includedir}/gsm
2b3f1d
%{_includedir}/gsm/gsm.h
2b3f1d
%{_includedir}/gsm.h
2b3f1d
%{_libdir}/libgsm.so
2b3f1d
%{_mandir}/man3/gsm.3*
2b3f1d
%{_mandir}/man3/gsm_explode.3*
2b3f1d
%{_mandir}/man3/gsm_option.3*
2b3f1d
%{_mandir}/man3/gsm_print.3*
2b3f1d
2b3f1d
%changelog
2b3f1d
* Wed Mar 07 2018 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.17-5
2b3f1d
- ensure binaries are linked with Fedora LDFLAGS (#1548532)
2b3f1d
- use ldconfig_scriptlets macro
2b3f1d
- add proper man links for tcat and untoast
2b3f1d
2b3f1d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.17-4
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2b3f1d
2b3f1d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.17-3
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2b3f1d
2b3f1d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.17-2
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2b3f1d
2b3f1d
* Thu Jun 29 2017 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.17-1
2b3f1d
- update to 1.0.17 (#1465878)
2b3f1d
- ease future updates by better macro use
2b3f1d
- drop obsolete patch hunks
2b3f1d
- fix missing prototype for fchown warning
2b3f1d
2b3f1d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-2
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2b3f1d
2b3f1d
* Thu Nov 24 2016 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.16-1
2b3f1d
- update to 1.0.16 (#1397242)
2b3f1d
- use license macro
2b3f1d
- drop obsolete stuff and simplify
2b3f1d
2b3f1d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.13-14
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b3f1d
2b3f1d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-13
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2b3f1d
2b3f1d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-12
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2b3f1d
2b3f1d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-11
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2b3f1d
2b3f1d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-10
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2b3f1d
2b3f1d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-9
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2b3f1d
2b3f1d
* Tue Nov 20 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.13-8
2b3f1d
- Defines changed to globals
2b3f1d
2b3f1d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-7
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2b3f1d
2b3f1d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-6
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2b3f1d
2b3f1d
* Wed Nov 30 2011 Jaroslav Škarvada <jskarvad@redhat.com> - 1.0.13-5
2b3f1d
- Fixed build failure, defuzzified gsm-warnings patch
2b3f1d
  Resolves: rhbz#757136
2b3f1d
2b3f1d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-4
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2b3f1d
2b3f1d
* Sat Jan 16 2010 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.13-3
2b3f1d
- update homepage and source URLs
2b3f1d
2b3f1d
* Wed Jul 29 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.0.13-2
2b3f1d
- Fix dangling symlinks for shared lib, thanks to Lucian Langa for pointing out the issue.
2b3f1d
2b3f1d
* Tue Jul 28 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.0.13-1.1
2b3f1d
- Upload sources
2b3f1d
2b3f1d
* Tue Jul 28 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.0.13-1
2b3f1d
- Update to 1.0.13
2b3f1d
2b3f1d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-8
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2b3f1d
2b3f1d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-7
2b3f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2b3f1d
2b3f1d
* Mon Feb 11 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.0.12-6
2b3f1d
- Rebuild for GCC 4.3
2b3f1d
2b3f1d
* Sun Aug 26 2007 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.12-5
2b3f1d
- install symlinks instead of binaries in -devel
2b3f1d
2b3f1d
* Sat Aug 25 2007 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.12-4
2b3f1d
- rebuild for BuildID
2b3f1d
- specfile cleanups
2b3f1d
2b3f1d
* Sun May 13 2007 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.12-3
2b3f1d
- fix parallel make
2b3f1d
2b3f1d
* Fri May 11 2007 Dominik Mierzejewski <rpm[AT]greysector.net> 1.0.12-2
2b3f1d
- fix some warnings
2b3f1d
- fix 64bit testsuite issue as described at gsm homepage
2b3f1d
- add compatibility header symlink
2b3f1d
- split off binaries into a separate package
2b3f1d
2b3f1d
* Sun Apr 15 2007 Michael Schwendt <mschwendt[AT]users.sf.net> 1.0.12-1
2b3f1d
- Update to Release 1.0 Patchlevel 12.
2b3f1d
- Build with -fPIC not just for non-ix86.
2b3f1d
- Add check section to ensure proper library version.
2b3f1d
- Remove static library.
2b3f1d
2b3f1d
* Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 1.0.10-12
2b3f1d
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
2b3f1d
2b3f1d
* Tue Sep 26 2006 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-11
2b3f1d
- rebuild for FC6
2b3f1d
2b3f1d
* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
2b3f1d
- switch to new release field
2b3f1d
2b3f1d
* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
2b3f1d
- add dist
2b3f1d
2b3f1d
* Mon Jun 27 2005 David Woodhouse <dwmw2@infradead.org>
2b3f1d
- 1.0.10-0.lvn.10: Clean up installation
2b3f1d
2b3f1d
* Sat Jun 25 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> 
2b3f1d
- 1.0.10-0.lvn.9: mv libgsm.a only when needed
2b3f1d
2b3f1d
* Fri Dec 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> 
2b3f1d
- 1.0.10-0.lvn.8: Use -fPIC on non ix86
2b3f1d
2b3f1d
* Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-0.lvn.7: moved to rpm.livna.org
2b3f1d
2b3f1d
* Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-0.fdr.7: applied patch from Ville, remove epoch since it's allowed
2b3f1d
2b3f1d
* Sat Sep 13 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 0:1.0.10-0.fdr.6: remove second makeinstall
2b3f1d
2b3f1d
* Sun Sep 07 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 0:1.0.10-0.fdr.5
2b3f1d
- added back epochs, I surrender
2b3f1d
- fix RPM_OPT_FLAGS hackery
2b3f1d
2b3f1d
* Fri Jul 18 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-0.fdr.4: remove epoch mentions
2b3f1d
2b3f1d
* Sat Jul 05 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-0.fdr.3
2b3f1d
- pull in RPM_OPT_FLAGS in patch instead of using perl to wedge it in
2b3f1d
- fix group
2b3f1d
- -p'ize ldconfig
2b3f1d
2b3f1d
* Tue Jun 10 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 1.0.10-0.fdr.2
2b3f1d
- Fix libgsm.so.* being files instead of symlinks
2b3f1d
2b3f1d
* Thu May 29 2003 Thomas Vander Stichele <thomas at apestaart dot org>
2b3f1d
- 0:1.0.10-0.fdr.1: initial RPM release