[udunits2/el5/master] update to 2.1.19, build with system expat

Tom Callaway spot at fedoraproject.org
Mon Nov 15 17:28:16 UTC 2010


commit 5d4297855e2a4de12b762e507c120c886e67b8c7
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Mon Nov 15 12:28:21 2010 -0500

    update to 2.1.19, build with system expat

 udunits2.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/udunits2.spec b/udunits2.spec
index dd736f6..10ca0b8 100644
--- a/udunits2.spec
+++ b/udunits2.spec
@@ -1,12 +1,13 @@
 Name: udunits2
 Version: 2.1.19
-Release: 1%{?dist}
+Release: 1%{?dist}.1
 Summary: A library for manipulating units of physical quantities
 License: MIT
 Group: System Environment/Libraries
 URL: http://www.unidata.ucar.edu/software/udunits/
 Source0: ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-%{version}.tar.gz
 BuildRequires: gcc-c++, groff, byacc, expat-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 The Unidata units utility, udunits2, supports conversion of unit specifications 
@@ -44,6 +45,7 @@ the udunits2 library.
 make %{?_smp_mflags}
 
 %install
+rm -rf %{buildroot}
 make DESTDIR=%{buildroot} install
 mkdir -p %{buildroot}%{_infodir}/
 install -p -m0644 %{name}.info %{buildroot}%{_infodir}
@@ -54,6 +56,9 @@ mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}/
 rm -rf %{buildroot}%{_libdir}/*.la
 rm -rf %{buildroot}%{_infodir}/dir
 
+%clean
+rm -rf %{buildroot}
+
 %post
 /sbin/ldconfig
 /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
@@ -80,6 +85,9 @@ fi
 %{_libdir}/libudunits2.so
 
 %changelog
+* Mon Nov 15 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 2.1.19-1.1
+- fix for el5 rpm (need to define buildroot, most notably)
+
 * Mon Nov 15 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 2.1.19-1
 - update to 2.1.19
 


More information about the scm-commits mailing list