diff --git a/pari-2.5.0.tar.bz2 b/pari-2.5.0.tar.bz2 new file mode 100644 index 0000000..37430d7 --- /dev/null +++ b/pari-2.5.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:095229af7c263034614494fd553263a8852a4d33aa9864427e83c0296eb6b66b +size 2212739 diff --git a/pari-2.5.0.tar.xz b/pari-2.5.0.tar.xz deleted file mode 100644 index 7285cfc..0000000 --- a/pari-2.5.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6efa4948dbdf82f4a26631b46a3154a01fa8ba2111304cc47b0629ad432a1b12 -size 1875552 diff --git a/pari.changes b/pari.changes index 86f4079..3c40b9a 100644 --- a/pari.changes +++ b/pari.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Feb 26 22:13:05 UTC 2012 - scorot@free.fr + +- fix build requirement to allow build on SLE-11 +- recompress source file to bzip2 format to allow build on SLE-11 +- add missing %%post and %%postun scriptlets + ------------------------------------------------------------------- Mon Sep 26 08:52:28 UTC 2011 - jengelh@medozas.de diff --git a/pari.spec b/pari.spec index eb8cf5f..44d486c 100644 --- a/pari.spec +++ b/pari.spec @@ -24,9 +24,9 @@ Summary: Computer Algebra System for fast computations in Number Theory License: GPL-2.0 URL: http://pari.math.u-bordeaux.fr/ -Source: %name-%version.tar.xz +Source: %name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gmp-devel, readline-devel, pkgconfig(x11), xz +BuildRequires: gmp-devel, readline-devel, xorg-x11-devel BuildRequires: fltk-devel, libqt4-devel %description @@ -90,7 +90,12 @@ make %{?_smp_mflags} all \ %install b="%buildroot"; +%if 0%{sles_version} <= 11 +%makeinstall +%else %make_install +%endif + # Put library in the right spot and fix the SO version abuse if [ -L "$b/%_libdir/libpari-gmp.so.3" ]; then @@ -101,6 +106,10 @@ ln -fs libpari-gmp.so.3 "$b/%_libdir/libpari-gmp-%version.so"; ln -fs libpari-gmp-%version.so "$b/%_libdir/libpari-gmp.so"; ln -fs libpari-gmp-%version.so "$b/%_libdir/libpari.so"; +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + %files gp %defattr(-,root,root) %_bindir/*