[mingw-expat] Added static subpackages
Erik van Pienbroek
epienbro at fedoraproject.org
Sat Jul 21 14:40:35 UTC 2012
commit 6851367366479c2147daceab423adcd7a148d0e5
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date: Sat Jul 21 16:39:57 2012 +0200
Added static subpackages
mingw-expat.spec | 33 ++++++++++++++++++++++++++++-----
1 files changed, 28 insertions(+), 5 deletions(-)
---
diff --git a/mingw-expat.spec b/mingw-expat.spec
index b22968f..21d8ebc 100644
--- a/mingw-expat.spec
+++ b/mingw-expat.spec
@@ -2,7 +2,7 @@
Name: mingw-expat
Version: 2.1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows port of expat XML parser library
License: MIT
@@ -41,6 +41,14 @@ parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
+%package -n mingw32-expat-static
+Summary: Static version of the MinGW Windows expat XML parser library
+Requires: mingw32-expat = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw32-expat-static
+Static version of the MinGW Windows expat XML parser library.
+
# Win64
%package -n mingw64-expat
Summary: MinGW Windows port of expat XML parser library
@@ -53,6 +61,14 @@ parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
+%package -n mingw64-expat-static
+Summary: Static version of the MinGW Windows expat XML parser library
+Requires: mingw64-expat = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw64-expat-static
+Static version of the MinGW Windows expat XML parser library.
+
%?mingw_debug_package
@@ -69,10 +85,6 @@ register handlers.
%install
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
-# Remove static libraries
-rm $RPM_BUILD_ROOT%{mingw32_libdir}/libexpat.a
-rm $RPM_BUILD_ROOT%{mingw64_libdir}/libexpat.a
-
# Remove .la files
find $RPM_BUILD_ROOT -name "*.la" -delete
@@ -81,6 +93,7 @@ rm -r $RPM_BUILD_ROOT%{mingw32_mandir}/man1
rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
+# Win32
%files -n mingw32-expat
%doc COPYING
%{mingw32_bindir}/libexpat-1.dll
@@ -90,6 +103,10 @@ rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
%{mingw32_includedir}/expat.h
%{mingw32_includedir}/expat_external.h
+%files -n mingw32-expat-static
+%{mingw32_libdir}/libexpat.a
+
+# Win64
%files -n mingw64-expat
%doc COPYING
%{mingw64_bindir}/libexpat-1.dll
@@ -99,8 +116,14 @@ rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
%{mingw64_includedir}/expat.h
%{mingw64_includedir}/expat_external.h
+%files -n mingw64-expat-static
+%{mingw64_libdir}/libexpat.a
+
%changelog
+* Sat Jul 21 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.1.0-3
+- Added static subpackages
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list