pari/pari.spec
Jan Engelhardt 58e3a48b6d Accepting request 1098938 from home:dirkmueller:Factory
- update to 2.15.4:
  * lfunan(lfunetaquo([12,1;13*12,1]),1) -> stack overflow
  * FpM_intersect could return a Flm
  * 3- ifac_isprime could be called on input with tiny
    divisors
  * nfcompositum could return non-monic polynomials
  * gammamellininvinit(vector(9,i,1)) -> SEGV
  * incorrect sanity check in rnfeltdown ("not in base
    field")
  * precision loss in gammamellininv
  * [pthread] parselect could crash
  * rare infinite loop in ellsaturation
  * quadunitindex(8461,2)->1 instead of 3
  * chinese(Mod(1,3)*(x^2+x+2),Mod(1,5)*(x-1))->incorrect
    leading term
  * lindep([0,x]) -> SEGV
  * [libpari] RgX_div_by_X_x: wrong variable number
  * MS 14- hyperellratpoints(2*x^3+x^2-x,1000) -> wrong result
  * ellisogeny over a nf -> inconsistent variables error
  * w=3;quadgen(5) -> print x instead of w
  * FpX_convol: wrong result for mixed degree
  * 18- mateigen(,1): eigenvalues were given as t_VEC or
    t_COL. Use t_COL.
  * ellcard over small finite field: potential oo-loop
- add pari.keyring for source integrity validation

OBS-URL: https://build.opensuse.org/request/show/1098938
OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=70
2023-07-16 15:29:22 +00:00

156 lines
4.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package pari
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global desc \
PARI/GP is a computer algebra system designed for computations\
in number theory (factorizations, algebraic number theory, elliptic\
curves) and other entities like matrices, polynomials,\
power series, algebraic numbers, and transcendental functions.\
%nil
# See
# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html
# for details on the SO versioning.
%global sover 8
%global lname libpari-gmp-tls%sover
Name: pari
Version: 2.15.4
Release: 0
Summary: Computer Algebra System for computations in Number Theory
License: GPL-2.0-only
Group: Productivity/Scientific/Math
URL: https://pari.math.u-bordeaux.fr
#Git-Clone: https://pari.math.u-bordeaux.fr/git/pari.git
#Git-Web: https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi
Source0: %url/pub/pari/unix/pari-%version.tar.gz
Source1: %url/pub/pari/unix/pari-%version.tar.gz.asc
Source2: pari.keyring
BuildRequires: fltk-devel
BuildRequires: gmp-devel
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: texlive-latex
BuildRequires: texlive-luatex
BuildRequires: texlive-luatex-bin
BuildRequires: texlive-luatexbase
BuildRequires: texlive-tex-bin
BuildRequires: xorg-x11-proto-devel
BuildRequires: pkgconfig(x11)
%description
%desc
%package gp
Summary: Frontend to the PARI Computer Algebra System
Group: Productivity/Scientific/Math
%description gp
%desc
%package doc
Summary: Documentation for the PARI Computer Algebra System
Group: Documentation/Other
BuildArch: noarch
%description doc
%desc
This package contains the documentation and examples for the PARI Computer Algebra System.
%package -n %lname
Summary: Shared library for the PARI Computer Algebra System
# This is used by the data packages to avoid having a too-old version of libpari:
Group: System/Libraries
Provides: libpari-gmp = %version
%description -n %lname
%desc
This package contains shared library for the PARI CAS.
%package devel
Summary: Development files for the PARI Computer Algebra System
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
%desc
This package contains development files for the PARI CAS.
%prep
%autosetup
# Kill __DATE__ from source, its pointless and can cause rebuilds.
sed -i -e 's/__DATE__/"today"/' src/language/paricfg.c
# Set proprer page dimensions
sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex
# Dont build DVI docs
sed -i -e 's/^\(doc all:\) .*/\1/' config/DOC_Make.SH
%build
./Configure \
--prefix="%_prefix" \
--bindir="%_bindir" \
--includedir="%_includedir" \
--libdir="%_libdir" \
--sysdatadir="%_libdir" \
--datadir="%_datadir/%name" \
--mt=pthread
%make_build \
CFLAGS="%optflags -fno-strict-aliasing" \
STRIP=true \
all
%make_build \
PDFTEX=luatex \
PDFLATEX=lualatex \
docpdf
%install
%make_install
install -dm0755 %buildroot%_sysconfdir
install -m0644 misc/gprc.dft %buildroot%_sysconfdir/gprc
install -dm0755 %buildroot%_defaultdocdir/%name
install -Dm0644 doc/*.pdf %buildroot%_defaultdocdir/%name
rm -rf %buildroot%_datadir/%name/doc
mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files gp
%doc AUTHORS CHANGES* README* NEW
%config %_sysconfdir/gprc
%_bindir/*
%_datadir/%name
%_libdir/%name.cfg
%_mandir/*/*.1%{?ext_man}
%files doc
%_defaultdocdir/%name/
%files -n %lname
%license COPYING
%_libdir/libpari-gmp-tls.so.%version
%_libdir/libpari-gmp-tls.so.%sover
%files devel
%_includedir/%name/
%_libdir/libpari.so
%changelog