2019-09-30 10:52:11 -04:00
|
|
|
Name: gsm
|
2024-02-01 08:40:19 +00:00
|
|
|
Version: 1.0.22
|
|
|
|
|
Release: 1
|
2019-09-30 10:52:11 -04:00
|
|
|
Summary: GSM speech compressor Shared libraries and Utilities
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.quut.com/gsm/
|
|
|
|
|
Source0: http://www.quut.com/gsm/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# below patches are from redhat.
|
|
|
|
|
Patch0: gsm-makefile.patch
|
|
|
|
|
Patch1: gsm-warnings.patch
|
2023-04-14 22:29:22 +08:00
|
|
|
Patch2: support-specify-cc.patch
|
2019-09-30 10:52:11 -04:00
|
|
|
|
|
|
|
|
Provides: gsm-tool
|
|
|
|
|
Obsoletes: gsm-tool
|
|
|
|
|
|
2021-06-04 09:31:15 +08:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
2019-09-30 10:52:11 -04:00
|
|
|
%description
|
|
|
|
|
Contains the library for a GSM speech compressor, libgsm implements the European
|
|
|
|
|
GSM 06.10 provisional standard for full-rate speech transcoding, prI-ETS 300 036,
|
|
|
|
|
which uses RPE/LTP (residual pulse excitation/long term prediction) coding at 13 kbit/s.
|
|
|
|
|
GSM 06.10 compresses frames of 162 13-bit samples (8 kHz sampling rate) into 260 bits.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for gsm
|
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
|
%description devel
|
|
|
|
|
Contains header files and development libraries for libgsm.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Help files for gsm
|
|
|
|
|
%description help
|
|
|
|
|
Contains documents and manuals files for gsm
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-01 08:40:19 +00:00
|
|
|
%autosetup -n %{name}-1.0-pl22 -p1
|
2019-09-30 10:52:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make LDFLAGS="%{?__global_ldflags}" %{?_smp_mflags} all
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}{%{_bindir},%{_includedir}/gsm,%{_libdir},%{_mandir}/{man1,man3}}
|
|
|
|
|
|
|
|
|
|
make install INSTALL_ROOT=%{buildroot}%{_prefix} GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
|
|
|
|
|
GSM_INSTALL_LIB=%{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
|
|
ln -s gsm/gsm.h %{buildroot}%{_includedir}
|
|
|
|
|
|
|
|
|
|
echo ".so toast.1" > %{buildroot}%{_mandir}/man1/tcat.1
|
|
|
|
|
echo ".so toast.1" > %{buildroot}%{_mandir}/man1/untoast.1
|
|
|
|
|
|
|
|
|
|
%check
|
2024-02-01 08:40:19 +00:00
|
|
|
[ -f %{buildroot}%{_libdir}/libgsm.so.1.0.19 ]
|
2019-09-30 10:52:11 -04:00
|
|
|
export LDFLAGS="%{?__global_ldflags}"
|
|
|
|
|
make addtst
|
|
|
|
|
|
|
|
|
|
%ldconfig_post
|
|
|
|
|
%ldconfig_postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYRIGHT
|
|
|
|
|
%{_libdir}/libgsm.so.*
|
|
|
|
|
%{_bindir}/tcat
|
|
|
|
|
%{_bindir}/*oast
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%dir %{_includedir}/gsm
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/libgsm.so
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc ChangeLog MACHINES README
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-01 08:40:19 +00:00
|
|
|
* Thu Feb 01 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 1.0.22-1
|
|
|
|
|
- update to 1.0.22
|
|
|
|
|
|
2023-04-14 22:29:22 +08:00
|
|
|
* Fri Apr 14 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 1.0.18-6
|
|
|
|
|
- Support specify CC
|
|
|
|
|
|
2021-06-04 09:31:15 +08:00
|
|
|
* Fri Jun 4 2021 wangkerong <wangkerong@huawei.com> 1.0.18-5
|
|
|
|
|
- Add a BuildRequires for gcc
|
|
|
|
|
|
2019-09-30 10:52:11 -04:00
|
|
|
* Wed Sep 18 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.0.8-4
|
|
|
|
|
- Package init
|