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

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


commit e18fe21cee42e6791ee70eeb913ea4e64921554c
Author: Paul Howarth <paul at city-fan.org>
Date:   Sat Jun 2 21:49:05 2012 +0100

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

 pari-elldata.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/pari-elldata.spec b/pari-elldata.spec
index afd8441..4178a14 100644
--- a/pari-elldata.spec
+++ b/pari-elldata.spec
@@ -1,6 +1,6 @@
 Name:		pari-elldata
 Version:	20120415
-Release:	5%{?dist}
+Release:	5%{?dist}.1
 Summary:	PARI/GP Computer Algebra System elliptic curves
 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/elldata.tgz
 Source1:	http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz.asc
 BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 
 %description
 This package contains the optional PARI package elldata, which provides the
@@ -23,15 +24,25 @@ mv data/elldata/README .
 %build
 
 %install
+rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_datadir}/pari/
 cp -a data/elldata %{buildroot}%{_datadir}/pari/
 %{_fixperms} %{buildroot}%{_datadir}/pari/
 
+%clean
+rm -rf %{buildroot}
+
 %files
+%defattr(-,root,root,-)
 %doc README
 %{_datadir}/pari/
 
 %changelog
+* Sat Jun  2 2012 Paul Howarth <paul at city-fan.org> - 20120415-5.1
+- Tweaks for EL-5 compatibility:
+  - Define and clean BuildRoot
+  - Specify %%defattr
+
 * Mon May 28 2012 Paul Howarth <paul at city-fan.org> - 20120415-5
 - 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