Accepting request 656167 from home:TheBlackCat:branches:science
- Use %macro instead of %{macro} wherever possible. - Fix building on SLE 15 - Use %license macro OBS-URL: https://build.opensuse.org/request/show/656167 OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=31
This commit is contained in:
parent
7143f434e5
commit
fb8a0fbf49
11
pari.changes
11
pari.changes
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 21:14:49 UTC 2018 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Use %macro instead of %{macro} wherever possible.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 16:38:08 UTC 2018 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Fix building on SLE 15
|
||||||
|
- Use %license macro
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 29 20:32:25 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
Wed Aug 29 20:32:25 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
53
pari.spec
53
pari.spec
@ -12,32 +12,42 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: pari
|
||||||
%define lname libpari-gmp6
|
%define soname 6
|
||||||
|
%define lname libpari-gmp%soname
|
||||||
Version: 2.11.0
|
Version: 2.11.0
|
||||||
Release: 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
|
License: GPL-2.0-only
|
||||||
Group: Productivity/Scientific/Math
|
Group: Productivity/Scientific/Math
|
||||||
Url: http://pari.math.u-bordeaux.fr/
|
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
|
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
|
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
|
Source3: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.changelog
|
||||||
Patch1: pari-nodate.diff
|
Patch1: pari-nodate.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: fltk-devel
|
BuildRequires: fltk-devel
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libqt4-devel
|
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
|
%if %{with qt}
|
||||||
|
BuildRequires: libqt4-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PARI/GP is a computer algebra system designed for fast computations
|
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
|
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:
|
# This is used by the data packages to avoid having a too-old version of libpari:
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Provides: libpari-gmp = %version-%release
|
Provides: libpari-gmp = %version
|
||||||
|
|
||||||
%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
|
||||||
@ -102,33 +112,32 @@ make %{?_smp_mflags} all \
|
|||||||
cp "%{S:3}" .;
|
cp "%{S:3}" .;
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
%make_install
|
||||||
make install DESTDIR="$b";
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files gp
|
%files gp
|
||||||
%defattr(-,root,root)
|
%license AUTHORS COPYING
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_datadir/%name
|
%_datadir/%name
|
||||||
%_libdir/%name.cfg
|
%_libdir/%name.cfg
|
||||||
%_mandir/man*/*
|
%_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
|
%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.%version
|
||||||
%_libdir/libpari-gmp.so.6
|
%_libdir/libpari-gmp.so.%soname
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%license AUTHORS COPYING
|
||||||
%_includedir/pari
|
%_includedir/pari/
|
||||||
%_libdir/libpari.so
|
%_libdir/libpari.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user