[mingw-gtk2: 52/65] Clean up the spec file for use with modern rpmbuild

epienbro epienbro at fedoraproject.org
Tue Mar 6 20:04:36 UTC 2012


commit e0daf7b635d85188c8bc9537818c50f1d775d114
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Aug 31 10:26:35 2011 +0300

    Clean up the spec file for use with modern rpmbuild

 mingw32-gtk2.spec |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/mingw32-gtk2.spec b/mingw32-gtk2.spec
index 8353464..f3a809a 100644
--- a/mingw32-gtk2.spec
+++ b/mingw32-gtk2.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:           mingw32-gtk2
@@ -15,8 +12,6 @@ Group:          Development/Libraries
 URL:            http://www.gtk.org
 Source0:        http://download.gnome.org/sources/gtk+/2.24/gtk+-%{version}.tar.bz2
 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 # wine %{_mingw32_bindir}/gtk-query-immodules-2.0.exe > gtk.immodules
 Source1:        gtk.immodules
 
@@ -31,7 +26,7 @@ Patch1002:      gtk2-commit-d0aa7ffc.patch
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-filesystem >= 68
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 
@@ -97,8 +92,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 make DESTDIR=$RPM_BUILD_ROOT install
 
 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
@@ -123,12 +116,7 @@ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
 %find_lang %{name} --all-name
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -f %{name}.lang
-%defattr(-,root,root,-)
 %doc COPYING
 %{_mingw32_datadir}/themes/*
 %{_mingw32_bindir}/gtk-builder-convert
@@ -205,7 +193,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw32_datadir}/gtk-2.0/
 
 %files static
-%defattr(-,root,root,-)
 %{_mingw32_libdir}/libgailutil.a
 %{_mingw32_libdir}/libgdk-win32-2.0.a
 %{_mingw32_libdir}/libgtk-win32-2.0.a


More information about the scm-commits mailing list