Accepting request 723236 from multimedia:libs
- Small cleanups with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/723236 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgsm?expand=0&rev=26
This commit is contained in:
commit
eb2a485e3a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 14 08:41:11 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Small cleanups with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Feb 23 20:06:39 UTC 2019 - bjorn.lie@gmail.com
|
Sat Feb 23 20:06:39 UTC 2019 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
40
libgsm.spec
40
libgsm.spec
@ -16,22 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: libgsm
|
|
||||||
%define _name gsm
|
%define _name gsm
|
||||||
|
%define _version 1.0-pl18
|
||||||
|
Name: libgsm
|
||||||
Version: 1.0.18
|
Version: 1.0.18
|
||||||
Release: 0
|
Release: 0
|
||||||
%define _version 1.0-pl18
|
|
||||||
Summary: GSM 06.10 Lossy Speech Compressor Library and Utilities
|
Summary: GSM 06.10 Lossy Speech Compressor Library and Utilities
|
||||||
License: ISC
|
License: ISC
|
||||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||||
|
URL: http://www.quut.com/gsm/
|
||||||
Source: http://www.quut.com/gsm/%{_name}-%{version}.tar.gz
|
Source: http://www.quut.com/gsm/%{_name}-%{version}.tar.gz
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Url: http://www.quut.com/gsm/
|
|
||||||
# This is a Debian patch file with debian chunks removed.
|
# This is a Debian patch file with debian chunks removed.
|
||||||
Patch: %{name}-1.0.13.patch
|
Patch0: %{name}-1.0.13.patch
|
||||||
Patch1: libgsm-paths.patch
|
Patch1: libgsm-paths.patch
|
||||||
Patch2: libgsm-include.patch
|
Patch2: libgsm-include.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libgsm implements the European GSM 06.10 provisional standard for
|
libgsm implements the European GSM 06.10 provisional standard for
|
||||||
@ -70,7 +69,7 @@ The front-end is modeled after the historic compress(1) utility.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: GSM 06.10 Lossy Speech Compressor Library and Utilities
|
Summary: GSM 06.10 Lossy Speech Compressor Library and Utilities
|
||||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libgsm1 = %{version}
|
Requires: libgsm1 = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -86,45 +85,42 @@ This implementation turns frames of 160 16-bit linear samples into
|
|||||||
standard test patterns.
|
standard test patterns.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{_name}-%{_version}
|
%setup -q -n %{_name}-%{_version}
|
||||||
%patch -p1
|
%patch0 -p1
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CCFLAGS="-c $RPM_OPT_FLAGS -D_POSIX_SOURCE -D_BSD_SOURCE -DNeedFunctionPrototypes=1" lib/libgsm.a
|
make -j1 CCFLAGS="-c %{optflags} -D_POSIX_SOURCE -D_BSD_SOURCE -DNeedFunctionPrototypes=1" lib/libgsm.a
|
||||||
cp lib/libgsm.a lib/libgsm.a.save
|
cp lib/libgsm.a lib/libgsm.a.save
|
||||||
make clean
|
make -j1 clean
|
||||||
make CCFLAGS="-c $RPM_OPT_FLAGS -D_POSIX_SOURCE -D_BSD_SOURCE -DNeedFunctionPrototypes=1 -fPIC"
|
make -j1 CCFLAGS="-c %{optflags} -D_POSIX_SOURCE -D_BSD_SOURCE -DNeedFunctionPrototypes=1 -fPIC"
|
||||||
cp lib/libgsm.a.save lib/libgsm.a
|
cp lib/libgsm.a.save lib/libgsm.a
|
||||||
touch lib/libgsm.a
|
touch lib/libgsm.a
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/{include/gsm,%{_lib},bin,share/man/man{1,3}}
|
mkdir -p %{buildroot}%{_prefix}/{include/gsm,%{_lib},bin,share/man/man{1,3}}
|
||||||
make INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} GSM_INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir} install
|
make INSTALL_ROOT=%{buildroot}%{_prefix} GSM_INSTALL_LIB=%{buildroot}%{_libdir} install
|
||||||
cp -d lib/libgsm.so* $RPM_BUILD_ROOT%{_libdir}
|
cp -d lib/libgsm.so* %{buildroot}%{_libdir}
|
||||||
( cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libgsm.so.1 libgsm.so )
|
( cd %{buildroot}%{_libdir} ; ln -sf libgsm.so.1 libgsm.so )
|
||||||
cp inc/{private.h,proto.h,unproto.h} $RPM_BUILD_ROOT%{_includedir}/gsm/
|
cp inc/{private.h,proto.h,unproto.h} %{buildroot}%{_includedir}/gsm/
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.a
|
rm -f %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
%post -n libgsm1 -p /sbin/ldconfig
|
%post -n libgsm1 -p /sbin/ldconfig
|
||||||
%postun -n libgsm1 -p /sbin/ldconfig
|
%postun -n libgsm1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%defattr (-, root, root)
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%doc %{_mandir}/man1/*.*
|
%{_mandir}/man1/*.*
|
||||||
|
|
||||||
%files -n libgsm1
|
%files -n libgsm1
|
||||||
%defattr (-, root, root)
|
|
||||||
%license COPYRIGHT
|
%license COPYRIGHT
|
||||||
%doc ChangeLog MACHINES README
|
%doc ChangeLog MACHINES README
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr (-, root, root)
|
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%doc %{_mandir}/man3/*.*
|
%{_mandir}/man3/*.*
|
||||||
%{_includedir}/gsm
|
%{_includedir}/gsm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user