d683a8e
%{?mingw_package_header}
d683a8e
d683a8e
Name:           mingw-gsm
aed4d37
Version:        1.0.16
49e3edc
Release:        11%{?dist}
d683a8e
Summary:        Shared libraries for GSM speech compressor
d683a8e
d683a8e
License:        MIT
d683a8e
URL:            http://www.quut.com/gsm/
d683a8e
Source:         http://www.quut.com/gsm/gsm-%{version}.tar.gz
d683a8e
# patches from gsm package
d683a8e
Patch1:         gsm-warnings.patch
d683a8e
Patch2:         gsm-64bit.patch
d683a8e
# patch for MinGW (build dll, .exe suffix)
d683a8e
# (stdin/out in tools not supported for now)
d683a8e
Patch3:         gsm-mingw.patch
d683a8e
d683a8e
BuildArch:      noarch
d683a8e
0e1e9f6
BuildRequires: make
d683a8e
BuildRequires:  mingw32-filesystem >= 95
d683a8e
BuildRequires:  mingw32-gcc
d683a8e
d683a8e
BuildRequires:  mingw64-filesystem >= 95
d683a8e
BuildRequires:  mingw64-gcc
d683a8e
aed4d37
%global srcver 1.0-pl16
d683a8e
d683a8e
%description
d683a8e
Contains runtime shared libraries for libgsm, an implementation of
d683a8e
the European GSM 06.10 provisional standard for full-rate speech
d683a8e
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
d683a8e
excitation/long term prediction) coding at 13 kbit/s.
d683a8e
d683a8e
GSM 06.10 compresses frames of 162 13-bit samples (8 kHz sampling
d683a8e
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
d683a8e
with typical UNIX applications, our implementation turns frames of 160
d683a8e
16-bit linear samples into 33-byte frames (1650 Bytes/s).
d683a8e
The quality of the algorithm is good enough for reliable speaker
d683a8e
recognition; even music often survives transcoding in recognizable
d683a8e
form (given the bandwidth limitations of 8 kHz sampling rate).
d683a8e
d683a8e
The interfaces offered are a front end modelled after compress(1), and
d683a8e
a library API.  Compression and decompression run faster than realtime
d683a8e
on most SPARCstations.  The implementation has been verified against the
d683a8e
ETSI standard test patterns.
d683a8e
d683a8e
d683a8e
%package -n mingw32-gsm
d683a8e
Summary:        %{summary}
d683a8e
d683a8e
%description -n mingw32-gsm
d683a8e
Contains runtime shared libraries, header files, and development libraries for
d683a8e
libgsm, an implementation of the European GSM 06.10 provisional standard for
d683a8e
full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP (residual
d683a8e
pulse excitation/long term prediction) coding at 13 kbit/s.
d683a8e
d683a8e
GSM 06.10 compresses frames of 162 13-bit samples (8 kHz sampling
d683a8e
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
d683a8e
with typical UNIX applications, our implementation turns frames of 160
d683a8e
16-bit linear samples into 33-byte frames (1650 Bytes/s).
d683a8e
The quality of the algorithm is good enough for reliable speaker
d683a8e
recognition; even music often survives transcoding in recognizable
d683a8e
form (given the bandwidth limitations of 8 kHz sampling rate).
d683a8e
d683a8e
The interfaces offered are a front end modelled after compress(1), and
d683a8e
a library API.  Compression and decompression run faster than realtime
d683a8e
on most SPARCstations.  The implementation has been verified against the
d683a8e
ETSI standard test patterns.
d683a8e
d683a8e
This package is MinGW compiled gsm library for the Win32 target.
d683a8e
d683a8e
d683a8e
%package -n mingw32-gsm-tools
d683a8e
Summary:        GSM speech compressor tools
d683a8e
Requires:       mingw32-gsm = %{version}-%{release}
d683a8e
d683a8e
%description -n mingw32-gsm-tools
d683a8e
Contains command line utilities for libgsm, an implementation of
d683a8e
the European GSM 06.10 provisional standard for full-rate speech
d683a8e
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
d683a8e
excitation/long term prediction) coding at 13 kbit/s.
d683a8e
d683a8e
This package are MinGW compiled gsm tools for the Win32 target.
d683a8e
d683a8e
d683a8e
%package -n mingw64-gsm
d683a8e
Summary:        %{summary}
d683a8e
d683a8e
%description -n mingw64-gsm
d683a8e
Contains runtime shared libraries for libgsm, an implementation of
d683a8e
the European GSM 06.10 provisional standard for full-rate speech
d683a8e
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
d683a8e
excitation/long term prediction) coding at 13 kbit/s.
d683a8e
d683a8e
GSM 06.10 compresses frames of 162 13-bit samples (8 kHz sampling
d683a8e
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
d683a8e
with typical UNIX applications, our implementation turns frames of 160
d683a8e
16-bit linear samples into 33-byte frames (1650 Bytes/s).
d683a8e
The quality of the algorithm is good enough for reliable speaker
d683a8e
recognition; even music often survives transcoding in recognizable
d683a8e
form (given the bandwidth limitations of 8 kHz sampling rate).
d683a8e
d683a8e
The interfaces offered are a front end modelled after compress(1), and
d683a8e
a library API.  Compression and decompression run faster than realtime
d683a8e
on most SPARCstations.  The implementation has been verified against the
d683a8e
ETSI standard test patterns.
d683a8e
d683a8e
This package is MinGW compiled gsm library for the Win64 target.
d683a8e
d683a8e
d683a8e
%package -n mingw64-gsm-tools
d683a8e
Summary:        Tools for Free Lossless Audio Codec
d683a8e
Requires:       mingw64-gsm = %{version}-%{release}
d683a8e
d683a8e
%description -n mingw64-gsm-tools
d683a8e
Contains command line utilities for libgsm, an implementation of
d683a8e
the European GSM 06.10 provisional standard for full-rate speech
d683a8e
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
d683a8e
excitation/long term prediction) coding at 13 kbit/s.
d683a8e
d683a8e
This package are MinGW compiled gsm tools for the Win64 target.
d683a8e
d683a8e
d683a8e
%{?mingw_debug_package}
d683a8e
d683a8e
d683a8e
%prep
d683a8e
%setup -qc
d683a8e
pushd gsm-%{srcver}
d683a8e
%patch1 -p1 -b .warn
d683a8e
%patch2 -p1 -b .64bit
d683a8e
%patch3 -p1
d683a8e
popd
d683a8e
d683a8e
d683a8e
%build
d683a8e
cp -a gsm-%{srcver} build_win32
d683a8e
cp -a gsm-%{srcver} build_win64
d683a8e
d683a8e
pushd build_win32
d683a8e
make %{?_smp_mflags} all \
d683a8e
  CC=%mingw32_cc \
