SHA256
1
0
forked from pool/pari

Accepting request 157809 from science

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/157809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pari?expand=0&rev=3
This commit is contained in:
Stephan Kulow 2013-03-08 08:30:47 +00:00 committed by Git OBS Bridge
commit 3385069872
2 changed files with 35 additions and 29 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 6 20:10:01 UTC 2013 - jengelh@inai.de
- Restore original library filename after confirming with upstream
(This change is transparent to all users)
-------------------------------------------------------------------
Thu Nov 29 19:09:42 UTC 2012 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package pari
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,25 +15,30 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pari
%define lname libpari-gmp3
Version: 2.5.3
Release: 0
Group: Productivity/Scientific/Math
Summary: Computer Algebra System for fast computations in Number Theory
Summary: Computer Algebra System for fast computations in Number Theory
License: GPL-2.0
URL: http://pari.math.u-bordeaux.fr/
Group: Productivity/Scientific/Math
Url: http://pari.math.u-bordeaux.fr/
#DL-URL: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.tar.gz
Source: %name-%version.tar.xz
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.changelog
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.changelog
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gmp-devel, readline-devel
BuildRequires: fltk-devel, libqt4-devel, xz
BuildRequires: fltk-devel
BuildRequires: gmp-devel
BuildRequires: libqt4-devel
BuildRequires: readline-devel
BuildRequires: xz
%if 0%{?suse_version} >= 1220
BuildRequires: libX11-devel, xorg-x11-proto-devel
BuildRequires: libX11-devel
BuildRequires: xorg-x11-proto-devel
%else
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-devel
%endif
%description
@ -45,8 +50,8 @@ power series, algebraic numbers etc., and a lot of transcendental
functions.
%package gp
Summary: Frontend to the PARI Computer Algebra System
Group: Productivity/Scientific/Math
Summary: Frontend to the PARI Computer Algebra System
Group: Productivity/Scientific/Math
%description gp
PARI/GP is a computer algebra system designed for fast computations
@ -57,10 +62,10 @@ power series, algebraic numbers etc., and a lot of transcendental
functions.
%package -n %lname
Summary: Computer Algebra System library for fast computations in Number Theory
Group: System/Libraries
Summary: Computer Algebra System library for fast computations in Number Theory
Group: System/Libraries
# This is used by the data packages to avoid having a too-old version of libpari:
Provides: libpari-gmp = %version-%release
Provides: libpari-gmp = %version-%release
%description -n %lname
PARI/GP is a computer algebra system designed for fast computations
@ -71,9 +76,9 @@ power series, algebraic numbers etc., and a lot of transcendental
functions.
%package devel
Summary: Development files for the PARI CAS
Group: Development/Libraries/C and C++
Requires: %lname = %version
Summary: Development files for the PARI CAS
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
PARI/GP is a computer algebra system designed for fast computations
@ -101,15 +106,6 @@ cp "%{S:2}" .;
b="%buildroot";
make install DESTDIR="$b";
# Put library in the right spot and fix the SO version abuse
if [ -L "$b/%_libdir/libpari-gmp.so.3" ]; then
rm -f "$b/%_libdir/libpari-gmp.so.3";
fi;
mv "$b/%_libdir/libpari-gmp.so.%version" "$b/%_libdir/libpari-gmp.so.3";
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
@ -122,15 +118,19 @@ ln -fs libpari-gmp-%version.so "$b/%_libdir/libpari.so";
%_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 libpari-gmp3
%defattr(-,root,root)
%_libdir/*.so.*
%_libdir/libpari-gmp-%version.so
%_libdir/libpari-gmp.so.%version
%_libdir/libpari-gmp.so.3
%files devel
%defattr(-,root,root)
%_includedir/pari
%_libdir/libpari.so
%_libdir/libpari-gmp.so
%changelog