%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} Name: pcre Version: 8.44 Release: 1%{?_dist_release} Summary: Perl-compatible regular expression library Summary(ja): Perl 互換の正規表現ライブラリ Group: System Environment/Libraries License: BSD URL: http://www.pcre.org/ Source0: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2 # Upstream thinks RPATH is good idea. Patch0: pcre-8.21-multilib.patch # Refused by upstream, bug #675477 Patch1: pcre-8.32-refused_spelling_terminated.patch # Fix recursion stack estimator, upstream bug #2173, refused by upstream Patch2: pcre-8.41-fix_stack_estimator.patch # Link applications to PCRE-specific symbols when using POSIX API, bug #1667614, # upstream bug 1830, partially borrowed from PCRE2, proposed to upstream, # This amends ABI, application built with this patch cannot run with # previous libpcreposix builds. Patch3: pcre-8.42-Declare-POSIX-regex-function-names-as-macros-to-PCRE.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: libedit-devel # New libtool to get rid of rpath BuildRequires: autoconf, automake, libtool Vendor: Project Vine Distribution: Vine Linux Packager: inagaki %description Perl-compatible regular expression library. 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. %package devel Summary: Development files for %{name} Summary(ja): %{name} の開発用ファイル Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development files (Headers, libraries for static linking, etc) for %{name}. %package -n compat32-%{name} Summary: Perl-compatible regular expression library Summary(ja): Perl 互換の正規表現ライブラリ Group: System Environment/Libraries %description -n compat32-%{name} Perl-compatible regular expression library. 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. %package -n compat32-%{name}-devel Summary: Development files for %{name} Summary(ja): %{name} の開発用ファイル Group: Development/Libraries Requires: compat32-%{name} = %{version}-%{release} %description -n compat32-%{name}-devel Development files (Headers, libraries for static linking, etc) for %{name}. %prep %setup -q # Get rid of rpath %patch0 -p1 -b .multilib %patch1 -p1 -b .terminated_typos %patch2 -p2 %patch3 -p1 # Because of rpath patch libtoolize --copy --force && autoreconf -vif # 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 %configure \ --enable-jit \ --disable-static \ --enable-utf8 \ --enable-unicode-properties \ --enable-pcregrep-libz \ --enable-pcregrep-libbz2 \ --enable-pcretest-libedit \ --enable-pcre8 \ --enable-pcre16 \ --enable-pcre32 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT%{_datadir}/doc rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la %check %ifarch s390 s390x ppc # larger stack is needed on s390, ppc ulimit -s 10240 %endif make %{?_smp_mflags} check VERBOSE=yes %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n compat32-%{name} -p /sbin/ldconfig %postun -n compat32-%{name} -p /sbin/ldconfig %files %defattr(-,root,root) %license COPYING LICENCE %doc AUTHORS ChangeLog NEWS README %{_bindir}/pcregrep %{_libdir}/*.so.* %{_mandir}/man1/pcregrep.* %files devel %defattr(-,root,root) %doc doc/html/* %{_bindir}/pcre-config %{_bindir}/pcretest %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_mandir}/man1/pcre-config.* %{_mandir}/man1/pcretest.* %{_mandir}/man3/* %if %{build_compat32} %files -n compat32-%{name} %defattr(-, root, root) %{_libdir}/*.so.* %files -n compat32-%{name}-devel %defattr(-, root, root) %{_libdir}/*.so %endif %changelog * Sun Mar 08 2020 Tomohiro "Tomo-p" KATO 8.44-1 - new upstream release. * Mon May 13 2019 Tomohiro "Tomo-p" KATO 8.43-1 - new upstream release. - imported Patch2 and 3 from rawhide. * Fri Jul 29 2016 Yoji TOYODA 8.39-2 - create comapt32 packages * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO 8.39-1 - new upstream release. - dropped Patch1000,1001: fixed in upstream. * Wed Mar 23 2016 Tomohiro "Tomo-p" KATO 8.38-1 - new upstream release. - removed Patch2,Patch3 (no longer needed). - added Patch1000 to fix CVE-2016-1283. * Sun Apr 5 2015 Ryoichi INAGAKI 8.36-1 - new upstream release - added patches including security fix from Fedora (CVE-2014-8964) * Thu Nov 20 2014 Petr Pisar - 8.36-3 - Fix CVE-2014-8964 (unused memory usage on zero-repeat assertion condition) (bug #1165626) * Fri Nov 07 2014 Petr Pisar - 8.36-2 - Reset non-matched groups within capturing group up to forced match (bug #1161587) * Mon May 09 2011 Petr Pisar - 8.12-3 - Fix typos in manual pages (bugs #675476, #675477) * Thu Sep 11 2014 Ryoichi INAGAKI 8.35-1 - new upstream release - add --enable-pcre32 and --enable-pcretest-libedit * Wed Oct 24 2012 Daisuke SUZUKI 8.31-1 - new upstream release - add --enable-pcre16 --enable-pcre8 --enable-jit - API change - change includedir to /usr/include * Sat Sep 10 2011 Ryoichi INAGAKI 8.13-1 - new upstream release * Tue Mar 22 2011 Ryoichi INAGAKI 8.12-1 - new upstream release * Mon Sep 27 2010 Shu KONNO 8.10-2 - rebuilt with rpm-4.8.1 for pkg-config * Thu Aug 19 2010 Ryoichi INAGAKI 8.10-1 - new upstream release * Mon May 10 2010 Satoshi IWAMOTO 8.02-1 - new upstream release with security fix * Sat Feb 6 2010 Ryoiochi INAGAKI 8.01-1 - new upstream release * Sat Jan 16 2010 Ryoiochi INAGAKI 8.00-1 - new upstream release * Tue Jul 07 2009 Daisuke SUZUKI 7.9-2 - add --enable-unicode-properties to configure option * Wed Jun 10 2009 Ryoiochi INAGAKI 7.9-1 - new upstream release - added BR: zlib-devel, bzip2-devel - removed static libraries from devel package - added Packager tag * Sat Jan 24 2009 Ryoiochi INAGAKI 7.8-1vl5 - new upstream release - spec in UTF-8 * Sun Jul 6 2008 Ryoiochi INAGAKI 7.7-1vl5 - new upstream release * Tue May 13 2008 Yasumichi Akahoshi 7.6-1vl5 - use macro for Release * Fri May 09 2008 Yasumichi Akahoshi 7.6-1vl5 - apply new virsioning policy. - remove *.la * Thu Feb 7 2008 Ryoichi INAGAKI 7.6-0vl1 - new upstream release * Wed Nov 7 2007 AKIYAMA Kazuhito 7.4-0vl1 - new upstream release * Sun Aug 19 2007 Ryoichi INAGAKI 7.2-0vl1 - new upstream release * Fri May 11 2007 Daisuke SUZUKI 6.6-0vl2 - rebuild with new environment/toolchain * Wed Feb 15 2006 Ryoichi INAGAKI 6.6-0vl1 - new upstream release * Mon Sep 5 2005 Ryoichi INAGAKI 6.3-0vl2 - added --enable-utf8 option * Sun Sep 4 2005 Ryoichi INAGAKI 6.3-0vl1 - new upstream release * Thu Jan 27 2005 Ryoichi INAGAKI 5.0-0vl1 - new upstream release - added Japanese summary * Sun Apr 18 2004 Ryoichi INAGAKI 4.5-0vl1 - new upstream release * Mon Oct 13 2003 AKIYAMA Kazuhito 4.4-0vl1 - new upstream release * Mon May 5 2003 Tomoya TAKA 4.1-0vl3 - skip 'make check' on alpha * Fri Mar 28 2003 AKIYAMA Kazuhito 4.1-0vl2 - change install section - change files section * Fri Mar 28 2003 AKIYAMA Kazuhito 4.1-0vl1 - update to 4.1 - add %{_bindir}/pcretest - add %doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README * Sun Dec 15 2002 AKIYAMA Kazuhito 3.9-0vl2 - rebuild with new toolchains * Sat Mar 16 2002 AKIYAMA Kazuhito 3.9-0vl1 - Update to 3.9 * Wed Dec 26 2001 AKIYAMA Kazuhito 3.7-0vl1 - Update to 3.7 * Sun Oct 14 2001 AKIYAMA Kazuhito 3.5-0vl1 - Update to 3.5 * Wed Oct 10 2001 AKIYAMA Kazuhito 3.4-2vl1 - Build for VineSeed * Thu May 17 2001 Bernhard Rosenkraenzer 3.4-2 - Move libpcre to /lib, grep uses it these days (#41104) * Wed Apr 18 2001 Bernhard Rosenkraenzer - Move this to a separate package, used to be in kdesupport, but it's generally useful...