[libgeotiff/el6] Spec cleanup for un-retirement

Orion Poplawski orion at fedoraproject.org
Sat Nov 1 16:24:15 UTC 2014


commit 0af8a9445623f265c03fc1707b47b91a8920cb12
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Fri Oct 31 13:28:52 2014 -0600

    Spec cleanup for un-retirement

 libgeotiff.spec |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/libgeotiff.spec b/libgeotiff.spec
index f61b54c..338419e 100644
--- a/libgeotiff.spec
+++ b/libgeotiff.spec
@@ -1,14 +1,13 @@
 Name:      libgeotiff
 Version:   1.2.5
-Release:   5%{?dist}
+Release:   6%{?dist}
 Summary:   GeoTIFF format library
 Group:     System Environment/Libraries
 License:   MIT
-URL:       http://www.remotesensing.org/geotiff/geotiff.html
-Source:    ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/%{name}-%{version}.tar.gz
+URL:       http://trac.osgeo.org/geotiff/
+Source:    http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-%{version}.tar.gz
 Patch0:    libgeotiff-soname.patch
 Patch1:    libgeotiff-multilib.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: doxygen
 BuildRequires: libtiff-devel libjpeg-devel proj-devel zlib-devel
 
@@ -28,7 +27,7 @@ Requires: %{name} = %{version}-%{release}
 The GeoTIFF library provides support for development of geotiff image format.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch0 -p1 -b .soname~
 %patch1 -p1 -b .multilib~
 
@@ -74,8 +73,6 @@ sed -i 's|LD_SHARED=@LD_SHARED@|LD_SHARED=@CC@ -shared|' Makefile.in
 make
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 # install libgeotiff
 make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
 
@@ -106,14 +103,10 @@ echo  >> %{buildroot}%{_datadir}/epsg_csv/codes.csv
 # generate docs
 doxygen
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files 
-%defattr(-,root,root,-)
 %doc ChangeLog LICENSE README
 %doc docs/*.txt docs/*.html
 %{_bindir}/geotifcp
@@ -124,7 +117,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644,root,root) %{_datadir}/epsg_csv/*.csv
 
 %files devel
-%defattr(-,root,root,-)
 %doc docs/api
 %dir %{_includedir}/%{name}
 %attr(0644,root,root) %{_includedir}/%{name}/*.h
@@ -133,6 +125,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/%{name}.pc
 
 %changelog
+* Thu Oct 30 2014 Orion Poplawski <orion at cora.nwra.com> - 1.2.5-6
+- Update URL and Source
+- Drop buildroot, clean, and defattr
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.5-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


More information about the scm-commits mailing list