commit a87e23eca174758c6d231b3dc7688f6e784b50b0
Author: Ivan Romanov <drizt(a)land.ru>
Date: Sat Dec 24 20:44:24 2011 +0600
static subpackage
mingw32-libpng.spec | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec
index 4b8b12e..407c831 100644
--- a/mingw32-libpng.spec
+++ b/mingw32-libpng.spec
@@ -6,7 +6,7 @@
Name: mingw32-libpng
Version: 1.4.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows Libpng library
License: zlib
@@ -29,6 +29,17 @@ Requires: pkgconfig
%description
MinGW Windows Libpng library.
+%package static
+Summary: Static version of MinGW Windows Libpng library
+Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+
+
+%description static
+MinGW Windows Libpng library.
+
+This package contains static cross-compiled libraries.
+
%prep
%setup -q -n libpng-%{version}
@@ -52,8 +63,6 @@ rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libpng.a
-
# No need to distribute manpages which appear in the Fedora
# native packages already.
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
@@ -74,14 +83,22 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_includedir}/pngconf.h
%{_mingw32_libdir}/libpng.dll.a
%{_mingw32_libdir}/libpng.la
-%{_mingw32_libdir}/libpng14.a
%{_mingw32_libdir}/libpng14.dll.a
%{_mingw32_libdir}/libpng14.la
%{_mingw32_libdir}/pkgconfig/libpng.pc
%{_mingw32_libdir}/pkgconfig/libpng14.pc
+%files static
+%defattr(-,root,root,-)
+%{_mingw32_libdir}/libpng.a
+%{_mingw32_libdir}/libpng14.a
+
+
%changelog
+* Sat Dec 24 2011 Ivan Romanov <drizt(a)land.ru> - 1.4.8-2
+- New static subpackage
+
* Fri Jul 22 2011 Kalev Lember <kalevlember(a)gmail.com> - 1.4.8-1
- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692)