2010-09-21 13:07:06 +00:00
|
|
|
%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}
|
|
|
|
|
2012-03-07 16:33:40 +00:00
|
|
|
Name: mingw-pcre
|
2010-09-21 13:07:06 +00:00
|
|
|
Version: 8.10
|
2012-03-07 16:33:40 +00:00
|
|
|
Release: 7%{?dist}
|
2010-09-21 13:07:06 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2012-03-07 16:33:40 +00:00
|
|
|
|
|
|
|
%package -n mingw32-pcre
|
|
|
|
Summary: MinGW Windows pcre library
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description -n mingw32-pcre
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2010-09-21 13:07:06 +00:00
|
|
|
%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
|
|
|
|
|
2012-03-07 16:33:40 +00:00
|
|
|
%files -n mingw32-pcre
|
2010-09-21 13:07:06 +00:00
|
|
|
%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
|
2012-03-07 16:33:40 +00:00
|
|
|
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 8.10-7
|
|
|
|
- Renamed the source package to mingw-pcre (#801011)
|
|
|
|
|
2012-02-27 19:31:20 +00:00
|
|
|
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.10-6
|
|
|
|
- Rebuild against the mingw-w64 toolchain
|
|
|
|
|
2012-01-13 10:06:24 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.10-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-04-21 22:40:32 +00:00
|
|
|
* Fri Apr 22 2011 Kalev Lember <kalev@smartlink.ee> - 8.10-4
|
|
|
|
- Rebuilt for pseudo-reloc version mismatch (#698827)
|
|
|
|
|
2011-02-08 19:00:41 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-21 13:07:06 +00:00
|
|
|
* Mon Sep 20 2010 Adam Stokes <astokes@redhat.com> - 8.10-2
|
|
|
|
- Restore changes from the native package to pass package review process
|
|
|
|
|
|
|
|
* Wed Jul 21 2010 Ryan O'Hara <rohara@redhat.com> - 8.10-1
|
|
|
|
- Initial spec file.
|