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 Thu Nov 29 19:09:42 UTC 2012 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package pari # 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 # 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
@ -15,25 +15,30 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: pari Name: pari
%define lname libpari-gmp3 %define lname libpari-gmp3
Version: 2.5.3 Version: 2.5.3
Release: 0 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 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 #DL-URL: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.tar.gz
Source: %name-%version.tar.xz 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gmp-devel, readline-devel BuildRequires: fltk-devel
BuildRequires: fltk-devel, libqt4-devel, xz BuildRequires: gmp-devel
BuildRequires: libqt4-devel
BuildRequires: readline-devel
BuildRequires: xz
%if 0%{?suse_version} >= 1220 %if 0%{?suse_version} >= 1220
BuildRequires: libX11-devel, xorg-x11-proto-devel BuildRequires: libX11-devel
BuildRequires: xorg-x11-proto-devel
%else %else
BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-devel
%endif %endif
%description %description
@ -45,8 +50,8 @@ power series, algebraic numbers etc., and a lot of transcendental
functions. functions.
%package gp %package gp
Summary: Frontend to the PARI Computer Algebra System Summary: Frontend to the PARI Computer Algebra System
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
%description gp %description gp
PARI/GP is a computer algebra system designed for fast computations 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. functions.
%package -n %lname %package -n %lname
Summary: Computer Algebra System library for fast computations in Number Theory Summary: Computer Algebra System library for fast computations in Number Theory
Group: System/Libraries Group: System/Libraries
# This is used by the data packages to avoid having a too-old version of libpari: # 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 %description -n %lname
PARI/GP is a computer algebra system designed for fast computations 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. functions.
%package devel %package devel
Summary: Development files for the PARI CAS Summary: Development files for the PARI CAS
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %lname = %version
%description devel %description devel
PARI/GP is a computer algebra system designed for fast computations PARI/GP is a computer algebra system designed for fast computations
@ -101,15 +106,6 @@ cp "%{S:2}" .;
b="%buildroot"; b="%buildroot";
make install DESTDIR="$b"; 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 %post -n %lname -p /sbin/ldconfig
%postun -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*/* %_mandir/man*/*
%doc %name-%version.changelog %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 %files -n libpari-gmp3
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/*.so.* %_libdir/libpari-gmp.so.%version
%_libdir/libpari-gmp-%version.so %_libdir/libpari-gmp.so.3
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%_includedir/pari %_includedir/pari
%_libdir/libpari.so %_libdir/libpari.so
%_libdir/libpari-gmp.so
%changelog %changelog