[mingw-filesystem: 51/73] Cleaned up the spec file from cruft not needed with latest rpm

Kalev Lember kalev at fedoraproject.org
Thu Feb 23 19:16:55 UTC 2012


commit 11c4c8fba587396ef960ca6fd8a4dedab6294e48
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Fri May 20 13:30:59 2011 +0300

    Cleaned up the spec file from cruft not needed with latest rpm

 mingw32-filesystem.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/mingw32-filesystem.spec b/mingw32-filesystem.spec
index 54afefa..dab8866 100644
--- a/mingw32-filesystem.spec
+++ b/mingw32-filesystem.spec
@@ -8,7 +8,6 @@ Summary:        MinGW base filesystem and environment
 Group:          Development/Libraries
 License:        GPLv2+
 URL:            http://hg.et.redhat.com/misc/fedora-mingw--devel/
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
 Source0:        COPYING
@@ -77,8 +76,6 @@ sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw32-find-requires.sh
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 mkdir -p $RPM_BUILD_ROOT
 
 mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
@@ -147,12 +144,8 @@ install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/usr/lib/rpm/fileattrs/
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/mingw32
 install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mingw32
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING
 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw32
 %config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
@@ -175,6 +168,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Fri May 20 2011 Kalev Lember <kalev at smartlink.ee> - 68-1
 - Support RPM 4.9 new "fileattr" dep extraction system
+- Cleaned up the spec file from cruft not needed with latest rpm
 
 * Sat May 14 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 67-1
 - Don't unset PKG_CONFIG_PATH in the wrapper scripts


More information about the scm-commits mailing list