[libgexiv2] Spec clean up for recent rpmbuild

Kalev Lember kalev at fedoraproject.org
Tue Apr 3 12:21:36 UTC 2012


commit 945f2b06763f8646c2fe2506229e5cafb584d71f
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 3 15:12:52 2012 +0300

    Spec clean up for recent rpmbuild
    
    None of this is needed with the version of rpm in current Fedora
    releases.

 libgexiv2.spec |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/libgexiv2.spec b/libgexiv2.spec
index 63b2257..af42ff8 100644
--- a/libgexiv2.spec
+++ b/libgexiv2.spec
@@ -7,7 +7,6 @@ Group:          System Environment/Libraries
 License:        GPLv2
 URL:            http://trac.yorba.org/wiki/gexiv2 
 Source0:        http://yorba.org/download/gexiv2/0.4/%{name}-%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  exiv2-devel gobject-introspection-devel libtool
 
@@ -41,13 +40,9 @@ LDFLAGS="--Wl,-z,relro"; export LDFLAGS
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib}
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
- 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 
 %post -p /sbin/ldconfig
@@ -56,12 +51,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS COPYING MAINTAINERS 
 %{_libdir}/libgexiv2.so.*
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/gexiv2/
 %{_libdir}/libgexiv2.so
 %{_libdir}/pkgconfig/gexiv2.pc


More information about the scm-commits mailing list