Accepting request 729537 from network:telephony

- Modernized the specfile.

OBS-URL: https://build.opensuse.org/request/show/729537
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spandsp?expand=0&rev=10
This commit is contained in:
Yuchen Lin 2019-09-19 13:46:07 +00:00 committed by Git OBS Bridge
commit ce9d6f47bf
2 changed files with 19 additions and 21 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 9 17:16:20 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Modernized the specfile.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 23 11:06:20 UTC 2019 - Martin Liška <mliska@suse.cz> Thu May 23 11:06:20 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -23,14 +23,13 @@ License: LGPL-2.1-only AND GPL-2.0-only
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Version: 0.0.6 Version: 0.0.6
Release: 0 Release: 0
Url: http://soft-switch.org/ URL: http://soft-switch.org/
Source0: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz Source: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz
Source1: baselibs.conf Source2: baselibs.conf
Patch1: spandsp-autoconf.diff Patch1: spandsp-autoconf.diff
Patch2: spandsp-raise-traintime-tolerance.diff Patch2: spandsp-raise-traintime-tolerance.diff
Patch3: spandsp-handle-international-dialstring-prefix.diff Patch3: spandsp-handle-international-dialstring-prefix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
@ -60,7 +59,7 @@ and a complete software FAX machine.
Summary: Development files for the SpanDSP library Summary: Development files for the SpanDSP library
License: LGPL-2.1-only License: LGPL-2.1-only
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %{version} Requires: %lname = %version
Requires: glibc-devel Requires: glibc-devel
Requires: libtiff-devel Requires: libtiff-devel
@ -92,13 +91,10 @@ BuildArch: noarch
This package contains documentation for the libspandsp API. This package contains documentation for the libspandsp API.
%prep %prep
%setup -qn %name-0.0.6 %autosetup -n %name-0.0.6 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build %build
%define _lto_cflags %{nil} %define _lto_cflags %nil
autoreconf -fiv autoreconf -fiv
# Enabling MMX could be safe.. I see cpuid calls in the source # Enabling MMX could be safe.. I see cpuid calls in the source
%configure \ %configure \
@ -118,28 +114,25 @@ make check %{?_smp_mflags}
%endif %endif
%install %install
make install DESTDIR="%buildroot"; %make_install
mkdir -p "%buildroot%_docdir/%name"; mkdir -p "%buildroot%_docdir/%name"
cp -a COPYING AUTHORS NEWS README DueDiligence \ cp -a NEWS README DueDiligence ChangeLog doc/api/html \
ChangeLog doc/api/html "%buildroot%_docdir/%name"; "%buildroot/%_docdir/%name"
find %{buildroot} -name "*.la" -delete rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files devel %files devel
%defattr(-,root,root) %license COPYING
%_includedir/* %_includedir/*
%_libdir/lib%name.so %_libdir/lib%name.so
%_libdir/pkgconfig/*.pc %_libdir/pkgconfig/*.pc
%files -n %lname %files -n %lname
%defattr(-,root,root)
%_libdir/lib%name.so.2* %_libdir/lib%name.so.2*
%files doc %files doc
%defattr(-,root,root) %_docdir/%name/
%doc %_docdir/%name
%changelog %changelog