SHA256
1
0
forked from pool/4ti2

- Modernize specfile.

OBS-URL: https://build.opensuse.org/package/show/science/4ti2?expand=0&rev=18
This commit is contained in:
Jan Engelhardt 2019-08-24 15:51:35 +00:00 committed by Git OBS Bridge
parent ab897cb760
commit 7cd03f2b54
2 changed files with 13 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Aug 24 15:47:19 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Modernize specfile.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 19 08:46:44 UTC 2018 - Jan Engelhardt <jengelh@inai.de> Fri Oct 19 08:46:44 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package 4ti2 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Summary: Package for algebraic, geometric and combinatorial problems on linear spaces
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Productivity/Scientific/Math 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 Source: https://github.com/4ti2/4ti2/releases/download/Release_1_6_9/4ti2-1.6.9.tar.gz
Patch1: 4ti2-docdir.diff Patch1: 4ti2-docdir.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.59 BuildRequires: autoconf >= 2.59
BuildRequires: automake BuildRequires: automake
BuildRequires: gcc-c++ >= 4.3 BuildRequires: gcc-c++ >= 4.3
@ -68,13 +67,12 @@ This subpackage contains the include files and library links for
developing against 4ti2's libraries. developing against 4ti2's libraries.
%prep %prep
%setup -q %autosetup -p1
%patch -P 1 -p1
%build %build
autoreconf -fi; autoreconf -fi
%configure --enable-shared --disable-static \ %configure --enable-shared --disable-static \
--includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name" --includedir="%_includedir/%name" --docdir="%_docdir/%name"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -87,7 +85,6 @@ pushd "$b/%_libexecdir/%name"
for i in *; do for i in *; do
ln -s "%_libexecdir/%name/$i" "$b/%_bindir/4ti2_$i" ln -s "%_libexecdir/%name/$i" "$b/%_bindir/4ti2_$i"
done done
rm -f doc/Makefile*
%post -n lib4ti2-0 -p /sbin/ldconfig %post -n lib4ti2-0 -p /sbin/ldconfig
%postun -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 %postun -n libzsolve0 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %license COPYING
%doc COPYING doc/* %doc doc/[34a-z]*
%_bindir/4ti2* %_bindir/4ti2*
%_libexecdir/%name/ %_libexecdir/%name/
%files -n lib4ti2-0 %files -n lib4ti2-0
%defattr(-,root,root)
%_libdir/lib4ti2gmp.so.0* %_libdir/lib4ti2gmp.so.0*
%_libdir/lib4ti2int32.so.0* %_libdir/lib4ti2int32.so.0*
%_libdir/lib4ti2int64.so.0* %_libdir/lib4ti2int64.so.0*
@ -109,12 +105,10 @@ rm -f doc/Makefile*
%_libdir/lib4ti2util.so.0* %_libdir/lib4ti2util.so.0*
%files -n libzsolve0 %files -n libzsolve0
%defattr(-,root,root)
%_libdir/libzsolve.so.0* %_libdir/libzsolve.so.0*
%files devel %files devel
%defattr(-,root,root) %_includedir/%name/
%_includedir/pkg/
%_libdir/lib*.so %_libdir/lib*.so
%changelog %changelog