d683a8e
  AR=%mingw32_ar \
d683a8e
  RANLIB=%mingw32_ranlib \
d683a8e
  RPM_CFLAGS="%{mingw32_cflags}" \
d683a8e
  RPM_LDLAGS="%{mingw32_ldlags}"
d683a8e
popd
d683a8e
d683a8e
pushd build_win64
d683a8e
make %{?_smp_mflags} all \
d683a8e
  CC=%mingw64_cc \
d683a8e
  AR=%mingw64_ar \
d683a8e
  RANLIB=%mingw64_ranlib \
d683a8e
  RPM_CFLAGS="%{mingw64_cflags}" \
d683a8e
  RPM_LDLAGS="%{mingw64_ldlags}"
d683a8e
popd
d683a8e
d683a8e
d683a8e
%install
d683a8e
pushd build_win32
d683a8e
mkdir -p \
d683a8e
  %{buildroot}%{mingw32_bindir} \
d683a8e
  %{buildroot}%{mingw32_mandir}/man1 \
d683a8e
  %{buildroot}%{mingw32_mandir}/man3 \
d683a8e
  %{buildroot}%{mingw32_includedir}/gsm \
d683a8e
  %{buildroot}%{mingw32_libdir}
d683a8e
d683a8e
make install \
d683a8e
  CC=%mingw32_cc \
d683a8e
  AR=%mingw32_ar \
d683a8e
  RANLIB=%mingw32_ranlib \
d683a8e
  INSTALL_ROOT=%{buildroot}%{mingw32_prefix} \
d683a8e
  GSM_INSTALL_BIN=%{buildroot}%{mingw32_bindir} \
d683a8e
  GSM_INSTALL_INC=%{buildroot}%{mingw32_includedir}/gsm \
d683a8e
  GSM_INSTALL_LIB=%{buildroot}%{mingw32_libdir} \
d683a8e
  GSM_INSTALL_MAN=%{buildroot}%{mingw32_mandir}/man3 \
d683a8e
  TOAST_INSTALL_BIN=%{buildroot}%{mingw32_bindir} \
d683a8e
  TOAST_INSTALL_MAN=%{buildroot}%{mingw32_mandir}/man1
