[mingw-pcre] Added -static subpackages

Erik van Pienbroek epienbro at fedoraproject.org
Thu Jul 11 18:44:30 UTC 2013


commit 06a592380767ba39364d34cb4fdcdbe625c8c37f
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Thu Jul 11 20:44:19 2013 +0200

    Added -static subpackages

 mingw-pcre.spec |   37 +++++++++++++++++++++++++++++++++++--
 1 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/mingw-pcre.spec b/mingw-pcre.spec
index 905e91e..116cb32 100644
--- a/mingw-pcre.spec
+++ b/mingw-pcre.spec
@@ -2,7 +2,7 @@
 
 Name:		mingw-pcre
 Version:	8.33
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	MinGW Windows pcre library
 
 Group:		Development/Libraries
@@ -49,6 +49,14 @@ just provides a POSIX calling interface to PCRE: the regular expressions
 themselves still follow Perl syntax and semantics. The header file
 for the POSIX-style functions is called pcreposix.h.
 
+%package -n mingw32-pcre-static
+Summary:       Static version of the mingw32-pcre library
+Requires:      mingw32-pcre = %{version}-%{release}
+BuildArch:     noarch
+
+%description -n mingw32-pcre-static
+Static version of the mingw32-pcre library.
+
 # Win64
 %package -n mingw64-pcre
 Summary:        MinGW Windows pcre library
@@ -63,6 +71,14 @@ just provides a POSIX calling interface to PCRE: the regular expressions
 themselves still follow Perl syntax and semantics. The header file
 for the POSIX-style functions is called pcreposix.h.
 
+%package -n mingw64-pcre-static
+Summary:       Static version of the mingw64-pcre library
+Requires:      mingw64-pcre = %{version}-%{release}
+BuildArch:     noarch
+
+%description -n mingw64-pcre-static
+Static version of the mingw64-pcre library.
+
 
 %?mingw_debug_package
 
@@ -72,7 +88,7 @@ for the POSIX-style functions is called pcreposix.h.
 
 
 %build
-%mingw_configure --enable-utf8 --enable-unicode-properties --disable-static --enable-pcre8 --enable-pcre16 --enable-pcre32
+%mingw_configure --enable-utf8 --enable-unicode-properties --enable-static --enable-pcre8 --enable-pcre16 --enable-pcre32
 %mingw_make %{?_smp_mflags}
 
 
@@ -116,6 +132,13 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
 %{mingw32_includedir}/pcrecpparg.h
 %{mingw32_includedir}/pcreposix.h
 
+%files -n mingw32-pcre-static
+%{mingw32_libdir}/libpcre.a
+%{mingw32_libdir}/libpcre16.a
+%{mingw32_libdir}/libpcre32.a
+%{mingw32_libdir}/libpcrecpp.a
+%{mingw32_libdir}/libpcreposix.a
+
 # Win64
 %files -n mingw64-pcre
 %doc AUTHORS COPYING LICENCE NEWS README ChangeLog
@@ -144,8 +167,18 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
 %{mingw64_includedir}/pcrecpparg.h
 %{mingw64_includedir}/pcreposix.h
 
+%files -n mingw64-pcre-static
+%{mingw64_libdir}/libpcre.a
+%{mingw64_libdir}/libpcre16.a
+%{mingw64_libdir}/libpcre32.a
+%{mingw64_libdir}/libpcrecpp.a
+%{mingw64_libdir}/libpcreposix.a
+
 
 %changelog
+* Thu Jul 11 2013 Erik van Pienbroek <epienbro at fedoraproject.org> - 8.33-2
+- Added -static subpackages
+
 * Wed Jul  3 2013 Erik van Pienbroek <epienbro at fedoraproject.org> - 8.33-1
 - Update to 8.33
 - Added the configure arguments --enable-pcre8 --enable-pcre16 --enable-pcre32


More information about the scm-commits mailing list