|
@@ -3,24 +3,27 @@
|
|
|
Summary: Shared libraries for GSM speech compressor
|
|
|
|
|
|
Name: gsm
|
|
|
-Version: 1.0.14
|
|
|
+Version: 1.0.18
|
|
|
Release: 1%{?_dist_release}
|
|
|
-
|
|
|
Group: System Environment/Libraries
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: MIT
|
|
|
URL: http://www.quut.com/gsm/
|
|
|
-
|
|
|
Source: http://www.quut.com/gsm/%{name}-%{version}.tar.gz
|
|
|
-Patch0: %{name}-makefile.patch
|
|
|
-Patch1: %{name}-1.0.14-warnings.patch
|
|
|
-Patch2: %{name}-64bit.patch
|
|
|
+Patch0: gsm-makefile.patch
|
|
|
+Patch1: gsm-warnings.patch
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-%define srcver 1.0-pl14
|
|
|
-%define soname 1.0.12
|
|
|
+%global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//')
|
|
|
+%global majorver %(echo %{shortver} | sed -e 's/\.[0-9]*$//')
|
|
|
+%global minorver %(echo %{shortver} | sed -e 's/^[0-9]*\.//')
|
|
|
+%global patchlevel %(echo %{version} | sed -e 's/^[0-9]*\.[0-9]*\.//')
|
|
|
+
|
|
|
+%define srcver %{shortver}-pl%{patchlevel}
|
|
|
+%define soname %{version}
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
|
|
|
%description
|
|
|
Contains runtime shared libraries for libgsm, an implementation of
|
|
@@ -102,45 +105,50 @@ full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP
|
|
|
|
|
|
%prep
|
|
|
%setup -n gsm-%{srcver} -q
|
|
|
-%patch0 -p1 -b .mk
|
|
|
-%patch1 -p1 -b .warn
|
|
|
-%patch2 -p1 -b .64bit
|
|
|
+%autopatch -p1
|
|
|
+
|
|
|
+perl -pi -e 's/^CCFLAGS .*$/CCFLAGS = -c %{optflags} -DNeedFunctionPrototypes=1 -Wall -Wno-comment -D_XOPEN_SOURCE=700 -D_REENTRANT -fPIC/' Makefile
|
|
|
+
|
|
|
+sed -i \
|
|
|
+ -e 's/@MAJORVER@/%{majorver}/' \
|
|
|
+ -e 's/@MINORVER@/%{minorver}/' \
|
|
|
+ -e 's/@PATCHLEVEL@/%{patchlevel}/' \
|
|
|
+ -e 's/@SOVERSION@/%{soname}/' \
|
|
|
+ Makefile
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC";
|
|
|
make %{?_smp_mflags} all
|
|
|
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_includedir}/gsm
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,man3}
|
|
|
+mkdir -p %{buildroot}%{_bindir}
|
|
|
+mkdir -p %{buildroot}%{_includedir}/gsm
|
|
|
+mkdir -p %{buildroot}%{_libdir}
|
|
|
+mkdir -p %{buildroot}%{_mandir}/{man1,man3}
|
|
|
|
|
|
make install \
|
|
|
- INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} \
|
|
|
- GSM_INSTALL_INC=$RPM_BUILD_ROOT%{_includedir}/gsm \
|
|
|
- GSM_INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
|
|
|
-
|
|
|
-cp -p $RPM_BUILD_DIR/gsm-%{srcver}/lib/libgsm.so.%{soname} $RPM_BUILD_ROOT%{_libdir}
|
|
|
-ln -s libgsm.so.%{soname} $RPM_BUILD_ROOT%{_libdir}/libgsm.so.1
|
|
|
-ln -s libgsm.so.%{soname} $RPM_BUILD_ROOT%{_libdir}/libgsm.so
|
|
|
+ INSTALL_ROOT=%{buildroot}%{_prefix} \
|
|
|
+ GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
|
|
|
+ GSM_INSTALL_LIB=%{buildroot}%{_libdir}
|
|
|
|
|
|
# some apps look for this in /usr/include
|
|
|
-ln -s gsm/gsm.h $RPM_BUILD_ROOT%{_includedir}
|
|
|
+ln -s gsm/gsm.h %{buildroot}%{_includedir}
|
|
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
|
|
+echo ".so toast.1" > %{buildroot}%{_mandir}/man1/tcat.1
|
|
|
+echo ".so toast.1" > %{buildroot}%{_mandir}/man1/untoast.1
|
|
|
|
|
|
|
|
|
%check
|
|
|
# This is to ensure that the patch creates the proper library version.
|
|
|
-[ -f $RPM_BUILD_ROOT%{_libdir}/libgsm.so.%{soname} ]
|
|
|
+[ -f %{buildroot}%{_libdir}/libgsm.so.%{version} ]
|
|
|
+export LDFLAGS="%{?__global_ldflags}"
|
|
|
make addtst
|
|
|
|
|
|
|
|
|
%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
@@ -152,7 +160,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc ChangeLog COPYRIGHT MACHINES README
|
|
|
+%license COPYRIGHT
|
|
|
+%doc ChangeLog MACHINES README
|
|
|
%{_libdir}/libgsm.so.*
|
|
|
|
|
|
%files tools
|
|
@@ -160,6 +169,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_bindir}/toast
|
|
|
%{_bindir}/untoast
|
|
|
%{_mandir}/man1/toast.1*
|
|
|
+%{_mandir}/man1/tcat.1.gz
|
|
|
+%{_mandir}/man1/untoast.1.gz
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
@@ -181,6 +192,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.18-1
|
|
|
+- new upstream release.
|
|
|
+- updated Patch0 and 1.
|
|
|
+- dropped Patch2.
|
|
|
+
|
|
|
* Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.14-1
|
|
|
- new upstream release
|
|
|
- update Patch1 (%%{name}-1.0.14-warnings.patch)
|