- 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

OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=3
This commit is contained in:
Corot Sebastien 2012-02-26 22:26:53 +00:00 committed by Git OBS Bridge
parent 0da44fdcbb
commit 67d474711d
4 changed files with 21 additions and 5 deletions

3
pari-2.5.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:095229af7c263034614494fd553263a8852a4d33aa9864427e83c0296eb6b66b
size 2212739

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6efa4948dbdf82f4a26631b46a3154a01fa8ba2111304cc47b0629ad432a1b12
size 1875552

View File

@ -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

View File

@ -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/*