[pari-galdata/el5] Tweak for EL-5 compatibility

Paul Howarth pghmcfc at fedoraproject.org
Sat Jun 2 20:51:15 UTC 2012


commit 74624cf71d4d95992070d1a519b08c0a7bf28341
Author: Paul Howarth <paul at city-fan.org>
Date:   Sat Jun 2 21:50:42 2012 +0100

    Tweak for EL-5 compatibility
    
    - Define and clean BuildRoot
    - Specify %defattr

 pari-galdata.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/pari-galdata.spec b/pari-galdata.spec
index bc76e10..88b91d8 100644
--- a/pari-galdata.spec
+++ b/pari-galdata.spec
@@ -1,6 +1,6 @@
 Name:		pari-galdata
 Version:	20080411
-Release:	3%{?dist}
+Release:	3%{?dist}.1
 Summary:	PARI/GP Computer Algebra System Galois resolvents
 Group:		System Environment/Libraries
 License:	GPLv2+
@@ -8,6 +8,7 @@ URL:		http://pari.math.u-bordeaux.fr/packages.html
 Source0:	http://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz
 Source1:	http://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz.asc
 BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 
 %description
 This package contains the optional PARI package galdata, which provides
@@ -19,14 +20,24 @@ the Galois resolvents for the polgalois function, for degrees 8 through 11.
 %build
 
 %install
+rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_datadir}/pari/
 cp -a data/galdata %{buildroot}%{_datadir}/pari/
 %{_fixperms} %{buildroot}%{_datadir}/pari/
 
+%clean
+rm -rf %{buildroot}
+
 %files
+%defattr(-,root,root,-)
 %{_datadir}/pari/
 
 %changelog
+* Sat Jun  2 2012 Paul Howarth <paul at city-fan.org> - 20080411-3.1
+- Tweaks for EL-5 compatibility:
+  - Define and clean BuildRoot
+  - Specify %%defattr
+
 * Fri Jun  1 2012 Paul Howarth <paul at city-fan.org> - 20080411-3
 - Drop conflict with old versions of pari, which cannot use this package but
   aren't broken by it either


More information about the scm-commits mailing list