Undo noisy changes

OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=51
This commit is contained in:
Jan Engelhardt 2021-10-29 09:00:04 +00:00 committed by Git OBS Bridge
parent 9692878277
commit 9952a3dbee

View File

@ -23,12 +23,12 @@ curves), but also contains a large number of other useful functions\
to compute with mathematical entities such as matrices, polynomials,\ to compute with mathematical entities such as matrices, polynomials,\
power series, algebraic numbers etc., and a lot of transcendental\ power series, algebraic numbers etc., and a lot of transcendental\
functions.\ functions.\
%{nil} %nil
# See # See
# http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html # http://pari.math.u-bordeaux.fr/archives/pari-dev-1211/msg00006.html
# for details on the SO versioning. # for details on the SO versioning.
%global sover 7 %global sover 7
%global lname libpari-gmp-tls%{sover} %global lname libpari-gmp-tls%sover
Name: pari Name: pari
Version: 2.13.2 Version: 2.13.2
Release: 0 Release: 0
@ -38,8 +38,8 @@ Group: Productivity/Scientific/Math
URL: https://pari.math.u-bordeaux.fr URL: https://pari.math.u-bordeaux.fr
#Git-Clone: https://pari.math.u-bordeaux.fr/git/pari.git #Git-Clone: https://pari.math.u-bordeaux.fr/git/pari.git
#Git-Web: https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi #Git-Web: https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi
Source0: %{url}/pub/pari/unix/pari-%{version}.tar.gz Source0: %url/pub/pari/unix/pari-%version.tar.gz
Source2: %{url}/pub/pari/unix/pari-%{version}.tar.gz.asc Source2: %url/pub/pari/unix/pari-%version.tar.gz.asc
BuildRequires: fltk-devel BuildRequires: fltk-devel
BuildRequires: gmp-devel BuildRequires: gmp-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -53,14 +53,14 @@ BuildRequires: xorg-x11-proto-devel
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
%description %description
%{desc} %desc
%package gp %package gp
Summary: Frontend to the PARI CAS Summary: Frontend to the PARI CAS
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
%description gp %description gp
%{desc} %desc
%package doc %package doc
Summary: Documentation for the PARI CAS Summary: Documentation for the PARI CAS
@ -68,35 +68,35 @@ Group: Documentation/Other
BuildArch: noarch BuildArch: noarch
%description doc %description doc
%{desc} %desc
This package contains the documentation and examples for the PARI CAS. This package contains the documentation and examples for the PARI CAS.
%package -n %{lname} %package -n %lname
Summary: Shared library for the PARI CAS Summary: Shared library for the PARI CAS
# 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} Provides: libpari-gmp = %version
%description -n %{lname} %description -n %lname
%{desc} %desc
This package contains shared library for the PARI CAS. This package contains shared library for the PARI CAS.
%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
%{desc} %desc
This package contains development files for the PARI CAS. This package contains development files for the PARI CAS.
%prep %prep
%autosetup %autosetup
# Kill __DATE__ from source, its pointless and can cause rebuilds. # Kill __DATE__ from source, its 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 # Set proprer page dimensions
sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex sed -i -e '27 i \\\else\\\pagewidth=11.69in\\\pageheight=8.26in' doc/refmacro.tex
# Dont build DVI docs # Dont build DVI docs
@ -104,15 +104,15 @@ sed -i -e 's/^\(doc all:\) .*/\1/' config/DOC_Make.SH
%build %build
./Configure \ ./Configure \
--prefix="%{_prefix}" \ --prefix="%_prefix" \
--bindir="%{_bindir}" \ --bindir="%_bindir" \
--includedir="%{_includedir}" \ --includedir="%_includedir" \
--libdir="%{_libdir}" \ --libdir="%_libdir" \
--sysdatadir="%{_libdir}" \ --sysdatadir="%_libdir" \
--datadir="%{_datadir}/%{name}" \ --datadir="%_datadir/%name" \
--mt=pthread --mt=pthread
%make_build -e \ %make_build -e \
CFLAGS="%{optflags} -fno-strict-aliasing" \ CFLAGS="%optflags -fno-strict-aliasing" \
STRIP=true \ STRIP=true \
PDFTEX=luatex \ PDFTEX=luatex \
PDFLATEX=lualatex \ PDFLATEX=lualatex \
@ -120,38 +120,38 @@ sed -i -e 's/^\(doc all:\) .*/\1/' config/DOC_Make.SH
%install %install
%make_install %make_install
install -dm0755 %{buildroot}%{_sysconfdir} install -dm0755 %buildroot%_sysconfdir
install -m0644 misc/gprc.dft %{buildroot}%{_sysconfdir}/gprc install -m0644 misc/gprc.dft %buildroot%_sysconfdir/gprc
install -dm0755 %{buildroot}%{_defaultdocdir}/%{name} install -dm0755 %buildroot%_defaultdocdir/%name
install -Dm0644 doc/*.pdf %{buildroot}%{_defaultdocdir}/%{name} install -Dm0644 doc/*.pdf %buildroot%_defaultdocdir/%name
rm -rf %{buildroot}%{_datadir}/%{name}/doc rm -rf %buildroot%_datadir/%name/doc
mv %{buildroot}%{_datadir}/%{name}/examples %{buildroot}%{_defaultdocdir}/%{name} mv %buildroot%_datadir/%name/examples %buildroot%_defaultdocdir/%name
%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
%doc AUTHORS CHANGES* README* NEW %doc AUTHORS CHANGES* README* NEW
%license COPYING %license COPYING
%config %{_sysconfdir}/gprc %config %_sysconfdir/gprc
%{_bindir}/* %_bindir/*
%{_datadir}/%{name} %_datadir/%name
%{_libdir}/%{name}.cfg %_libdir/%name.cfg
%{_mandir}/man1/*.1%{?ext_man} %_mandir/man1/*.1%{?ext_man}
%files doc %files doc
%license COPYING %license COPYING
%{_defaultdocdir}/%{name} %_defaultdocdir/%name
%files -n %{lname} %files -n %lname
%license COPYING %license COPYING
%{_libdir}/libpari-gmp-tls.so.%{version} %_libdir/libpari-gmp-tls.so.%version
%{_libdir}/libpari-gmp-tls.so.%{sover} %_libdir/libpari-gmp-tls.so.%sover
%files devel %files devel
%license COPYING %license COPYING
%{_includedir}/%{name} %_includedir/%name
%{_libdir}/libpari.so %_libdir/libpari.so
%changelog %changelog