2024-01-05 23:29:48 +01:00
|
|
|
%define majver %(echo %version | cut -d . -f1-2)
|
|
|
|
%define minver %(echo %version | cut -d . -f3)
|
|
|
|
|
|
|
|
Name: gsm
|
2024-01-05 23:29:49 +01:00
|
|
|
Version: 1.0.22
|
2024-01-05 23:29:48 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 23:29:48 +01:00
|
|
|
Summary: GSM 06.10 lossy speech compression library
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 23:29:49 +01:00
|
|
|
URL: https://www.quut.com/gsm/
|
2024-01-05 23:29:48 +01:00
|
|
|
Source: http://www.quut.com/gsm/gsm-%{version}.tar.gz
|
2024-01-05 23:29:49 +01:00
|
|
|
Patch0: gsm-1.0.20-shared.patch
|
2024-01-05 23:29:48 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: libgsm = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
GSM 06.10 lossy speech compression library.
|
|
|
|
|
|
|
|
%package -n libgsm
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: GSM 06.10 lossy speech compression library
|
|
|
|
|
|
|
|
%description -n libgsm
|
|
|
|
GSM 06.10 lossy speech compression library.
|
|
|
|
This package contains the shared library files.
|
|
|
|
|
|
|
|
%package -n libgsm-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: libgsm = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libgsm-devel
|
|
|
|
GSM 06.10 lossy speech compression library.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n gsm-%{majver}-pl%{minver}
|
2024-01-05 23:29:48 +01:00
|
|
|
%patch0 -p1
|
2024-01-05 23:29:48 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 23:29:48 +01:00
|
|
|
%make all \
|
|
|
|
%ifarch x86_64
|
|
|
|
LTP_CUT="-fPIC"
|
|
|
|
%endif
|
2024-01-05 23:29:48 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d \
|
|
|
|
%{buildroot}%{_bindir} \
|
|
|
|
%{buildroot}%{_libdir} \
|
|
|
|
%{buildroot}%{_includedir}/gsm \
|
|
|
|
%{buildroot}%{_mandir}/{man1,man3}
|
|
|
|
|
|
|
|
make install \
|
|
|
|
INSTALL_ROOT=%{buildroot} \
|
|
|
|
TOAST_INSTALL_BIN=%{buildroot}%{_bindir} \
|
|
|
|
TOAST_INSTALL_MAN=%{buildroot}%{_mandir}/man1 \
|
|
|
|
GSM_INSTALL_LIB=%{buildroot}%{_libdir} \
|
|
|
|
GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
|
|
|
|
GSM_INSTALL_MAN=%{buildroot}%{_mandir}/man3
|
|
|
|
|
2024-01-05 23:29:49 +01:00
|
|
|
cp -ap lib/libgsm* %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_includedir}/gsm
|
|
|
|
cp -a inc/*.h %{buildroot}%{_includedir}/gsm/
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_mandir}/man3
|
|
|
|
cp -a man/*.3 %{buildroot}%{_mandir}/man3/
|
|
|
|
|
2024-01-05 23:29:49 +01:00
|
|
|
# Fix symlinks pointing to buildroot
|
|
|
|
rm -f %{buildroot}%{_bindir}/{tcat,untoast}
|
|
|
|
ln -s toast %{buildroot}%{_bindir}/tcat
|
|
|
|
ln -s toast %{buildroot}%{_bindir}/untoast
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n libgsm -p /sbin/ldconfig
|
|
|
|
%postun -n libgsm -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/tcat
|
|
|
|
%{_bindir}/toast
|
|
|
|
%{_bindir}/untoast
|
2024-01-05 23:29:48 +01:00
|
|
|
%{_mandir}/man1/toast.1*
|
2024-01-05 23:29:48 +01:00
|
|
|
|
|
|
|
%files -n libgsm
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgsm.so.*
|
|
|
|
|
|
|
|
%files -n libgsm-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/gsm/*.h
|
|
|
|
%{_libdir}/libgsm.so
|
2024-01-05 23:29:48 +01:00
|
|
|
%{_mandir}/man3/gsm*.3*
|
2024-01-05 23:29:48 +01:00
|
|
|
%doc ChangeLog README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:29:49 +01:00
|
|
|
* Wed Aug 10 2022 Automatic Build System <autodist@mambasoft.it> 1.0.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:29:49 +01:00
|
|
|
* Sat Jul 16 2022 Automatic Build System <autodist@mambasoft.it> 1.0.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Sat Apr 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.19-1mamba
|
|
|
|
- update to 1.0.19
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Mon May 21 2018 Automatic Build System <autodist@mambasoft.it> 1.0.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Mon Feb 12 2018 Automatic Build System <autodist@mambasoft.it> 1.0.17-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Wed Jan 04 2017 Automatic Build System <autodist@mambasoft.it> 1.0.16-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Sat Jan 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.14-1mamba
|
|
|
|
- update to 1.0.14
|
|
|
|
|
2024-01-05 23:29:48 +01:00
|
|
|
* Sun Jun 20 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-3mamba
|
|
|
|
- install includes in default directory (%includedir/gsm)
|
|
|
|
|
|
|
|
* Thu Oct 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-2mamba
|
|
|
|
- added shared library (makefile patch)
|
|
|
|
|
|
|
|
* Sat May 02 2009 Automatic Build System <autodist@mambasoft.it> 1.0.13-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Jun 01 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.12-1mamba
|
|
|
|
- package created by autospec
|