mingw-pcre/mingw-pcre.spec

154 lines
4.8 KiB
RPMSpec
Raw Normal View History

2012-04-14 19:26:06 +00:00
%?mingw_package_header
2010-09-21 13:07:06 +00:00
Name: mingw-pcre
Version: 8.31
Release: 2%{?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
BuildArch: noarch
BuildRequires: redhat-rpm-config
2012-04-14 19:26:06 +00:00
BuildRequires: mingw32-filesystem >= 95
2010-09-21 13:07:06 +00:00
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
2012-04-14 19:26:06 +00:00
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-binutils
2010-09-21 13:07:06 +00:00
%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-04-14 19:26:06 +00:00
# Win32
%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.
2012-04-14 19:26:06 +00:00
# Win64
%package -n mingw64-pcre
Summary: MinGW Windows pcre library
Requires: pkgconfig
%description -n mingw64-pcre
Cross compiled Perl-compatible regular expression library for use with mingw64.
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.
%?mingw_debug_package
2010-09-21 13:07:06 +00:00
%prep
%setup -q -n pcre-%{version}
%build
2012-04-14 19:26:06 +00:00
%mingw_configure --enable-utf8 --enable-unicode-properties --disable-static
%mingw_make %{?_smp_mflags}
2010-09-21 13:07:06 +00:00
%install
2012-04-14 19:26:06 +00:00
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
2010-09-21 13:07:06 +00:00
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/doc/*
2012-04-14 19:26:06 +00:00
rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/doc/*
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man/*
2012-04-14 19:26:06 +00:00
rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man/*
2010-09-21 13:07:06 +00:00
2012-03-09 15:43:18 +00:00
# Drop all .la files
find $RPM_BUILD_ROOT -name "*.la" -delete
2012-04-14 19:26:06 +00:00
# Win32
%files -n mingw32-pcre
2012-04-14 19:26:06 +00:00
%doc AUTHORS COPYING LICENCE NEWS README ChangeLog
%{mingw32_bindir}/pcre-config
%{mingw32_bindir}/pcregrep.exe
%{mingw32_bindir}/pcretest.exe
%{mingw32_bindir}/libpcre*.dll
%{mingw32_libdir}/libpcre*.dll.a
%{mingw32_libdir}/pkgconfig/libpcre*.pc
%{mingw32_includedir}/*.h
2010-09-21 13:07:06 +00:00
2012-04-14 19:26:06 +00:00
# Win64
%files -n mingw64-pcre
2010-09-21 13:07:06 +00:00
%doc AUTHORS COPYING LICENCE NEWS README ChangeLog
2012-04-14 19:26:06 +00:00
%{mingw64_bindir}/pcre-config
%{mingw64_bindir}/pcregrep.exe
%{mingw64_bindir}/pcretest.exe
%{mingw64_bindir}/libpcre*.dll
%{mingw64_libdir}/libpcre*.dll.a
%{mingw64_libdir}/pkgconfig/libpcre*.pc
%{mingw64_includedir}/*.h
2010-09-21 13:07:06 +00:00
%changelog
* Sun Jan 27 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.31-2
- Rebuild against mingw-gcc 4.8 (win64 uses SEH exceptions now)
* Wed Nov 21 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.31-1
- Update to 8.31
- Dropped patch as it doesn't have any effect on the mingw target
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-04-14 19:26:06 +00:00
* Sat Apr 14 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.30-9
- Update to 8.30
- Added win64 support
2012-03-09 15:43:18 +00:00
* Fri Mar 09 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.10-8
- Dropped .la files
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 8.10-7
- Renamed the source package to mingw-pcre (#801011)
2012-03-07 16:34:51 +00:00
- Modernize the spec file
- Use mingw macros without leading underscore
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8.10-6
- Rebuild against the mingw-w64 toolchain
* 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
* Fri Apr 22 2011 Kalev Lember <kalev@smartlink.ee> - 8.10-4
- Rebuilt for pseudo-reloc version mismatch (#698827)
* 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.