[mingw-srvany: 8/9] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:48:22 UTC 2012


commit 56fb5e71fda2c3199c6429ef9c7159e6682080cd
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 19:46:16 2012 +0200

    Modernize the spec file

 mingw-srvany.spec |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/mingw-srvany.spec b/mingw-srvany.spec
index c981837..1290b84 100644
--- a/mingw-srvany.spec
+++ b/mingw-srvany.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}
 
 %global upstream_version 31b3bf3
 
@@ -15,12 +12,11 @@ Group:		Development/Libraries
 License:	GPLv2+
 URL:		http://github.com/beekhof/mingw32-srvany
 Source0:	http://github.com/downloads/beekhof/mingw32-srvany/mingw32-srvany-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{upstream_release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 
 BuildRequires:	automake autoconf libtool
 BuildRequires:	redhat-rpm-config
-BuildRequires:	mingw32-filesystem >= 56
+BuildRequires:	mingw32-filesystem
 BuildRequires:	mingw32-gcc
 BuildRequires:	mingw32-gcc-c++
 BuildRequires:	mingw32-binutils
@@ -45,14 +41,9 @@ autoreconf -i
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -n mingw32-srvany
-%defattr(-,root,root,-)
 %{_mingw32_bindir}/srvany.exe
 %doc COPYING
 %doc AUTHORS
@@ -60,6 +51,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 1.0-8
 - Renamed the source package to mingw-srvany (#801031)
+- Modernize the spec file
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.0-7
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list