From 455e9747b57ef966c6528fd5939a22f740edf16a245835db68060d602dad3ffc Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Aug 2019 12:13:19 +0000 Subject: [PATCH 1/2] specfile modernization OBS-URL: https://build.opensuse.org/package/show/network:telephony/spandsp?expand=0&rev=36 --- spandsp.spec | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/spandsp.spec b/spandsp.spec index 29a9392..e84bdfc 100644 --- a/spandsp.spec +++ b/spandsp.spec @@ -23,14 +23,13 @@ License: LGPL-2.1-only AND GPL-2.0-only Group: Development/Libraries/C and C++ Version: 0.0.6 Release: 0 -Url: http://soft-switch.org/ +URL: http://soft-switch.org/ -Source0: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz -Source1: baselibs.conf +Source: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz +Source2: baselibs.conf Patch1: spandsp-autoconf.diff Patch2: spandsp-raise-traintime-tolerance.diff Patch3: spandsp-handle-international-dialstring-prefix.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: docbook-xsl-stylesheets BuildRequires: doxygen BuildRequires: libtiff-devel @@ -60,7 +59,7 @@ and a complete software FAX machine. Summary: Development files for the SpanDSP library License: LGPL-2.1-only Group: Development/Libraries/C and C++ -Requires: %lname = %{version} +Requires: %lname = %version Requires: glibc-devel Requires: libtiff-devel @@ -92,13 +91,10 @@ BuildArch: noarch This package contains documentation for the libspandsp API. %prep -%setup -qn %name-0.0.6 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%autosetup -n %name-0.0.6 -p1 %build -%define _lto_cflags %{nil} +%define _lto_cflags %nil autoreconf -fiv # Enabling MMX could be safe.. I see cpuid calls in the source %configure \ @@ -118,28 +114,25 @@ make check %{?_smp_mflags} %endif %install -make install DESTDIR="%buildroot"; -mkdir -p "%buildroot%_docdir/%name"; -cp -a COPYING AUTHORS NEWS README DueDiligence \ - ChangeLog doc/api/html "%buildroot%_docdir/%name"; -find %{buildroot} -name "*.la" -delete - -%post -n %lname -p /sbin/ldconfig +%make_install +mkdir -p "%buildroot%_docdir/%name" +cp -a NEWS README DueDiligence ChangeLog doc/api/html \ + "%buildroot/%_docdir/%name" +rm -f "%buildroot/%_libdir"/*.la +%post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files devel -%defattr(-,root,root) +%license COPYING %_includedir/* %_libdir/lib%name.so %_libdir/pkgconfig/*.pc %files -n %lname -%defattr(-,root,root) %_libdir/lib%name.so.2* %files doc -%defattr(-,root,root) -%doc %_docdir/%name +%_docdir/%name/ %changelog From 8606f369532b9082dd292bd224c2a93c9c9215128b064e8cd341ca139fe7d123 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 9 Sep 2019 17:16:29 +0000 Subject: [PATCH 2/2] - Modernized the specfile. OBS-URL: https://build.opensuse.org/package/show/network:telephony/spandsp?expand=0&rev=37 --- spandsp.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spandsp.changes b/spandsp.changes index 9156443..8032b3c 100644 --- a/spandsp.changes +++ b/spandsp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 9 17:16:20 UTC 2019 - Jan Engelhardt + +- Modernized the specfile. + ------------------------------------------------------------------- Thu May 23 11:06:20 UTC 2019 - Martin Liška