[pari] Cosmetic spec file changes

Paul Howarth pghmcfc at fedoraproject.org
Sat Jan 7 14:35:30 UTC 2012


commit ce73d575ed18dfb23a80105675f72d7941405b01
Author: Paul Howarth <paul at city-fan.org>
Date:   Sat Jan 7 14:05:21 2012 +0000

    Cosmetic spec file changes

 pari.spec |   34 +++++++++++++++++++---------------
 1 files changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/pari.spec b/pari.spec
index 5df1ed0..cbf0a38 100644
--- a/pari.spec
+++ b/pari.spec
@@ -3,17 +3,17 @@
 
 Name:           pari
 Version:        2.3.5
-Release:        3%{?dist}.2
+Release:        4%{?dist}
 Summary:        Number Theory-oriented Computer Algebra System
 Group:          System Environment/Libraries
 # No version is specified
 License:        GPL+
 URL:            http://pari.math.u-bordeaux.fr/
-Source0:        http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{version}.tar.gz
+Source0:        http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/pari-%{version}.tar.gz
 Source1:        pari-init.el
 Source2:        gp.desktop
 Patch0:         pari-2.3.4-xdgopen.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildRequires:  emacs
 BuildRequires:  readline-devel
 BuildRequires:  gmp-devel
@@ -95,7 +95,7 @@ sed -e 's|@DATADIR@|%{_datadir}|' %{SOURCE2} > gp.desktop
     --datadir=%{_datadir}/pari \
     --includedir=%{_includedir} \
     --with-gmp
-make %{?_smp_mflags} gp CFLAGS="-fPIC $RPM_OPT_FLAGS -fno-strict-aliasing"
+make %{?_smp_mflags} gp CFLAGS="-fPIC %{optflags} -fno-strict-aliasing"
 
 
 %check
@@ -108,25 +108,25 @@ make dotest-round4
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT STRIP=/bin/true
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} STRIP=/bin/true
 
 # we move pari.cfg to the docdir
-rm -fr $RPM_BUILD_ROOT%{_prefix}/lib/pari
+rm -fr %{buildroot}%{_prefix}/lib/pari
 
-install -D -m 644 pari-init.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/pari-init.el
+install -D -m 644 pari-init.el %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d/pari-init.el
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+mkdir -p %{buildroot}%{_datadir}/applications
 desktop-file-install \
     --vendor fedora \
-    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+    --dir %{buildroot}%{_datadir}/applications \
     gp.desktop
 
-find $RPM_BUILD_ROOT -name xgp -exec rm '{}' ';'
+find %{buildroot} -name xgp -exec rm '{}' ';'
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %post -p /sbin/ldconfig
@@ -170,17 +170,21 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jan  7 2012 Paul Howarth <paul at city-fan.org> - 2.3.5-4
+- s/\$RPM_BUILD_ROOT/%%{buildroot}/g for tidyness
+- update source URL as 2.3.5 is now an OLD version
+
 * Wed Oct 26 2011 Marcela Mašláňová <mmaslano at redhat.com> - 2.3.5-3.2
 - rebuild with new gmp without compat lib
 
 * Wed Oct 12 2011 Peter Schiffer <pschiffe at redhat.com> - 2.3.5-3.1
 - rebuild with new gmp
 
-* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.5-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+* Tue Feb  8 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.5-3
+- rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
 * Fri Oct  1 2010 Mark Chappell <tremble at fedoraproject.org> - 2.3.5-2
-- Switch the latex dependencies over to tex(...)
+- switch the latex dependencies over to tex(...)
 
 * Fri Jul  9 2010 Paul Howarth <paul at city-fan.org> - 2.3.5-1
 - update to 2.3.5 (see CHANGES for details)


More information about the scm-commits mailing list