From 7cd03f2b54f5cacb94d859e8f6f92991435fd6190d91bc6c9d73d1b8a2b90e58 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 24 Aug 2019 15:51:35 +0000 Subject: [PATCH] - Modernize specfile. OBS-URL: https://build.opensuse.org/package/show/science/4ti2?expand=0&rev=18 --- 4ti2.changes | 5 +++++ 4ti2.spec | 22 ++++++++-------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/4ti2.changes b/4ti2.changes index b7fe080..606dc0d 100644 --- a/4ti2.changes +++ b/4ti2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Aug 24 15:47:19 UTC 2019 - Jan Engelhardt + +- Modernize specfile. + ------------------------------------------------------------------- Fri Oct 19 08:46:44 UTC 2018 - Jan Engelhardt diff --git a/4ti2.spec b/4ti2.spec index b897acc..ea2d394 100644 --- a/4ti2.spec +++ b/4ti2.spec @@ -1,7 +1,7 @@ # # spec file for package 4ti2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,11 +22,10 @@ Release: 0 Summary: Package for algebraic, geometric and combinatorial problems on linear spaces License: GPL-2.0-or-later Group: Productivity/Scientific/Math -Url: https://4ti2.github.io/ +URL: https://4ti2.github.io/ Source: https://github.com/4ti2/4ti2/releases/download/Release_1_6_9/4ti2-1.6.9.tar.gz Patch1: 4ti2-docdir.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: gcc-c++ >= 4.3 @@ -68,13 +67,12 @@ This subpackage contains the include files and library links for developing against 4ti2's libraries. %prep -%setup -q -%patch -P 1 -p1 +%autosetup -p1 %build -autoreconf -fi; +autoreconf -fi %configure --enable-shared --disable-static \ - --includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name" + --includedir="%_includedir/%name" --docdir="%_docdir/%name" make %{?_smp_mflags} %install @@ -87,7 +85,6 @@ pushd "$b/%_libexecdir/%name" for i in *; do ln -s "%_libexecdir/%name/$i" "$b/%_bindir/4ti2_$i" done -rm -f doc/Makefile* %post -n lib4ti2-0 -p /sbin/ldconfig %postun -n lib4ti2-0 -p /sbin/ldconfig @@ -95,13 +92,12 @@ rm -f doc/Makefile* %postun -n libzsolve0 -p /sbin/ldconfig %files -%defattr(-,root,root) -%doc COPYING doc/* +%license COPYING +%doc doc/[34a-z]* %_bindir/4ti2* %_libexecdir/%name/ %files -n lib4ti2-0 -%defattr(-,root,root) %_libdir/lib4ti2gmp.so.0* %_libdir/lib4ti2int32.so.0* %_libdir/lib4ti2int64.so.0* @@ -109,12 +105,10 @@ rm -f doc/Makefile* %_libdir/lib4ti2util.so.0* %files -n libzsolve0 -%defattr(-,root,root) %_libdir/libzsolve.so.0* %files devel -%defattr(-,root,root) -%_includedir/pkg/ +%_includedir/%name/ %_libdir/lib*.so %changelog