From 969287827722815d8bf6c67e2a2b9eb7d07ce746f22e6f170dd88a62816d9822 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Oct 2021 08:59:49 +0000 Subject: [PATCH 1/4] Accepting request 928049 from home:urbic:branches:science - Update to release 2.13.2. Fixed [last column crossreferences current development release 2.14.0] * rnfidealup(, non-integral ideal) -> division by 0 [F22] * memory leak in ellheight [F23] * memory leak in bnfinit [F24] * nfeltdiv(nfinit(x^2+1), 0, 1+x/2) -> SEGV [#2277] [F26] * znchargauss(g,chi,0) -> oo loop [F28] * bnflog(bnr, ...) -> SEGV [F29] * elliptic functions: incorrect reduction of z/w1 mod [1,tau] => catastrophic cancellation [F30] * powcx(x, t_COMPLEX with 0 imaginary part) -> crash [F31] * nfsubfields(t_POL in other var than x,,1) -> SEGV [F32] * extra terms in power t_SER substitutions [#2281] [F33] * k=bnfinit(quadpoly(-2923,a)); bnrclassfield(k,3) -> SEGV [#2280] [F34] * rnfdisc mishandled polynomials with denominators [#2284] [F35] * elltamagawa(ellinit([-1456/243,93184/19683])) -> wrong result [F36] * mfsearch would sometimes miss the trivial form [F37] * typo in allh [affects ECPP tunings] [F38] * mfisetaquo(mffrometaquo([1,12;193,12])) -> 0 [F39] * polroots(1.E-47*t^6+1.E-47*t^5+4.E-46*t^4) -> bug in type [#2286] [F40] * ceil(quadgen(5)) -> 1 instead of 0 [#2288] [F41] * floor(Mod(0,3)*quadgen(5)) -> crash [F42] * wrong ispower(t_RFRAC) and issquare(t_RFRAC, &z) [#2289] [F45] * 1+O(x)==O(x) [F47] * qfauto([[1,0;0,1],[0,0;1,0]]) -> SEGV [F49] * bnfsunit(...)[4] (the S-regulator) did not correspond to its definition in the documentation [ was using log(p) instead of log(Norm P)) for P in S above p ] [F50] * rnfdisc could return corrupted result [F51] * concat(List([1])[1..0]) ->SEGV (instead of error) [#2299] [F53] * List([1])[1..0]==List() -> 0 instead of 1 [F54] - Build PDF documentation and place it into separate pari-doc package. Move examples from pari-devel package to pari-doc. - Add %{_sysconfdir}/gprc to packaging. - Remove patch pari-nodate.diff (replace with the sed one-liner in the %prep section). - Remove obsolete stuff from the spec file. - Apply spec-cleaner. OBS-URL: https://build.opensuse.org/request/show/928049 OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=50 --- pari-2.13.1.tar.gz | 3 - pari-2.13.1.tar.gz.asc | 16 ----- pari-2.13.2.tar.gz | 3 + pari-2.13.2.tar.gz.asc | 16 +++++ pari-nodate.diff | 21 ------ pari.changes | 46 ++++++++++++ pari.spec | 160 ++++++++++++++++++++++++----------------- 7 files changed, 159 insertions(+), 106 deletions(-) delete mode 100644 pari-2.13.1.tar.gz delete mode 100644 pari-2.13.1.tar.gz.asc create mode 100644 pari-2.13.2.tar.gz create mode 100644 pari-2.13.2.tar.gz.asc delete mode 100644 pari-nodate.diff diff --git a/pari-2.13.1.tar.gz b/pari-2.13.1.tar.gz deleted file mode 100644 index 4e59ada..0000000 --- a/pari-2.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81ecf7d70ccdaae230165cff627c9ce2ec297b8f22f9f40742279d85f86dfcb1 -size 4760932 diff --git a/pari-2.13.1.tar.gz.asc b/pari-2.13.1.tar.gz.asc deleted file mode 100644 index 7e01fc5..0000000 --- a/pari-2.13.1.tar.gz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmADM90ACgkQjw58K0Ui -44emkw//dwJNLGXLr5bB6/5UqltUQy8VLA4SzyJC0gb77C0uQgms5DuDMNgJNrF5 -WDbaxXWbcIB44ORX17B/y407hUoPvL9LPVtE1J1NxkUln1jjLiFOf9KFbaFfo/SS -jcvTZZbN+GWItveq5+vkNY6A4CiPix+IjAQ5tZAHbQlJLxJ3K09VMYtO7ICsIHSd -MKiq+pO8kEc4ANIA71I8x1Z7HXVtkfV3lGZ65u+1rDaTaW1821UgbdO+rOBvR81Z -it1KYYX4ZTGzA3iM4bqbxJatkSzyZi6WsuSh4EsYWLo/8YBMRefvWvWWyYQ9Kl7J -TzkpGDoiri0UoKyYEAsHitPLRgiSUalXOm1EopQfkE5rYJtqUxslu56Ik/saRIzs -vc+CrkWsyywZRvue+FKsZpYWiNHYHBDOKm/n9lRRl/dyOBCPj5ouvbOEefJ9wDnw -FidqxYeDBbcW4Q4crl2HFweKZtgr15CmBRnpaxGT6KS/TbxgqefkukQ1CAlOe2Xj -1QBN7JG9oUexlE2drHVsAxLW2e2kRHThy/5Z/OfaO8caXm+jVXroweXARO8FY4Z5 -KzLPKbcPW/AUNwpNtnRl9350g0rIhEq7DkomyZmsTDNdZ/I0HA4lif3o9YQa8KPZ -Vk78Fc4DAgctw0x69130jDHVPJN8bObh1hWetX9F7d6fcad73Wk= -=Foqs ------END PGP SIGNATURE----- diff --git a/pari-2.13.2.tar.gz b/pari-2.13.2.tar.gz new file mode 100644 index 0000000..0567334 --- /dev/null +++ b/pari-2.13.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1679985094a0b723d14f49aa891dbe5ec967aa4040050a2c50bd764ddb3eba24 +size 4766461 diff --git a/pari-2.13.2.tar.gz.asc b/pari-2.13.2.tar.gz.asc new file mode 100644 index 0000000..a6883d8 --- /dev/null +++ b/pari-2.13.2.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmDUcocACgkQjw58K0Ui +44dq3BAAlwEVG8ZWb0oTJDykDmkmveUIgMgdMdPUGi9BgIaXKZVKmrzR7WM9bKe5 +PMG7d9xaN5+oZMTZ21nhaNNDe6d19Tx7lD2Wxrs6rNQT5efpqFfJ8jRDIBtU80rf +yLHVzYeLxle6o82vV/IpiKyqd3k22jk9uhlsWMyK2PcuF07v6bsPH8GKSahKC5Jw +sVeRN1eXt6feGXBMc03LrnZmcZU4kVVTdsPvT1hVtLdGLaS/jQ1AvfVD4NYpXdMI +Aixr7JcnJuR8zGapaPsKHKPNhkMkP60ZBYyn2OgEW5DMOzEbjQA+KY4HL8qWwa4A +1+sZMjlW78yY3vJjj9d8mf7wPyN88+r6qVNE+M94VLzm5Hd94N33BZp5jHKVFi07 +DQG8qaz3e+2jqyZfZerTt0dKEqe/mExGL9X4+guHpt285B9PqKW+USIzbuggO4j2 +xzqsOk6auCzzzfIwUFuvYOz3zJ0XKJsTYZIKhLfvSP5td6n6tlSMkYPXB54azEwF +3fpkX7CkrQhswC7hFT5AMh05sCuorhLguSy1Dn0tTPiUSl36yehSPwg+IHCsUSSC +9rHrImKdtyB+nfF01EfjRShO2JTJlqXofnyU3H5GGNy5JIaQBT19CdT+Ik4ps6zJ +bTmSHDnDWhNai/sQyHyOw6jqEo99yjo0osF7GCe7j3FTfFwiTpw= +=/SM0 +-----END PGP SIGNATURE----- diff --git a/pari-nodate.diff b/pari-nodate.diff deleted file mode 100644 index 31484d5..0000000 --- a/pari-nodate.diff +++ /dev/null @@ -1,21 +0,0 @@ -From: Jan Engelhardt -Date: 2014-02-05 03:01:02.110857012 +0100 - -Kill __DATE__ from source, it's pointless and can cause rebuilds. - ---- - src/language/paricfg.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: pari-2.11.0/src/language/paricfg.c -=================================================================== ---- pari-2.11.0.orig/src/language/paricfg.c -+++ pari-2.11.0/src/language/paricfg.c -@@ -17,6 +17,6 @@ const char *paricfg_version = PARIVERSIO - const char *paricfg_buildinfo = PARIINFO; - const long paricfg_version_code = PARI_VERSION_CODE; - const char *paricfg_vcsversion = PARI_VCSVERSION; --const char *paricfg_compiledate = __DATE__; -+const char *paricfg_compiledate = "openSUSE"; - const char *paricfg_mt_engine = PARI_MT_ENGINE; - const char *paricfg_gphelp = GPHELP; diff --git a/pari.changes b/pari.changes index 7e10366..c198d06 100644 --- a/pari.changes +++ b/pari.changes @@ -1,3 +1,49 @@ +------------------------------------------------------------------- +Fri Oct 29 01:01:54 UTC 2021 - Anton Shvetz + +- Update to release 2.13.2. Fixed + [last column crossreferences current development release 2.14.0] + * rnfidealup(, non-integral ideal) -> division by 0 [F22] + * memory leak in ellheight [F23] + * memory leak in bnfinit [F24] + * nfeltdiv(nfinit(x^2+1), 0, 1+x/2) -> SEGV [#2277] [F26] + * znchargauss(g,chi,0) -> oo loop [F28] + * bnflog(bnr, ...) -> SEGV [F29] + * elliptic functions: incorrect reduction + of z/w1 mod [1,tau] => catastrophic cancellation [F30] + * powcx(x, t_COMPLEX with 0 imaginary part) -> crash [F31] + * nfsubfields(t_POL in other var than x,,1) -> SEGV [F32] + * extra terms in power t_SER substitutions [#2281] [F33] + * k=bnfinit(quadpoly(-2923,a)); + bnrclassfield(k,3) -> SEGV [#2280] [F34] + * rnfdisc mishandled polynomials with denominators [#2284] [F35] + * elltamagawa(ellinit([-1456/243,93184/19683])) -> + wrong result [F36] + * mfsearch would sometimes miss the trivial form [F37] + * typo in allh [affects ECPP tunings] [F38] + * mfisetaquo(mffrometaquo([1,12;193,12])) -> 0 [F39] + * polroots(1.E-47*t^6+1.E-47*t^5+4.E-46*t^4) -> + bug in type [#2286] [F40] + * ceil(quadgen(5)) -> 1 instead of 0 [#2288] [F41] + * floor(Mod(0,3)*quadgen(5)) -> crash [F42] + * wrong ispower(t_RFRAC) and issquare(t_RFRAC, &z) [#2289] [F45] + * 1+O(x)==O(x) [F47] + * qfauto([[1,0;0,1],[0,0;1,0]]) -> SEGV [F49] + * bnfsunit(...)[4] (the S-regulator) did not correspond to + its definition in the documentation [ was using log(p) + instead of log(Norm P)) for P in S above p ] [F50] + * rnfdisc could return corrupted result [F51] + * concat(List([1])[1..0]) ->SEGV (instead of error) [#2299] [F53] + * List([1])[1..0]==List() -> 0 instead of 1 [F54] +- Build PDF documentation and place it into separate + pari-doc package. Move examples from pari-devel package + to pari-doc. +- Add %{_sysconfdir}/gprc to packaging. +- Remove patch pari-nodate.diff (replace with the sed one-liner + in the %prep section). +- Remove obsolete stuff from the spec file. +- Apply spec-cleaner. + ------------------------------------------------------------------- Sun Feb 7 21:15:14 UTC 2021 - Aaron Puchert diff --git a/pari.spec b/pari.spec index 254647d..84b1192 100644 --- a/pari.spec +++ b/pari.spec @@ -16,114 +16,142 @@ # +%global desc \ +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.\ +%{nil} # See # http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html # for details on the SO versioning. - +%global sover 7 +%global lname libpari-gmp-tls%{sover} Name: pari -%define sover 7 -%define lname libpari-gmp-tls%sover -Version: 2.13.1 +Version: 2.13.2 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 -Source: https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz -Source2: https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc -Patch1: pari-nodate.diff +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 +Source2: %{url}/pub/pari/unix/pari-%{version}.tar.gz.asc BuildRequires: fltk-devel BuildRequires: gmp-devel -BuildRequires: libX11-devel +BuildRequires: pkgconfig 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 -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. +%{desc} %package gp -Summary: Frontend to the PARI Computer Algebra System +Summary: Frontend to the PARI CAS 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. +%{desc} -%package -n %lname -Summary: Computer Algebra System library for fast computations in Number Theory +%package doc +Summary: Documentation for the PARI CAS +Group: Documentation/Other +BuildArch: noarch + +%description doc +%{desc} + +This package contains the documentation and examples for the PARI CAS. + +%package -n %{lname} +Summary: Shared library for the PARI CAS # This is used by the data packages to avoid having a too-old version of libpari: Group: System/Libraries -Provides: libpari-gmp = %version +Provides: libpari-gmp = %{version} -%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. +%description -n %{lname} +%{desc} + +This package contains shared library for the PARI CAS. %package devel Summary: Development files for the PARI CAS Group: Development/Libraries/C and C++ -Requires: %lname = %version +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. +%{desc} + +This package contains development files for the PARI CAS. %prep -%autosetup -p1 +%autosetup +# Kill __DATE__ from source, it’s pointless and can cause rebuilds. +sed -i -e 's/__DATE__/"%{_repository}"/' src/language/paricfg.c +# Set proprer page dimensions +sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex +# Don’t 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" \ +./Configure \ + --prefix="%{_prefix}" \ + --bindir="%{_bindir}" \ + --includedir="%{_includedir}" \ + --libdir="%{_libdir}" \ + --sysdatadir="%{_libdir}" \ + --datadir="%{_datadir}/%{name}" \ --mt=pthread -%make_build all \ - CFLAGS="%optflags -fno-strict-aliasing" \ - STRIP=true +%make_build -e \ + CFLAGS="%{optflags} -fno-strict-aliasing" \ + STRIP=true \ + PDFTEX=luatex \ + PDFLATEX=lualatex \ + all docpdf %install %make_install +install -dm0755 %{buildroot}%{_sysconfdir} +install -m0644 misc/gprc.dft %{buildroot}%{_sysconfdir}/gprc -%post -n %lname -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig +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 -%_bindir/* -%_datadir/%name -%_libdir/%name.cfg -%_mandir/man*/* - -%files -n %lname -%if 0%{?sle_version} <= 150000 && !0%{?is_opensuse} -%dir %_licensedir -%endif +%doc AUTHORS CHANGES* README* NEW %license COPYING -%_libdir/libpari-gmp-tls.so.%version -%_libdir/libpari-gmp-tls.so.%sover +%config %{_sysconfdir}/gprc +%{_bindir}/* +%{_datadir}/%{name} +%{_libdir}/%{name}.cfg +%{_mandir}/man1/*.1%{?ext_man} + +%files doc +%license COPYING +%{_defaultdocdir}/%{name} + +%files -n %{lname} +%license COPYING +%{_libdir}/libpari-gmp-tls.so.%{version} +%{_libdir}/libpari-gmp-tls.so.%{sover} %files devel -%doc examples/ -%doc CHANGES CHANGES-* NEW README -%_includedir/pari/ -%_libdir/libpari.so +%license COPYING +%{_includedir}/%{name} +%{_libdir}/libpari.so %changelog From 9952a3dbee984d6e6ba38176545c5a76f3935ce268a2a9cfa68d6536ca6f462d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Oct 2021 09:00:04 +0000 Subject: [PATCH 2/4] Undo noisy changes OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=51 --- pari.spec | 80 +++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/pari.spec b/pari.spec index 84b1192..8fa7e3e 100644 --- a/pari.spec +++ b/pari.spec @@ -23,12 +23,12 @@ 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.\ -%{nil} +%nil # See # http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html # for details on the SO versioning. %global sover 7 -%global lname libpari-gmp-tls%{sover} +%global lname libpari-gmp-tls%sover Name: pari Version: 2.13.2 Release: 0 @@ -38,8 +38,8 @@ 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 -Source2: %{url}/pub/pari/unix/pari-%{version}.tar.gz.asc +Source0: %url/pub/pari/unix/pari-%version.tar.gz +Source2: %url/pub/pari/unix/pari-%version.tar.gz.asc BuildRequires: fltk-devel BuildRequires: gmp-devel BuildRequires: pkgconfig @@ -53,14 +53,14 @@ BuildRequires: xorg-x11-proto-devel BuildRequires: pkgconfig(x11) %description -%{desc} +%desc %package gp Summary: Frontend to the PARI CAS Group: Productivity/Scientific/Math %description gp -%{desc} +%desc %package doc Summary: Documentation for the PARI CAS @@ -68,35 +68,35 @@ Group: Documentation/Other BuildArch: noarch %description doc -%{desc} +%desc This package contains the documentation and examples for the PARI CAS. -%package -n %{lname} +%package -n %lname Summary: Shared library for the PARI CAS # This is used by the data packages to avoid having a too-old version of libpari: Group: System/Libraries -Provides: libpari-gmp = %{version} +Provides: libpari-gmp = %version -%description -n %{lname} -%{desc} +%description -n %lname +%desc This package contains shared library for the PARI CAS. %package devel Summary: Development files for the PARI CAS Group: Development/Libraries/C and C++ -Requires: %{lname} = %{version} +Requires: %lname = %version %description devel -%{desc} +%desc This package contains development files for the PARI CAS. %prep %autosetup # Kill __DATE__ from source, it’s pointless and can cause rebuilds. -sed -i -e 's/__DATE__/"%{_repository}"/' src/language/paricfg.c +sed -i -e 's/__DATE__/"%_repository"/' src/language/paricfg.c # Set proprer page dimensions sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex # Don’t build DVI docs @@ -104,15 +104,15 @@ 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}" \ + --prefix="%_prefix" \ + --bindir="%_bindir" \ + --includedir="%_includedir" \ + --libdir="%_libdir" \ + --sysdatadir="%_libdir" \ + --datadir="%_datadir/%name" \ --mt=pthread %make_build -e \ - CFLAGS="%{optflags} -fno-strict-aliasing" \ + CFLAGS="%optflags -fno-strict-aliasing" \ STRIP=true \ PDFTEX=luatex \ PDFLATEX=lualatex \ @@ -120,38 +120,38 @@ sed -i -e 's/^\(doc all:\) .*/\1/' config/DOC_Make.SH %install %make_install -install -dm0755 %{buildroot}%{_sysconfdir} -install -m0644 misc/gprc.dft %{buildroot}%{_sysconfdir}/gprc +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} +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 +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig %files gp %doc AUTHORS CHANGES* README* NEW %license COPYING -%config %{_sysconfdir}/gprc -%{_bindir}/* -%{_datadir}/%{name} -%{_libdir}/%{name}.cfg -%{_mandir}/man1/*.1%{?ext_man} +%config %_sysconfdir/gprc +%_bindir/* +%_datadir/%name +%_libdir/%name.cfg +%_mandir/man1/*.1%{?ext_man} %files doc %license COPYING -%{_defaultdocdir}/%{name} +%_defaultdocdir/%name -%files -n %{lname} +%files -n %lname %license COPYING -%{_libdir}/libpari-gmp-tls.so.%{version} -%{_libdir}/libpari-gmp-tls.so.%{sover} +%_libdir/libpari-gmp-tls.so.%version +%_libdir/libpari-gmp-tls.so.%sover %files devel %license COPYING -%{_includedir}/%{name} -%{_libdir}/libpari.so +%_includedir/%name +%_libdir/libpari.so %changelog From b7de9dd35d580441b40f9235e4c55f669f5592540e4a6569b02d5a6ec797786c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Oct 2021 09:02:39 +0000 Subject: [PATCH 3/4] restore/trim descriptions OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=52 --- pari.spec | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/pari.spec b/pari.spec index 8fa7e3e..8754708 100644 --- a/pari.spec +++ b/pari.spec @@ -17,12 +17,10 @@ %global desc \ -PARI/GP is a computer algebra system designed for fast computations\ +PARI/GP is a computer algebra system designed for 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.\ +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 @@ -42,7 +40,7 @@ Source0: %url/pub/pari/unix/pari-%version.tar.gz Source2: %url/pub/pari/unix/pari-%version.tar.gz.asc BuildRequires: fltk-devel BuildRequires: gmp-devel -BuildRequires: pkgconfig +BuildRequires: pkg-config BuildRequires: readline-devel BuildRequires: texlive-latex BuildRequires: texlive-luatex @@ -56,24 +54,24 @@ BuildRequires: pkgconfig(x11) %desc %package gp -Summary: Frontend to the PARI CAS +Summary: Frontend to the PARI Computer Algebra System Group: Productivity/Scientific/Math %description gp %desc %package doc -Summary: Documentation for the PARI CAS +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 CAS. +This package contains the documentation and examples for the PARI Computer Algebra System. %package -n %lname -Summary: Shared library for the PARI CAS +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 @@ -81,22 +79,22 @@ Provides: libpari-gmp = %version %description -n %lname %desc -This package contains shared library for the PARI CAS. +This package contains shared library for the PARI Computer Algebra System. %package devel -Summary: Development files for the PARI CAS +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. +This package contains development files for the PARI Computer Algebra System. %prep %autosetup # Kill __DATE__ from source, it’s pointless and can cause rebuilds. -sed -i -e 's/__DATE__/"%_repository"/' src/language/paricfg.c +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 # Don’t build DVI docs @@ -133,7 +131,6 @@ mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name %files gp %doc AUTHORS CHANGES* README* NEW -%license COPYING %config %_sysconfdir/gprc %_bindir/* %_datadir/%name @@ -141,7 +138,6 @@ mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name %_mandir/man1/*.1%{?ext_man} %files doc -%license COPYING %_defaultdocdir/%name %files -n %lname @@ -150,7 +146,6 @@ mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name %_libdir/libpari-gmp-tls.so.%sover %files devel -%license COPYING %_includedir/%name %_libdir/libpari.so From ad67467fb90211c8ce8ba7911075ab9d186c19145d2ccbcba453f63a81cf5bd3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Oct 2021 09:19:51 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=53 --- pari.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pari.spec b/pari.spec index 8754708..0a8522f 100644 --- a/pari.spec +++ b/pari.spec @@ -79,7 +79,7 @@ Provides: libpari-gmp = %version %description -n %lname %desc -This package contains shared library for the PARI Computer Algebra System. +This package contains shared library for the PARI CAS. %package devel Summary: Development files for the PARI Computer Algebra System @@ -89,7 +89,7 @@ Requires: %lname = %version %description devel %desc -This package contains development files for the PARI Computer Algebra System. +This package contains development files for the PARI CAS. %prep %autosetup @@ -135,10 +135,10 @@ mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name %_bindir/* %_datadir/%name %_libdir/%name.cfg -%_mandir/man1/*.1%{?ext_man} +%_mandir/*/*.1* %files doc -%_defaultdocdir/%name +%_defaultdocdir/%name/ %files -n %lname %license COPYING @@ -146,7 +146,7 @@ mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name %_libdir/libpari-gmp-tls.so.%sover %files devel -%_includedir/%name +%_includedir/%name/ %_libdir/libpari.so %changelog