Undo noisy changes
OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=51
This commit is contained in:
parent
9692878277
commit
9952a3dbee
80
pari.spec
80
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
|
||||
|
Loading…
Reference in New Issue
Block a user