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