[mingw-libvirt: 21/22] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 15:41:40 UTC 2012


commit 16a1a98d2498a5defe1f14b29be06d099b6b0e5d
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 17:32:23 2012 +0200

    Modernize the spec file

 mingw-libvirt.spec |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/mingw-libvirt.spec b/mingw-libvirt.spec
index bcd4438..70e9051 100644
--- a/mingw-libvirt.spec
+++ b/mingw-libvirt.spec
@@ -1,8 +1,5 @@
 %define __strip %{_mingw32_strip}
 %define __objdump %{_mingw32_objdump}
-%define _use_internal_dependency_generator 0
-%define __find_requires %{_mingw32_findrequires}
-%define __find_provides %{_mingw32_findprovides}
 %define __debug_install_post %{_mingw32_debug_install_post}
 
 # Default to skipping autoreconf.  Distros can change just this one line
@@ -35,7 +32,6 @@ License:        LGPLv2+
 Group:          Development/Libraries
 URL:            http://libvirt.org/
 Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 # Mingw-w64 trunk (jan 27 2012) contains an inline implementation of the
 # vscanf and vfscanf functions in stdio.h. This break compilation of gnulib
@@ -44,7 +40,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # isn't triggered by #include <stdio.h>
 Patch0:         libvirt-gnulib-workaround-mingw-w64-vfscanf-failure.patch
 
-BuildRequires:  mingw32-filesystem >= 23
+BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 BuildRequires:  mingw32-libgpg-error
@@ -135,8 +131,6 @@ make
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 make DESTDIR=$RPM_BUILD_ROOT install
 
 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt/nwfilter
@@ -149,12 +143,7 @@ rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-qemu.a
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -n mingw32-libvirt
-%defattr(-,root,root)
 %dir %{_mingw32_sysconfdir}/libvirt/
 %config(noreplace) %{_mingw32_sysconfdir}/libvirt/libvirt.conf
 


More information about the scm-commits mailing list