commit 72eff8f7b34f2b94097220549c7cfaf8ba14661e0700884d0c51aa1db177b52c Author: Detlef Steuer Date: Mon Sep 26 13:16:26 2011 +0000 Accepting request 84873 from home:jengelh:science PARI CAS OBS-URL: https://build.opensuse.org/request/show/84873 OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pari-2.5.0.tar.xz b/pari-2.5.0.tar.xz new file mode 100644 index 0000000..7285cfc --- /dev/null +++ b/pari-2.5.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6efa4948dbdf82f4a26631b46a3154a01fa8ba2111304cc47b0629ad432a1b12 +size 1875552 diff --git a/pari.spec b/pari.spec new file mode 100644 index 0000000..eb8cf5f --- /dev/null +++ b/pari.spec @@ -0,0 +1,122 @@ +# +# spec file for package pari +# +# Copyright (c) 2011 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: pari +%define lname libpari-gmp3 +Version: 2.5.0 +Release: 0 +Group: Productivity/Scientific/Math +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gmp-devel, readline-devel, pkgconfig(x11), xz +BuildRequires: fltk-devel, libqt4-devel + +%description +PARI/GP is a computer algebra system designed for fast computations +in number theory (factorizations, algebraic number theory, elliptic +curves), but also contains a large number of other useful functions +to compute with mathematical entities such as matrices, polynomials, +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 + +%description gp +PARI/GP is a computer algebra system designed for fast computations +in number theory (factorizations, algebraic number theory, elliptic +curves), but also contains a large number of other useful functions +to compute with mathematical entities such as matrices, polynomials, +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 +# This is used by the data packages to avoid having a too-old version of libpari: +Provides: libpari-gmp = %version-%release + +%description -n %lname +PARI/GP is a computer algebra system designed for fast computations +in number theory (factorizations, algebraic number theory, elliptic +curves), but also contains a large number of other useful functions +to compute with mathematical entities such as matrices, polynomials, +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 + +%description devel +PARI/GP is a computer algebra system designed for fast computations +in number theory (factorizations, algebraic number theory, elliptic +curves), but also contains a large number of other useful functions +to compute with mathematical entities such as matrices, polynomials, +power series, algebraic numbers etc., and a lot of transcendental +functions. + +%prep +%setup -q + +%build +./Configure --prefix="%_prefix" \ + --bindir="%_bindir" --includedir="%_includedir" \ + --libdir="%_libdir" \ + --sysdatadir="%_libdir" --datadir="%_datadir/%name"; +make %{?_smp_mflags} all \ + CFLAGS="%optflags -fno-strict-aliasing" \ + STRIP=true; + +%install +b="%buildroot"; +%make_install + +# 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"; + +%files gp +%defattr(-,root,root) +%_bindir/* +%_datadir/%name +%_libdir/%name.cfg +%_mandir/man*/* + +%files -n libpari-gmp3 +%defattr(-,root,root) +%_libdir/*.so.* +%_libdir/libpari-gmp-%version.so + +%files devel +%defattr(-,root,root) +%_includedir/pari +%_libdir/libpari.so +%_libdir/libpari-gmp.so + +%changelog