diff --git a/pari.changes b/pari.changes index 4e1420f..c875799 100644 --- a/pari.changes +++ b/pari.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Dec 7 21:14:49 UTC 2018 - Todd R + +- Use %macro instead of %{macro} wherever possible. + +------------------------------------------------------------------- +Fri Dec 7 16:38:08 UTC 2018 - Todd R + +- Fix building on SLE 15 +- Use %license macro + ------------------------------------------------------------------- Wed Aug 29 20:32:25 UTC 2018 - Jan Engelhardt diff --git a/pari.spec b/pari.spec index e41eda2..5aacb1f 100644 --- a/pari.spec +++ b/pari.spec @@ -12,32 +12,42 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # + +%if 0%{?sle_version} == 150000 && !0%{?is_opensuse} +%bcond_with qt +%else +%bcond_without qt +%endif + +# See +# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html +# for details on the SO versioning. + Name: pari -%define lname libpari-gmp6 +%define soname 6 +%define lname libpari-gmp%soname Version: 2.11.0 Release: 0 -Summary: Computer Algebra System for fast computations in Number Theory +Summary: Computer Algebra System for computations in Number Theory License: GPL-2.0-only Group: Productivity/Scientific/Math Url: http://pari.math.u-bordeaux.fr/ - -#Git-Clone: http://pari.math.u-bordeaux.fr/git/pari.git -#Git-Web: http://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc Source3: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.changelog Patch1: pari-nodate.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fltk-devel BuildRequires: gmp-devel BuildRequires: libX11-devel -BuildRequires: libqt4-devel BuildRequires: readline-devel BuildRequires: xorg-x11-proto-devel +%if %{with qt} +BuildRequires: libqt4-devel +%endif %description PARI/GP is a computer algebra system designed for fast computations @@ -63,7 +73,7 @@ functions. Summary: Computer Algebra System library for fast computations in Number Theory # This is used by the data packages to avoid having a too-old version of libpari: Group: System/Libraries -Provides: libpari-gmp = %version-%release +Provides: libpari-gmp = %version %description -n %lname PARI/GP is a computer algebra system designed for fast computations @@ -102,33 +112,32 @@ make %{?_smp_mflags} all \ cp "%{S:3}" .; %install -b="%buildroot"; -make install DESTDIR="$b"; +%make_install %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files gp -%defattr(-,root,root) +%license AUTHORS COPYING %_bindir/* %_datadir/%name %_libdir/%name.cfg %_mandir/man*/* -%doc %name-%version.changelog -# -# See -# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html -# for details on the SO versioning. -# %files -n %lname -%defattr(-,root,root) +%if 0%{?sle_version} <= 150000 && !0%{?is_opensuse} +%dir %_licensedir +%endif +%license AUTHORS COPYING +%doc %name-%version.changelog +%doc CHANGES CHANGES-* NEW README +%doc examples/ %_libdir/libpari-gmp.so.%version -%_libdir/libpari-gmp.so.6 +%_libdir/libpari-gmp.so.%soname %files devel -%defattr(-,root,root) -%_includedir/pari +%license AUTHORS COPYING +%_includedir/pari/ %_libdir/libpari.so %changelog