[mingw-zfstream: 14/15] Modernize the spec file
Kalev Lember
kalev at fedoraproject.org
Wed Mar 7 18:26:24 UTC 2012
commit 9039ce3f9c5253d1be4930ceefacebae8a25835a
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed Mar 7 20:22:58 2012 +0200
Modernize the spec file
mingw-zfstream.spec | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/mingw-zfstream.spec b/mingw-zfstream.spec
index 49769ab..0de3882 100644
--- a/mingw-zfstream.spec
+++ b/mingw-zfstream.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}
%global vday 02
@@ -27,7 +24,6 @@ Source1: %{name1}-autotools.tar.gz
# that the patch had been integrated into his personal tree, but apparently
# he has not gotten around to release a new version.
Patch1: %{name1}-zip.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -36,7 +32,7 @@ BuildRequires: mingw32-zlib
BuildRequires: mingw32-minizip
BuildRequires: libtool
BuildRequires: automake
-BuildRequires: mingw32-filesystem >= 52
+BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gcc-c++
@@ -52,7 +48,7 @@ Summary: MinGW Windows abstraction API for reading and writing compressed
MinGW zfstream C++ compressed I/O abstraction library
-%{_mingw32_debug_package}
+%{?_mingw32_debug_package}
%prep
@@ -71,16 +67,10 @@ make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files -n mingw32-%{name1}
-%defattr(-,root,root,-)
%doc LICENSE
%{_mingw32_bindir}/libzfstream-0.dll
%{_mingw32_includedir}/*
@@ -91,6 +81,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 20041202-12
- Renamed the source package to mingw-zfstream (#801040)
+- Modernize the spec file
* Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 20041202-11
- Rebuild against the mingw-w64 toolchain
More information about the scm-commits
mailing list