[mingw-xerces-c: 12/13] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 18:21:01 UTC 2012


commit 6a2719abf790291ff3eb7eb6b365428ff06ed6f9
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 20:15:33 2012 +0200

    Modernize the spec file

 mingw-xerces-c.spec |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/mingw-xerces-c.spec b/mingw-xerces-c.spec
index 0334389..9062aa1 100644
--- a/mingw-xerces-c.spec
+++ b/mingw-xerces-c.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}
 %define __debug_install_post %{_mingw32_debug_install_post}
 
 Name:           mingw-xerces-c
@@ -15,11 +12,10 @@ License:        ASL 2.0
 URL:            http://xml.apache.org/xerces-c/
 Source0:        http://www.apache.org/dist/xerces/c/3/sources/xerces-c-%{version}.tar.gz
 Patch0:         xerces-c-3.0.1-fix-libtool-compatibility.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 53
+BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-gcc-c++
 BuildRequires:  mingw32-binutils
@@ -62,18 +58,12 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 rm -f $RPM_BUILD_ROOT%{_mingw32_bindir}/*.exe
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -n mingw32-xerces-c
-%defattr(-,root,root,-)
 %doc LICENSE
 %{_mingw32_includedir}/xercesc/
 %{_mingw32_bindir}/libxerces-c-3-1.dll
@@ -85,6 +75,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 3.1.1-4
 - Renamed the source package to mingw-xerces-c (#801039)
+- Modernize the spec file
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 3.1.1-3
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list