d683a8e
d683a8e
# some apps look for this in /usr/include
d683a8e
ln -s gsm/gsm.h %{buildroot}%{mingw32_includedir}
d683a8e
popd
d683a8e
d683a8e
pushd build_win64
d683a8e
mkdir -p \
d683a8e
  %{buildroot}%{mingw64_bindir} \
d683a8e
  %{buildroot}%{mingw64_mandir}/man1 \
d683a8e
  %{buildroot}%{mingw64_mandir}/man3 \
d683a8e
  %{buildroot}%{mingw64_includedir}/gsm \
d683a8e
  %{buildroot}%{mingw64_libdir}
d683a8e
d683a8e
make install \
d683a8e
  CC=%mingw64_cc \
d683a8e
  AR=%mingw64_ar \
d683a8e
  RANLIB=%mingw64_ranlib \
d683a8e
  INSTALL_ROOT=%{buildroot}%{mingw64_prefix} \
d683a8e
  GSM_INSTALL_BIN=%{buildroot}%{mingw64_bindir} \
d683a8e
  GSM_INSTALL_INC=%{buildroot}%{mingw64_includedir}/gsm \
d683a8e
  GSM_INSTALL_LIB=%{buildroot}%{mingw64_libdir} \
d683a8e
  GSM_INSTALL_MAN=%{buildroot}%{mingw64_mandir}/man3 \
d683a8e
  TOAST_INSTALL_BIN=%{buildroot}%{mingw64_bindir} \
d683a8e
  TOAST_INSTALL_MAN=%{buildroot}%{mingw64_mandir}/man1
d683a8e
d683a8e
# some apps look for this in /usr/include
d683a8e
ln -s gsm/gsm.h %{buildroot}%{mingw64_includedir}
d683a8e
popd
d683a8e
d683a8e
d683a8e
%files -n mingw32-gsm
aed4d37
%license gsm-%{srcver}/COPYRIGHT
d683a8e
%doc gsm-%{srcver}/ChangeLog
d683a8e
%doc gsm-%{srcver}/README
d683a8e
%dir %{mingw32_includedir}/gsm
d683a8e
%exclude %{mingw32_mandir}
d683a8e
%exclude %{mingw32_libdir}/libgsm.a
d683a8e
%{mingw32_bindir}/libgsm-1.dll
d683a8e
%{mingw32_libdir}/libgsm.dll.a
d683a8e
%{mingw32_includedir}/gsm.h
d683a8e
%{mingw32_includedir}/gsm/gsm.h
d683a8e
d683a8e
%files -n mingw32-gsm-tools
d683a8e
%{mingw32_bindir}/*.exe
d683a8e
d683a8e
%files -n mingw64-gsm
aed4d37
%license gsm-%{srcver}/COPYRIGHT
d683a8e
%doc gsm-%{srcver}/ChangeLog
d683a8e
%doc gsm-%{srcver}/README
d683a8e
%dir %{mingw64_includedir}/gsm
d683a8e
%exclude %{mingw64_mandir}
d683a8e
%exclude %{mingw64_libdir}/libgsm.a
d683a8e
%{mingw64_bindir}/libgsm-1.dll
d683a8e
%{mingw64_libdir}/libgsm.dll.a
d683a8e
%{mingw64_includedir}/gsm.h
d683a8e
%{mingw64_includedir}/gsm/gsm.h
d683a8e
d683a8e
%files -n mingw64-gsm-tools
d683a8e
%{mingw64_bindir}/*.exe
d683a8e
d683a8e
d683a8e
%changelog
49e3edc
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-11
49e3edc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
49e3edc
830096a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-10
830096a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
830096a
ed85f1e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-9
ed85f1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ed85f1e
704c92d
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-8
704c92d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
704c92d
c5ea335
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-7
c5ea335
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c5ea335
85c1e5c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-6
85c1e5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
85c1e5c
248d001
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-5
248d001
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
248d001
3a5c106
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-4
3a5c106
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3a5c106
f24331f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-3
f24331f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f24331f
3d0d8b8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-2
3d0d8b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3d0d8b8
aed4d37
* Wed Jan 11 2017 František Dvořák <valtri@civ.zcu.cz> - 1.0.16-1
aed4d37
- Update to 1.0.16
aed4d37
b80790b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.13-3
b80790b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b80790b
107fa3d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2
107fa3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
107fa3d
d683a8e
* Mon Jun 16 2014 František Dvořák <valtri@civ.zcu.cz> - 1.0.13-1
d683a8e
- Initial package