Modernize the spec file

This commit is contained in:
Kalev Lember 2012-03-07 19:15:58 +02:00
parent 8b3cdb6935
commit 3511eb2015

View File

@ -1,8 +1,5 @@
%define __strip %{_mingw32_strip} %define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump} %define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
Name: mingw-readline Name: mingw-readline
Version: 5.2 Version: 5.2
@ -13,7 +10,6 @@ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
Source0: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz 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 Patch1: readline-5.2-shlib.patch
Patch2: readline-5.2-001.patch Patch2: readline-5.2-001.patch
@ -31,7 +27,7 @@ Patch13: readline-5.2-redisplay-sigint.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: mingw32-filesystem >= 49 BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils BuildRequires: mingw32-binutils
BuildRequires: mingw32-termcap >= 1.3.1-3 BuildRequires: mingw32-termcap >= 1.3.1-3
@ -98,7 +94,6 @@ popd
%install %install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
# Remove the fake .so files and install our DLLs and implibs. # 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 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libreadline.a
%clean
rm -rf $RPM_BUILD_ROOT
%files -n mingw32-readline %files -n mingw32-readline
%defattr(-,root,root)
%{_mingw32_bindir}/readline.dll %{_mingw32_bindir}/readline.dll
%{_mingw32_bindir}/history.dll %{_mingw32_bindir}/history.dll
%{_mingw32_libdir}/libreadline.dll.a %{_mingw32_libdir}/libreadline.dll.a
@ -136,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 5.2-11 * Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 5.2-11
- Renamed the source package to mingw-readline (#801022) - Renamed the source package to mingw-readline (#801022)
- Modernize the spec file
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2-10 * Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2-10
- Rebuild against the mingw-w64 toolchain - Rebuild against the mingw-w64 toolchain