Modernize the spec file

This commit is contained in:
Kalev Lember 2012-03-06 22:03:28 +02:00
parent 9838a46486
commit d93b9b251a

View File

@ -1,8 +1,5 @@
%global __strip %{_mingw32_strip} %global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump} %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} %define __debug_install_post %{_mingw32_debug_install_post}
# For the curious: # For the curious:
@ -94,11 +91,9 @@ Patch101: mingw32-openssl-1.0.0-beta3-libversion.patch
# Fix engines/ install target after lib rename # Fix engines/ install target after lib rename
Patch102: mingw32-openssl-1.0.0d-sfx.patch Patch102: mingw32-openssl-1.0.0d-sfx.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: mingw32-filesystem >= 52 BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils BuildRequires: mingw32-binutils
@ -310,7 +305,6 @@ fi
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir} mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}/openssl mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}/openssl
mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir} mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
@ -343,12 +337,8 @@ popd
mkdir -m700 $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pki/CA mkdir -m700 $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pki/CA
mkdir -m700 $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pki/CA/private mkdir -m700 $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pki/CA/private
%clean
rm -rf $RPM_BUILD_ROOT
%files -n mingw32-openssl %files -n mingw32-openssl
%defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%{_mingw32_bindir}/openssl.exe %{_mingw32_bindir}/openssl.exe
%{_mingw32_bindir}/c_rehash %{_mingw32_bindir}/c_rehash
@ -364,7 +354,6 @@ rm -rf $RPM_BUILD_ROOT
%files -n mingw32-openssl-static %files -n mingw32-openssl-static
%defattr(-,root,root,-)
%{_mingw32_libdir}/libcrypto.a %{_mingw32_libdir}/libcrypto.a
%{_mingw32_libdir}/libssl.a %{_mingw32_libdir}/libssl.a
@ -372,6 +361,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.0.0d-4 * Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.0.0d-4
- Renamed the source package to mingw-openssl (#800443) - Renamed the source package to mingw-openssl (#800443)
- Modernize the spec file
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0d-3 * Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0d-3
- Rebuild against the mingw-w64 toolchain - Rebuild against the mingw-w64 toolchain