From 4670b98bf03d8b0d74a46d96bdbe2fd8483b5d1dfd869c5068f58d18f80974b2 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 23 Jun 2015 09:57:36 +0000 Subject: [PATCH] Accepting request 312616 from devel:libraries:c_c++ PCRE2 is a re-working of the original PCRE library to provide an entirely new API. Copy of the exising pcre package with the described changes. Not source compatible. Installable in parallel with all packages. OBS-URL: https://build.opensuse.org/request/show/312616 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcre2?expand=0&rev=1 --- baselibs.conf | 2 +- pcre2-10.10.tar.bz2 | 3 + pcre2-10.10.tar.bz2.sig | Bin 0 -> 287 bytes pcre2-10.43.tar.bz2 | 3 - pcre2-10.43.tar.bz2.sig | Bin 310 -> 0 bytes pcre2.changes | 483 ++-------------------------------------- pcre2.spec | 104 ++++----- 7 files changed, 75 insertions(+), 520 deletions(-) create mode 100644 pcre2-10.10.tar.bz2 create mode 100644 pcre2-10.10.tar.bz2.sig delete mode 100644 pcre2-10.43.tar.bz2 delete mode 100644 pcre2-10.43.tar.bz2.sig diff --git a/baselibs.conf b/baselibs.conf index 0c9d64b..f52c1b4 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,4 +1,4 @@ libpcre2-8-0 libpcre2-16-0 libpcre2-32-0 -libpcre2-posix3 +libpcre2-posix0 diff --git a/pcre2-10.10.tar.bz2 b/pcre2-10.10.tar.bz2 new file mode 100644 index 0000000..b14d744 --- /dev/null +++ b/pcre2-10.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f45e5550a8c055a8a02b20c50060b16e71bec8440e5c86013c6b272c242ff42 +size 1339199 diff --git a/pcre2-10.10.tar.bz2.sig b/pcre2-10.10.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..35b96590f34012032de8f259ec5ce917d993cff7c05fff4596b2bfdb9baff776 GIT binary patch literal 287 zcmV+)0pR|L0UQJX0SEvF1p-w0!#4m52@scN;Dq}RL)g6~2me99hQwBvM_T-2bjyVg zz^fNun&36P9g1l?KF&kzZ#1i{>m9tzmAqN!BF~=PwRw8RPSj~_?Vc7{jSBrjgfeYf z))^;?lenG^9vFT#Bw43uF*FIQ`ho!>{|u>(nAQPe2VV&c9G5IXjPE5^BhX{}ND$E< z;JDI~u!-+l#3hQ3fK~z)`0(X7_FXSN{!4{MFCnfKKLlr>ZL?w1h@m7N&UN6Mbne=7 z?M~e4bK@xO5Lt2^sZla!Hm;vIsjjk~XJI9E9Rl(`iT~*_4RCt@7%m6mml-MHK6Qv2 l&`>d%BkdoJ@L`Jr?E(oV>Ml8eS3WIm7R`{nZ5Y!;^b<}+fYbm0 literal 0 HcmV?d00001 diff --git a/pcre2-10.43.tar.bz2 b/pcre2-10.43.tar.bz2 deleted file mode 100644 index dc99e91..0000000 --- a/pcre2-10.43.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2a53984ff0b07dfdb5ae4486bbb9b21cca8e7df2434096cc9bf1b728c350bcb -size 1905255 diff --git a/pcre2-10.43.tar.bz2.sig b/pcre2-10.43.tar.bz2.sig deleted file mode 100644 index d8e2368a06ec761436534e9b6f7a89ba42db2d4b0a1bb09679cb412afc561597..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j*h_Kj4#;y<$kn?~iAX5fVT4@1}m0%gyY*Z>L%5SM1) zg!>Oe*i&=|{xmOpdz++6-&NhfG7X^cHIz{w;=P(vYVI{?DGYn*6|t=Ln+KpGAo+LRTtReB)jrlP}5vpW0Ov0PqH1 zh5w0HU+721YV3+;sPk#yX8DGMc3KtTDN~SSxwLkgI>b>|xDh^)!DUjm+b0;AW^9>k z{B31_4(2KjGd=pNGEENogIXkK0s%(oI8+fQW>cYHI%n(e@NL - -- build x86_64-v3 optimized libs - -------------------------------------------------------------------- -Fri Feb 16 21:06:08 UTC 2024 - Andreas Stieger - -- pcre2 10.43: - * The JIT code no longer supports ARMv5 architecture. - * A new function pcre2_get_match_data_heapframes_size() for finer - heap control. - * New option flags to restrict the interaction between ASCII and - non-ASCII characters for caseless matching and \d and friends. - There are also new pattern constructs to control these flags - from within a pattern. - * Upgrade to Unicode 15.0.0. - * Treat a NULL pattern with zero length as an empty string. - * Added support for limited-length variable-length lookbehind - assertions, with a default maximum length of 255 characters - (same as Perl) but with a function to adjust the limit. - * Perl changed the meaning of (for example) {,3} which did not - used to be recognized as a quantifier. Now it means {0,3} and - PCRE2 has also changed. Note that {,} is still not a - quantifier. - * Following Perl, allow spaces and tabs after { and before } in - all Perl- compatible items that use braces, and also around - commas in quantifiers. The one exception in PCRE2 is \u{...}, - which is from ECMAScript, not Perl, and PCRE2 follows - ECMAScript usage. - * Changed the meaning of \w and its synonyms and derivatives (\b - and \B) in UCP mode to follow Perl. It now matches characters - whose general categories are L or N or whose particular - categories are Mn (non-spacing mark) or Pc (combining - punctuation). - * Changed the default meaning of [:xdigit:] in UCP mode to - follow Perl. It now matches the "fullwidth" versions of hex - digits. PCRE2_EXTRA_ASCII_DIGIT can be used to keep it ASCII - only. - * Make PCRE2_UCP the default in UTF mode in pcre2grep and add - -no_ucp, --case-restrict and --posix-digit. - * Add --group-separator and --no-group-separator to pcre2grep. - -------------------------------------------------------------------- -Mon Dec 12 20:19:14 UTC 2022 - Andreas Stieger - -- pcre2 10.42: - * Fix 10.41 regression that added the default definition of - PCRE2_CALL_CONVENTION to pcre2posix.c instead of pcre2posix.h, - which meant that programs including pcre2posix.h but not pcre2.h - couldn't compile - * Fix an intermittent JIT fault and minor issues - -------------------------------------------------------------------- -Mon Dec 12 08:58:58 UTC 2022 - Dirk Müller - -- switch to pkgconfig(zlib) so that alternative providers can be - used - -------------------------------------------------------------------- -Tue Dec 6 21:30:50 UTC 2022 - Andreas Stieger - -- pcre2 10.41: - * pcre2grep behaves more like GNU grep for multiple patterns that - match more than once on a line - -------------------------------------------------------------------- -Sun Jul 31 06:54:48 UTC 2022 - Stephan Kulow - -- Fix the profiling call to be non-parallel again (fighting spec cleaner) - -------------------------------------------------------------------- -Thu May 5 08:15:44 UTC 2022 - pgajdos@suse.com - -- do not enable jit-sealloc [bsc#1182864] [bsc#1199208] - -------------------------------------------------------------------- -Thu May 5 06:52:30 UTC 2022 - pgajdos@suse.com - -- enable jit for s390x [bsc#1199196] - -------------------------------------------------------------------- -Sat Apr 16 10:50:31 UTC 2022 - Andreas Stieger - -- pcre2 10.40: - * Added support for Bidi_Class and a number of binary Unicode - properties, including Bidi_Control. - * A number of changes to script matching for \p and \P: - speed improvements, add the syntax \p{script:xxx} and - \p{script_extensions:xxx} (synonyms sc and scx), Changed - \p{scriptname} from being the same as \p{sc:scriptname} to - being the same as \p{scx:scriptname}, recognize the standard - Unicode 4-letter abbreviations for script names, implement - Unicode and Perl's "loose matching" rules on property names - -------------------------------------------------------------------- -Fri Nov 5 19:01:43 UTC 2021 - Andreas Stieger - -- pcre2 10.39: - * Fix incorrect detection of alternatives in first character - search in JIT - * Update to Unicode 14.0.0 - -------------------------------------------------------------------- -Sun Oct 24 14:41:00 UTC 2021 - Andreas Stieger - -- pcre2 10.38: - * Following Perl's lead, \K is now locked out in lookaround - assertions by default, but an option is provided to re-enable - the previous behaviour - -------------------------------------------------------------------- -Thu May 27 12:30:17 UTC 2021 - Andreas Stieger - -- pcre2 10.37: - * removal of the actual POSIX names regcomp etc. from the POSIX - wrapper library because these have caused issues for some - applications, replacing pcre2-symbol-clash.patch - * fix a hypothetical NULL dereference - * fix two bugs related to over-large numbers so the behaviour is - now the same as Perl - * Fix propagation of \K back from the full pattern recursion - * Restore single character repetition optimization in JIT - -------------------------------------------------------------------- -Wed Apr 14 09:57:53 UTC 2021 - Jan Engelhardt - -- Remove regcomp, regexec etc. from libpcre2-posix. - (Add pcre2-symbol-clash.patch) - -------------------------------------------------------------------- -Sat Dec 5 12:41:55 UTC 2020 - Andreas Stieger - -- pcre2 10.36: - * add GNU grep's -m (aka --max-count) option to pcre2grep - * unify the handling of substitution strings for both -O and - callouts in pcre2grep, with the addition of $x{...} and - $o{...} to allow for characters whose code points are greater - than 255 in Unicode mode - -------------------------------------------------------------------- -Wed May 13 22:24:30 UTC 2020 - Илья Индиго - -- Refresh spec-file via spec-cleaner. - * Add %make_build and %license macros. -- Update to 10.35 - * https://www.pcre.org/changelog.txt - * Use PCRE2_MATCH_EMPTY flag to detect empty matches in JIT. - * A JIT bug is fixed which allowed to read the fields - of the compiled pattern before its existence is checked. - * Added PCRE2_SUBSTITUTE_LITERAL. - * Avoid some VS compiler warnings. - * Added PCRE2_SUBSTITUTE_MATCHED. - * Added (?* and (?<* as synonms for (*napla: and (*naplb: - to match another regex engine. - * Fix *THEN verbs in lookahead assertions in JIT. - * Added PCRE2_SUBSTITUTE_REPLACEMENT_ONLY. - * The JIT stack should be freed when the low-level stack - allocation fails. - * Changed setting of CMAKE_MODULE_PATH in CMakeLists.txt from SET - to LIST(APPEND...) to allow a setting from the command line - to be included. - * Updated to Unicode 13.0.0. - * CMake build now checks for secure_getenv() and strerror(). - * Restrict the configuration setting for the SELinux compatible - execmem allocator (change 10.30/44) to Linux and NetBSD. - -------------------------------------------------------------------- -Fri Mar 27 16:26:54 UTC 2020 - Marketa Calabkova - -- Resubmit the package (bsc#1167890, jsc#SLE-11608) - -------------------------------------------------------------------- -Tue Nov 26 21:24:43 UTC 2019 - Andreas Schwab - -- Enable JIT on aarch64 - -------------------------------------------------------------------- -Fri Nov 22 19:55:35 UTC 2019 - Andreas Stieger - -- pcre2 10.34: - * implement the documented maximum number of capturing - subpatterns of 65535 - * Improve the invalid utf32 support of the JIT compiler - * Add support for matching in invalid UTF strings to the pcre2_match() - * Give more error detail for invalid UTF-8 when detected in pcre2grep - * support for invalid UTF-8 to pcre2grep. - * Adjust the limit for "must have" code unit searching, in particular, - * increase it substantially for non-anchored patterns. - * Allow (*ACCEPT) to be quantified, because an ungreedy quantifier - with a zero minimum is potentially useful. - * Some changes to the way the minimum subject length is handled - * Check for integer overflow when computing lookbehind lengths - * Implement non-atomic positive lookaround assertions - * Upgraded to Unicode 12.1.0 - * Make pcre2test -C show if libreadline or libedit is supported - * Various bug fixes and improvements - -------------------------------------------------------------------- -Thu May 2 00:36:59 UTC 2019 - Jason Sikes - -- Update to 10.33-RC1 to fix issue with LTO (boo#1133274). - * Callouts from pcre2_substitute() are now available. - - * The POSIX functions are now all called pcre2_regcomp() etc., with wrapper - functions that use the standard POSIX names. However, in pcre2posix.h the POSIX - names are defined as macros. This should help avoid linking with the wrong - library in some environments, while still exporting the POSIX names for - pre-existing programs that use them. - - * Some new options: - - (a) PCRE2_EXTRA_ESCAPED_CR_IS_LF makes \r behave as \n. - - (b) PCRE2_EXTRA_ALT_BSUX enables support for ECMAScript 6's \u{hh...} - construct. - - (c) PCRE2_COPY_MATCHED_SUBJECT causes a copy of a matched subject to be - made, instead of just remembering a pointer. - - * Some new Perl features: - - (a) Perl 5.28's experimental alphabetic names for atomic groups and - lookaround assertions, for example, (*pla:...) and (*atomic:...). - - (b) The new Perl "script run" features (*script_run:...) and - (*atomic_script_run:...) aka (*sr:...) and (*asr:...). - - (c) When PCRE2_UTF is set, allow non-ASCII letters and decimal digits in - capture group names. - - * --disable-percent-zt disables the use of %zu and %td in formatting strings - in pcre2test. They were already automatically disabled for VC and older C - compilers. - - * Some changes related to callouts in pcre2grep: - - (a) Support for running an external program under VMS has been added, in - addition to Windows and fork() support. - - (b) --disable-pcre2grep-callout-fork restricts the callout support in - to the inbuilt echo facility. - -------------------------------------------------------------------- -Wed Apr 24 17:30:36 UTC 2019 - Martin Liška - -- Disable LTO (boo#1133274). - -------------------------------------------------------------------- -Wed Jan 23 12:25:38 UTC 2019 - Bernhard Wiedemann - -- Do not run profiling in parallel for reproducible builds (boo#1040589) - -------------------------------------------------------------------- -Mon Jan 14 16:11:53 CET 2019 - kukuk@suse.de - -- Mark all license files as %license - -------------------------------------------------------------------- -Tue Dec 11 14:31:55 UTC 2018 - Cristian Rodríguez - -- Build with --enable-jit-sealloc option, otherwise when - selinux is enabled or systemd memory protections are on, - programs will fail to work with execmem violations. - -------------------------------------------------------------------- -Thu Oct 25 07:22:21 UTC 2018 - astieger@suse.com - -- pcre2 10.32: - * pcre2grep now supports the inclusion of binary zeros in - patterns that are read from files via the -f option. - * In pcre2_dfa_match(), internal recursive calls no longer use - the stack for local workspace and local ovectors - * Updated to Unicode version 11.0.0. - * (*ACCEPT:ARG), (*FAIL:ARG), and (*COMMIT:ARG) are now supported. - * Add support for \N{U+dddd}, but only in Unicode mode. - * Addesupport for (?^) to unset all imnsx options - -------------------------------------------------------------------- -Fri Jul 20 14:05:01 UTC 2018 - mpluskal@suse.com - -- Drop conditions for old distributions -- Do profile guided build - -------------------------------------------------------------------- -Sun Feb 18 05:15:03 UTC 2018 - avindra@opensuse.org - -- Update to new upstream release 10.31 - * New pcre2_config() options: PCRE2_CONFIG_NEVER_BACKSLASH_C and - PCRE2_CONFIG_COMPILED_WIDTHS. - * New pcre2_pattern_info() option PCRE2_INFO_EXTRAOPTIONS to - retrieve the extra compile time options. - * Public names for all pcre2_compile() error numbers. - * Added PCRE2_CALLOUT_STARTMATCH and PCRE2_CALLOUT_BACKTRACK - bits to a new field callout_flags in callout blocks. -- use https for main site -- cleanup with spec-cleaner - -------------------------------------------------------------------- -Mon Sep 11 18:14:30 UTC 2017 - jengelh@inai.de - -- Update to new upstream release 10.30 - * The main interpreter, pcre2_match(), has been refactored into - a new version that does not use recursive function calls for - remembering backtracking positions. The new implementation - allows backtracking into recursive group calls in patterns, - making it more compatible with Perl. For patterns that have a - lot of backtracking, the heap is now used, and there is - explicit limit on the amount, settable by - pcre2_set_heap_limit(). The "recursion limit" is retained, - but is renamed as "depth limit". - * The new option PCRE2_ENDANCHORED insists that a pattern match - must end at the end of the subject. - * The new option PCRE2_EXTENDED_MORE implements Perl's /xx - feature, and pcre2test is upgraded to support it. Setting - within the pattern by (?xx) is Also supported. - * (?n) can be used to set PCRE2_NO_AUTO_CAPTURE, because Perl - now has this. - * Additional pattern compile options in the compile context are - now available: PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES and - PCRE2_EXTRA_BAD_ESCAPE_IS LITERAL. - * The newline type PCRE2_NEWLINE_NUL is now available. - * The match limit value now also applies to pcre2_dfa_match() - as there are patterns that can use up a lot of resources - without necessarily recursing very deeply. - * Various minor security fixes found by fuzzers: - + bsc#1037165: crash for forward reference in lookbehind with - PCRE2_ANCHORED - + CVE-2017-8786: heap-based buffer overflow write in pcre2test - (bsc#1036942) - + CVE-2017-7186: DoS by triggering an invalid Unicode property - lookup (bsc#1030066) -- Switch source URLs to use HTTP. - -------------------------------------------------------------------- -Sat Aug 5 17:34:26 UTC 2017 - astieger@suse.com - -- fix SLE 11 build - -------------------------------------------------------------------- -Tue May 2 17:28:30 UTC 2017 - astieger@suse.com - -- pcre2grep can now read .gz and .bz2 files directly -- pcre2test is now built to support line editing - -------------------------------------------------------------------- -Thu Feb 16 21:25:42 UTC 2017 - astieger@suse.com - -- pcre2 10.23: - * major re-factoring of the pcre2_compile.c file - * Back references are now permitted in lookbehind assertions when - there are no duplicated group numbers (that is, (?| has not - been used), and, if the reference is by name, there is only one - group of that name. The referenced group must, of course be of - fixed length. - * \g{+} (e.g. \g{+2} ) is now supported. It is a "forward - back reference" and can be useful in repetitions - (compare \g{-} ). Perl does not recognize this syntax. - * pcre2grep now automatically expands its buffer up to a maximum - set by --max-buffer-size. - * The -t option (grand total) has been added to pcre2grep. - * A new function called pcre2_code_copy_with_tables() exists to - copy a compiled pattern along with a private copy of the - character tables that is uses. - -------------------------------------------------------------------- -Tue Feb 7 16:19:22 UTC 2017 - dimstar@opensuse.org - -- Explicitly package %{_docdir}/%{name} to fix build with RPM 4.13. - -------------------------------------------------------------------- -Mon Aug 1 15:24:18 UTC 2016 - astieger@suse.com - -- pcre2 10.22: - * The POSIX wrapper function regcomp() did not used to - support back references and subroutine calls if called with the - REG_NOSUB option. It now does. - * A new function, pcre2_code_copy(), is added, to make a copy of a - compiled pattern. - * Support for string callouts is added to pcre2grep. - * Added the PCRE2_NO_JIT option to pcre2_match(). - * The pcre2_get_error_message() function now returns with a - negative error code if the error number it is given is unknown. - * Several updates have been made to pcre2test and test scripts - * Fix CVE-2016-3191: workspace overflow for (*ACCEPT) with deeply - nested parentheses (boo#971741) - -------------------------------------------------------------------- -Sun Jan 17 14:30:53 UTC 2016 - jengelh@inai.de - -- Update to new upstream release 10.21 -* Improve JIT matching speed of patterns starting with + or *. -* Use memchr() to find the first character in an unanchored match - in 8-bit mode in the interpreter. This gives a significant speed - improvement. -* 10.20 broke the handling of [[:>:]] and [[:<:]] in that - processing them could involve a buffer overflow if the - following character was an opening parenthesis. -* 10.20 also introduced a bug in processing this pattern: - /((?x)(*:0))#(?'/, which was fixed. -* A callout with a string argument containing an opening square - bracket, for example /(?C$[$)(?<]/, was incorrectly processed and - could provoke a buffer overflow. -* A possessively repeated conditional group that could match an empty - string, for example, /(?(R))*+/, was incorrectly compiled. -* The Unicode tables have been updated to Unicode 8.0.0. -* An empty comment (?#) in a pattern was incorrectly processed and - could provoke a buffer overflow. -* Fix infinite recursion in the JIT compiler when certain patterns - /such as (?:|a|){100}x/ are analysed. -* Some patterns with character classes involving [: and \\ were - incorrectly compiled and could cause reading from uninitialized - memory or an incorrect error diagnosis. Examples are: - /[[:\\](?<[::]/ and /[[:\\](?'abc')[a:]. -* A missing closing parenthesis for a callout with a string argument - was not being diagnosed, possibly leading to a buffer overflow. -* If (?R was followed by - or + incorrect behaviour happened instead - of a diagnostic. -* Fixed an issue when \p{Any} inside an xclass did not read the current - character. -* About 80 more fixes, which you can read about in the ChangeLog - shipped with the libpcre2-8-0 package. - -------------------------------------------------------------------- -Tue Jul 14 08:42:04 UTC 2015 - astieger@suse.com - -- PCRE2 10.20: - * Callouts with string arguments and the - pcre2_callout_enumerate() function have been implemented. - * The PCRE2_NEVER_BACKSLASH_C option, which locks out the use of - \C, is added. - * The PCRE2_ALT_CIRCUMFLEX option lets ^ match after a newline at - the end of a subject in multiline mode. - * The way named subpatterns are handled has been refactored. The - previous approach had several bugs. - * The handling of \c in EBCDIC environments has been changed to - conform to the perlebcdic document. (Incompatible change) - * Bugs have been mended, many of them discovered by fuzzers. - ------------------------------------------------------------------- Thu Jun 18 20:51:45 UTC 2015 - astieger@suse.com @@ -491,7 +52,7 @@ Thu Aug 28 03:10:39 UTC 2014 - crrodriguez@opensuse.org ------------------------------------------------------------------- Mon Jun 16 14:44:43 UTC 2014 - dvaleev@suse.com -- Enable JIT on ppc64le as well +- Enable JIT on ppc64le as well ------------------------------------------------------------------- Sat May 3 06:07:56 UTC 2014 - coolo@suse.com @@ -552,7 +113,7 @@ Thu Jun 13 16:20:10 UTC 2013 - jengelh@inai.de ------------------------------------------------------------------- Sat Jun 8 20:16:10 UTC 2013 - crrodriguez@opensuse.org -- Ensure the PCRE library and tools are built with large file +- Ensure the PCRE library and tools are built with large file support in 32 bit archs. ------------------------------------------------------------------- @@ -631,19 +192,19 @@ Thu May 10 15:59:21 UTC 2012 - afaerber@suse.de ------------------------------------------------------------------- Tue Feb 7 15:10:59 UTC 2012 - crrodriguez@opensuse.org -- fix baselibs +- fix baselibs ------------------------------------------------------------------- Tue Feb 7 04:40:59 UTC 2012 - crrodriguez@opensuse.org -- Update to PCRE 8.30, upstream SONAME bump, libpcre1 +- Update to PCRE 8.30, upstream SONAME bump, libpcre1 - Drop no longer needed ppc patch. - move library back to %{_libdir} ------------------------------------------------------------------- Wed Feb 1 10:44:38 UTC 2012 - dvaleev@suse.com -- Fix cache-flush on PPC +- Fix cache-flush on PPC ------------------------------------------------------------------- Wed Nov 16 08:17:40 UTC 2011 - coolo@suse.com @@ -653,9 +214,9 @@ Wed Nov 16 08:17:40 UTC 2011 - coolo@suse.com ------------------------------------------------------------------- Tue Nov 1 16:16:49 UTC 2011 - crrodriguez@opensuse.org -- Update to version 8.20 +- Update to version 8.20 * too many fixes to list here, see included ChangeLog - * replace pcre-visibility patch with the one I submitted to + * replace pcre-visibility patch with the one I submitted to upstream for inclusion. ------------------------------------------------------------------- @@ -663,12 +224,12 @@ Tue Oct 11 22:39:57 UTC 2011 - dmueller@suse.de - udpate to 8.13: * too many fixes to list here, see included ChangeLog - * the Unicode data tables have been updated to Unicode 6.0.0. + * the Unicode data tables have been updated to Unicode 6.0.0. ------------------------------------------------------------------- Mon Sep 19 15:15:41 UTC 2011 - coolo@suse.com -- remove fragile _service +- remove fragile _service ------------------------------------------------------------------- Wed Mar 9 14:20:37 UTC 2011 - coolo@novell.com @@ -699,7 +260,7 @@ Wed Mar 9 14:20:37 UTC 2011 - coolo@novell.com ------------------------------------------------------------------- Sat Oct 30 02:15:06 UTC 2010 - cristian.rodriguez@opensuse.org -- Support GCC visibility, symbol clashes no more. +- Support GCC visibility, symbol clashes no more. ------------------------------------------------------------------- Sun Sep 19 11:03:57 CEST 2010 - vuntz@opensuse.org @@ -788,7 +349,7 @@ Wed Jun 10 13:03:11 CEST 2009 - coolo@novell.com ------------------------------------------------------------------- Fri Jun 5 23:13:22 CEST 2009 - crrodriguez@suse.de -- disable static libraries, shouldn't be used now +- disable static libraries, shouldn't be used now ------------------------------------------------------------------- Sat May 30 22:02:07 CEST 2009 - dmueller@suse.de @@ -805,7 +366,7 @@ Tue May 5 14:24:17 CEST 2009 - ms@suse.de - Release 7.9 11-Apr-09 (bnc #500734) Mostly bugfixes and tidies with just a couple of minor - functional additions. + functional additions. ------------------------------------------------------------------- Wed Jan 7 12:34:56 CET 2009 - olh@suse.de @@ -816,7 +377,7 @@ Wed Jan 7 12:34:56 CET 2009 - olh@suse.de Fri Sep 12 01:51:31 CEST 2008 - crrodriguez@suse.de - update to PCRE 7.8 - * More bug fixes, plus a performance improvement + * More bug fixes, plus a performance improvement in Unicode character property lookup. see complete changelog at http://www.pcre.org/changelog.txt @@ -831,9 +392,9 @@ Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de Fri Feb 1 19:43:16 CET 2008 - crrodriguez@suse.de - update to version 7.6 -- The main reason for having this release so soon after 7.5 - is because it fixes a potential buffer overflow problem in pcre_compile() - when run in UTF-8 mode. In addition, the CMake configuration files have been brought up to date. +- The main reason for having this release so soon after 7.5 + is because it fixes a potential buffer overflow problem in pcre_compile() + when run in UTF-8 mode. In addition, the CMake configuration files have been brought up to date. ------------------------------------------------------------------- Sun Jan 13 09:08:22 CET 2008 - crrodriguez@suse.de @@ -970,14 +531,14 @@ Sun Jan 13 09:08:22 CET 2008 - crrodriguez@suse.de Perl does, and where it didn't before. 24. Rewrite so as to remove the single use of %n from pcregrep because in some - Windows environments %n is disabled by default. + Windows environments %n is disabled by default. ------------------------------------------------------------------- Tue Nov 6 08:15:28 CET 2007 - crrodriguez@suse.de - update to version 7.4, since version 7.2, more than 40 bugs were fixed including multiple vulnerabilities [#325921] . The list of changes is too long - to mention here, see changelog.txt for details. + to mention here, see changelog.txt for details. ------------------------------------------------------------------- Wed Aug 8 12:46:16 CEST 2007 - ms@suse.de @@ -1322,7 +883,7 @@ Thu Mar 31 17:39:53 CEST 2005 - uli@suse.de ------------------------------------------------------------------- Mon Nov 22 17:12:31 CET 2004 - choeger@suse.de -- update to latest version v5.0 +- update to latest version v5.0 ------------------------------------------------------------------- Mon Jun 7 11:40:27 CEST 2004 - choeger@suse.de @@ -1364,7 +925,7 @@ Fri Dec 6 04:42:15 CET 2002 - coolo@suse.de ------------------------------------------------------------------- Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de -- removed bogus self-provides +- removed bogus self-provides ------------------------------------------------------------------- Fri Apr 5 10:57:15 CEST 2002 - coolo@suse.de @@ -1381,7 +942,7 @@ Tue Jan 22 19:07:26 CET 2002 - choeger@suse.de ------------------------------------------------------------------- Tue Aug 21 01:11:46 MEST 2001 - mge@suse.de -- pcre 3.5 +- pcre 3.5 ------------------------------------------------------------------- Wed Apr 11 22:26:54 CEST 2001 - froh@suse.de @@ -1401,7 +962,7 @@ Tue Jun 27 19:41:41 MEST 2000 - mge@suse.de ------------------------------------------------------------------- Thu Mar 2 12:22:48 CET 2000 - mge@suse.de -- fixed manpath +- fixed manpath ------------------------------------------------------------------- Sun Feb 13 16:54:53 MET 2000 - mge@suse.de diff --git a/pcre2.spec b/pcre2.spec index 7ab0f31..b7eb114 100644 --- a/pcre2.spec +++ b/pcre2.spec @@ -1,8 +1,7 @@ # # spec file for package pcre2 # -# Copyright (c) 2024 SUSE LLC -# Copyright (c) 2024 Andreas Stieger +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,20 +12,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%global _lto_cflags %{_lto_cflags} -ffat-lto-objects Name: pcre2 -Version: 10.43 +Version: 10.10 Release: 0 Summary: A library for Perl-compatible regular expressions License: BSD-3-Clause Group: Development/Libraries/C and C++ -URL: https://www.pcre.org -Source0: https://github.com/PhilipHazel/pcre2/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 -Source2: https://github.com/PhilipHazel/pcre2/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2.sig +Url: http://www.pcre.org/ +#SVN-Clone: svn://vcs.exim.org/pcre/code/trunk +Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2 +Source2: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2.sig Source3: %{name}.keyring Source4: baselibs.conf #PATCH-FIX-OPENSUSE tchvatal@suse.cz upstream thinks it is good idea to use rpath, taken from RH @@ -34,12 +33,9 @@ Patch1: pcre2-10.10-multilib.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ -BuildRequires: libbz2-devel -BuildRequires: libedit-devel BuildRequires: libtool -BuildRequires: pkgconfig -BuildRequires: pkgconfig(zlib) -%{?suse_build_hwcaps_libs} +BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The PCRE2 library is a set of functions that implement regular @@ -55,7 +51,7 @@ Group: Development/Libraries/C and C++ Requires: libpcre2-16-0 = %{version} Requires: libpcre2-32-0 = %{version} Requires: libpcre2-8-0 = %{version} -Requires: libpcre2-posix3 = %{version} +Requires: libpcre2-posix0 = %{version} Requires: libstdc++-devel %description devel @@ -124,11 +120,11 @@ API. libpcre2-32 supports 32-bit and UTF-32 strings. -%package -n libpcre2-posix3 +%package -n libpcre2-posix0 Summary: A library for Perl-compatible regular expressions Group: System/Libraries -%description -n libpcre2-posix3 +%description -n libpcre2-posix0 The PCRE2 library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. @@ -141,7 +137,9 @@ pcre2-posix provides a POSIX-compatible API to the PCRE2 engine. %package doc Summary: A library for Perl-compatible regular expressions Group: Documentation/HTML +%if 0%{?suse_version} >= 1120 BuildArch: noarch +%endif %description doc The PCRE2 library is a set of functions that implement regular @@ -165,15 +163,15 @@ PCRE2 is a re-working of the original PCRE library to provide an entirely new API. %prep -%autosetup -p1 +%setup -q +%patch1 -p1 %build -%define _lto_cflags %{nil} # Available JIT archs see sljit/sljitConfig.h autoreconf -fiv export LDFLAGS="-Wl,-z,relro,-z,now" %configure \ -%ifarch %{ix86} x86_64 aarch64 %{arm} ppc ppc64 ppc64le mips sparc s390x +%ifarch %ix86 x86_64 %arm ppc ppc64 ppc64le mips sparc --enable-jit \ %endif --enable-static \ @@ -182,24 +180,11 @@ export LDFLAGS="-Wl,-z,relro,-z,now" --enable-newline-is-lf \ --enable-pcre2-16 \ --enable-pcre2-32 \ - --enable-pcre2grep-libz \ - --enable-pcre2grep-libbz2 \ - --enable-pcre2test-libedit \ --enable-unicode - -%if 0%{?do_profiling} - %make_build CFLAGS="%{optflags} %{cflags_profile_generate}" - export LANG=POSIX - # do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408) - %make_build -j1 CFLAGS="%{optflags} %{cflags_profile_generate}" check - %make_build clean - %make_build CFLAGS="%{optflags} %{cflags_profile_feedback}" -%else - %make_build CFLAGS="%{optflags}" -%endif +make %{?_smp_mflags} V=1 %install -%make_install +make DESTDIR=%{buildroot} install %{?_smp_mflags} mkdir -p %{buildroot}/%{_defaultdocdir} mv %{buildroot}%{_datadir}/doc/pcre2 %{buildroot}/%{_defaultdocdir}/pcre2-doc #empty dependecy_libs @@ -207,45 +192,54 @@ find %{buildroot} -type f -name "*.la" -delete -print %check export LANG=POSIX -%make_build check -j1 +make check -j1 -%ldconfig_scriptlets -n libpcre2-8-0 -%ldconfig_scriptlets -n libpcre2-16-0 -%ldconfig_scriptlets -n libpcre2-32-0 -%ldconfig_scriptlets -n libpcre2-posix3 +%post -n libpcre2-8-0 -p /sbin/ldconfig + +%postun -n libpcre2-8-0 -p /sbin/ldconfig + +%post -n libpcre2-16-0 -p /sbin/ldconfig + +%postun -n libpcre2-16-0 -p /sbin/ldconfig + +%post -n libpcre2-32-0 -p /sbin/ldconfig + +%postun -n libpcre2-32-0 -p /sbin/ldconfig + +%post -n libpcre2-posix0 -p /sbin/ldconfig + +%postun -n libpcre2-posix0 -p /sbin/ldconfig %files -n libpcre2-8-0 -%license COPYING LICENCE -%doc AUTHORS ChangeLog NEWS README +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog LICENCE NEWS README %{_libdir}/libpcre2-8.so.* %files -n libpcre2-16-0 -%license LICENCE +%defattr(-,root,root) %{_libdir}/libpcre2-16.so.* %files -n libpcre2-32-0 -%license LICENCE +%defattr(-,root,root) %{_libdir}/libpcre2-32.so.* -%files -n libpcre2-posix3 -%license LICENCE +%files -n libpcre2-posix0 +%defattr(-,root,root) %{_libdir}/libpcre2-posix.so.* %files tools -%license LICENCE +%defattr(-,root,root) %{_bindir}/pcre2grep %{_bindir}/pcre2test -%{_mandir}/man1/pcre2grep.1%{?ext_man} -%{_mandir}/man1/pcre2test.1%{?ext_man} +%{_mandir}/man1/pcre2grep.* +%{_mandir}/man1/pcre2test.* %files doc -%license COPYING LICENCE -%doc AUTHORS ChangeLog NEWS README +%defattr(-,root,root) %doc doc/html doc/*.txt -%doc %{_defaultdocdir}/pcre2-doc %files devel -%license LICENCE +%defattr(-,root,root) %{_bindir}/pcre2-config %{_includedir}/* %{_libdir}/*.so @@ -253,11 +247,11 @@ export LANG=POSIX %{_libdir}/pkgconfig/libpcre2-16.pc %{_libdir}/pkgconfig/libpcre2-32.pc %{_libdir}/pkgconfig/libpcre2-posix.pc -%{_mandir}/man1/pcre2-config.1%{?ext_man} -%{_mandir}/man3/*%{ext_man} +%{_mandir}/man1/pcre2-config.* +%{_mandir}/man3/*.gz %files devel-static -%license LICENCE +%defattr(-,root,root) %{_libdir}/*.a %changelog