From 8e21df70041368471c6e16d7bbd9328a7b61473a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 21 Sep 2010 03:42:45 +0000 Subject: [PATCH 1/7] Initial setup of the repo --- .gitignore | 0 sources | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitignore create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 From b1674259da02f20d0292d9cca9e4a95bd2c6cf59 Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Tue, 21 Sep 2010 09:07:06 -0400 Subject: [PATCH 2/7] initial upload --- mingw32-pcre.spec | 91 ++++++++++++++++++++++++++++++++++++++++ pcre-8.10-multilib.patch | 38 +++++++++++++++++ sources | 1 + 3 files changed, 130 insertions(+) create mode 100644 mingw32-pcre.spec create mode 100644 pcre-8.10-multilib.patch diff --git a/mingw32-pcre.spec b/mingw32-pcre.spec new file mode 100644 index 0000000..bb552c4 --- /dev/null +++ b/mingw32-pcre.spec @@ -0,0 +1,91 @@ +%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} + +Name: mingw32-pcre +Version: 8.10 +Release: 2%{?dist} +Summary: MinGW Windows pcre library + +Group: Development/Libraries +License: BSD +URL: http://www.pcre.org/ +Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%{version}.tar.gz +Patch0: pcre-8.10-multilib.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: pkgconfig + +BuildRequires: redhat-rpm-config +BuildRequires: mingw32-filesystem >= 56 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils + +# New libtool to get rid of rpath +BuildRequires: autoconf, automake, libtool + +%{?_mingw32_debug_package} + +%description +Cross compiled Perl-compatible regular expression library for use with mingw32. + +PCRE has its own native API, but a set of "wrapper" functions that are based on +the POSIX API are also supplied in the library libpcreposix. Note that this +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. + +%prep +%setup -q -n pcre-%{version} + +# Get rid of rpath +%patch0 -p1 -b .multilib +libtoolize --copy --force && autoreconf +# One contributor's name is non-UTF-8 +for F in ChangeLog; do + iconv -f latin1 -t utf8 "$F" >"${F}.utf8" + touch --reference "$F" "${F}.utf8" + mv "${F}.utf8" "$F" +done + +%build +%{_mingw32_configure} --enable-utf8 --enable-unicode-properties --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/* +rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/man/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_mingw32_bindir}/pcre-config +%{_mingw32_bindir}/pcregrep.exe +%{_mingw32_bindir}/pcretest.exe +%{_mingw32_bindir}/libpcre*.dll +%{_mingw32_libdir}/libpcre*.dll.a +%{_mingw32_libdir}/libpcre*.la +%{_mingw32_libdir}/pkgconfig/libpcre*.pc +%{_mingw32_includedir}/*.h + +%doc AUTHORS COPYING LICENCE NEWS README ChangeLog + +%changelog +* Mon Sep 20 2010 Adam Stokes - 8.10-2 +- Restore changes from the native package to pass package review process + +* Wed Jul 21 2010 Ryan O'Hara - 8.10-1 +- Initial spec file. diff --git a/pcre-8.10-multilib.patch b/pcre-8.10-multilib.patch new file mode 100644 index 0000000..d491612 --- /dev/null +++ b/pcre-8.10-multilib.patch @@ -0,0 +1,38 @@ +diff -Naur pcre-8.10.orig/pcre-config.in pcre-8.10/pcre-config.in +--- pcre-8.10.orig/pcre-config.in 2010-03-02 12:08:45.000000000 +0100 ++++ pcre-8.10/pcre-config.in 2010-07-12 14:15:30.666700210 +0200 +@@ -15,16 +15,6 @@ + exit 1 + fi + +-libR= +-case `uname -s` in +- *SunOS*) +- libR=" -R@libdir@" +- ;; +- *BSD*) +- libR=" -Wl,-R@libdir@" +- ;; +-esac +- + while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; +@@ -58,14 +48,14 @@ + echo $includes @PCRE_STATIC_CFLAG@ + ;; + --libs-posix) +- echo -L@libdir@$libR -lpcreposix -lpcre ++ echo -lpcreposix -lpcre + ;; + --libs) +- echo -L@libdir@$libR -lpcre ++ echo -lpcre + ;; + --libs-cpp) + if test @enable_cpp@ = yes ; then +- echo -L@libdir@$libR -lpcrecpp -lpcre ++ echo -lpcrecpp -lpcre + else + echo "${usage}" 1>&2 + fi diff --git a/sources b/sources index e69de29..9340786 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9524f0ff50b9093c02c81f911e41b066 pcre-8.10.tar.gz From 681d26ddfe74e12efbc0979c2c057b5a7cd04a3f Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Tue, 21 Sep 2010 09:07:53 -0400 Subject: [PATCH 3/7] Upload source --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e69de29..3e432ca 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pcre-8.10.tar.gz From 1ef29c73333967082f1518fa1fc8935d0a300cc0 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 13:00:41 -0600 Subject: [PATCH 4/7] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- mingw32-pcre.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw32-pcre.spec b/mingw32-pcre.spec index bb552c4..88a1cd6 100644 --- a/mingw32-pcre.spec +++ b/mingw32-pcre.spec @@ -9,7 +9,7 @@ Name: mingw32-pcre Version: 8.10 -Release: 2%{?dist} +Release: 3%{?dist} Summary: MinGW Windows pcre library Group: Development/Libraries @@ -84,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING LICENCE NEWS README ChangeLog %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 8.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Mon Sep 20 2010 Adam Stokes - 8.10-2 - Restore changes from the native package to pass package review process From f870d1d9a4b84bf21ad6b390262c996f8efa7a25 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 22 Apr 2011 01:40:32 +0300 Subject: [PATCH 5/7] Rebuilt for pseudo-reloc version mismatch (#698827) --- mingw32-pcre.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw32-pcre.spec b/mingw32-pcre.spec index 88a1cd6..7194064 100644 --- a/mingw32-pcre.spec +++ b/mingw32-pcre.spec @@ -9,7 +9,7 @@ Name: mingw32-pcre Version: 8.10 -Release: 3%{?dist} +Release: 4%{?dist} Summary: MinGW Windows pcre library Group: Development/Libraries @@ -84,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING LICENCE NEWS README ChangeLog %changelog +* Fri Apr 22 2011 Kalev Lember - 8.10-4 +- Rebuilt for pseudo-reloc version mismatch (#698827) + * Tue Feb 08 2011 Fedora Release Engineering - 8.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 4bcbe9b83c2af73af3cc7dcc5dfb22e7b8ad6a66 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 13 Jan 2012 04:06:24 -0600 Subject: [PATCH 6/7] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- mingw32-pcre.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw32-pcre.spec b/mingw32-pcre.spec index 7194064..3f3ace0 100644 --- a/mingw32-pcre.spec +++ b/mingw32-pcre.spec @@ -9,7 +9,7 @@ Name: mingw32-pcre Version: 8.10 -Release: 4%{?dist} +Release: 5%{?dist} Summary: MinGW Windows pcre library Group: Development/Libraries @@ -84,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING LICENCE NEWS README ChangeLog %changelog +* Fri Jan 13 2012 Fedora Release Engineering - 8.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Fri Apr 22 2011 Kalev Lember - 8.10-4 - Rebuilt for pseudo-reloc version mismatch (#698827) From 9e7f24c0ab75e518e9fb7eb1004bec3557456ed1 Mon Sep 17 00:00:00 2001 From: Erik van Pienbroek Date: Mon, 27 Feb 2012 20:31:20 +0100 Subject: [PATCH 7/7] Rebuild against the mingw-w64 toolchain --- mingw32-pcre.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw32-pcre.spec b/mingw32-pcre.spec index 3f3ace0..cd9893c 100644 --- a/mingw32-pcre.spec +++ b/mingw32-pcre.spec @@ -9,7 +9,7 @@ Name: mingw32-pcre Version: 8.10 -Release: 5%{?dist} +Release: 6%{?dist} Summary: MinGW Windows pcre library Group: Development/Libraries @@ -84,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING LICENCE NEWS README ChangeLog %changelog +* Mon Feb 27 2012 Erik van Pienbroek - 8.10-6 +- Rebuild against the mingw-w64 toolchain + * Fri Jan 13 2012 Fedora Release Engineering - 8.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild