[mingw-readline: 13/14] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:18:50 UTC 2012


commit 3511eb2015a3249d2039de4d3f0c7fddc0c152ca
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 19:15:58 2012 +0200

    Modernize the spec file

 mingw-readline.spec |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/mingw-readline.spec b/mingw-readline.spec
index 035bcee..2bec9ed 100644
--- a/mingw-readline.spec
+++ b/mingw-readline.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}
 
 Name:           mingw-readline
 Version:        5.2
@@ -13,7 +10,6 @@ License:        GPLv2+
 Group:          System Environment/Libraries
 URL:            http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
 Source0:        ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch1:         readline-5.2-shlib.patch
 Patch2:         readline-5.2-001.patch
@@ -31,7 +27,7 @@ Patch13:        readline-5.2-redisplay-sigint.patch
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 BuildRequires:  mingw32-termcap >= 1.3.1-3
@@ -98,7 +94,6 @@ popd
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
 # Remove the fake .so files and install our DLLs and implibs.
@@ -120,12 +115,7 @@ rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libhistory.a
 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libreadline.a
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -n mingw32-readline
-%defattr(-,root,root)
 %{_mingw32_bindir}/readline.dll
 %{_mingw32_bindir}/history.dll
 %{_mingw32_libdir}/libreadline.dll.a
@@ -136,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 5.2-11
 - Renamed the source package to mingw-readline (#801022)
+- Modernize the spec file
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 5.2-10
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list