[mingw-sigar: 11/12] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:39:42 UTC 2012


commit 87b927124e8e2cd3b6ce528c9f6251dc8ecaeb36
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 19:37:19 2012 +0200

    Modernize the spec file

 mingw-sigar.spec |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/mingw-sigar.spec b/mingw-sigar.spec
index 8f962fc..dd65d38 100644
--- a/mingw-sigar.spec
+++ b/mingw-sigar.spec
@@ -1,8 +1,5 @@
 %global __strip %{_mingw32_strip}
 %global __objdump %{_mingw32_objdump}
-%global _use_internal_dependency_generator 0
-%global __find_requires %{_mingw32_findrequires}
-%global __find_provides %{_mingw32_findprovides}
 
 %global shortname sigar
 
@@ -28,11 +25,10 @@ URL:		http://sigar.hyperic.com/
 #
 # The diff from 1.6.4 is too huge to contemplate cherrypicking from
 Source0:	%{shortname}-%{version}-%{sigar_hash}.tbz2
-BuildRoot:	%{_tmppath}/%{shortname}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	mingw32-gcc cmake
 BuildRequires:	redhat-rpm-config make
-BuildRequires:	mingw32-filesystem >= 57
+BuildRequires:	mingw32-filesystem
 
 BuildArch:      noarch
 
@@ -90,16 +86,11 @@ make %{?_smp_mflags}
 popd
 
 %install
-rm -rf $RPM_BUILD_ROOT
 pushd build
 make install DESTDIR=$RPM_BUILD_ROOT
 popd
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -n mingw32-%{shortname}
-%defattr(-,root,root,-)
 %doc ChangeLog README LICENSE NOTICE AUTHORS
 %{_mingw32_bindir}/libsigar.dll
 %{_mingw32_libdir}/libsigar.dll.a
@@ -108,6 +99,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 1.6.5-0.8.git58097d9
 - Renamed the source package to mingw-sigar (#801029)
+- Modernize the spec file
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.6.5-0.7.git58097d9
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list