Accepting request 806245 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/806245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcre2?expand=0&rev=18
This commit is contained in:
Yuchen Lin 2020-05-23 15:19:04 +00:00 committed by Git OBS Bridge
parent 6475653863
commit f156398dc5
6 changed files with 47 additions and 21 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74c473ffaba9e13db6951fd146e0143fe9887852ce73406a03277af1d9b798ca
size 1714731

Binary file not shown.

3
pcre2-10.35.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ccba8e02b0ce78046cdfb52e5c177f0f445e421059e43becca4359c669d4613
size 1725214

BIN
pcre2-10.35.tar.bz2.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Wed May 13 22:24:30 UTC 2020 - Илья Индиго <ilya@ilya.pp.ua>
- 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 <mcalabkova@suse.com>

View File

@ -16,15 +16,16 @@
#
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
Name: pcre2
Version: 10.34
Version: 10.35
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/
URL: https://www.pcre.org
#SVN-Clone: svn://vcs.exim.org/pcre/code/trunk
Source: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2
Source0: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2
Source2: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2.sig
Source3: %{name}.keyring
Source4: baselibs.conf
@ -39,8 +40,6 @@ BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%description
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
@ -190,14 +189,14 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
--enable-unicode
%if 0%{?do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
export LANG=POSIX
# do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408)
make CFLAGS="%{optflags} %{cflags_profile_generate}" check
make %{?_smp_mflags} clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" check
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
make %{?_smp_mflags} CFLAGS="%{optflags}"
%make_build CFLAGS="%{optflags}"
%endif
%install
@ -209,7 +208,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%check
export LANG=POSIX
make check -j1
%make_build check -j1
%post -n libpcre2-8-0 -p /sbin/ldconfig
%postun -n libpcre2-8-0 -p /sbin/ldconfig
@ -226,32 +225,32 @@ make check -j1
%{_libdir}/libpcre2-8.so.*
%files -n libpcre2-16-0
%doc LICENCE
%license LICENCE
%{_libdir}/libpcre2-16.so.*
%files -n libpcre2-32-0
%doc LICENCE
%license LICENCE
%{_libdir}/libpcre2-32.so.*
%files -n libpcre2-posix2
%doc LICENCE
%license LICENCE
%{_libdir}/libpcre2-posix.so.*
%files tools
%doc LICENCE
%license LICENCE
%{_bindir}/pcre2grep
%{_bindir}/pcre2test
%{_mandir}/man1/pcre2grep.1%{?ext_man}
%{_mandir}/man1/pcre2test.1%{?ext_man}
%files doc
%license COPYING
%doc AUTHORS ChangeLog LICENCE NEWS README
%license COPYING LICENCE
%doc AUTHORS ChangeLog NEWS README
%doc doc/html doc/*.txt
%doc %{_defaultdocdir}/pcre2-doc
%files devel
%doc LICENCE
%license LICENCE
%{_bindir}/pcre2-config
%{_includedir}/*
%{_libdir}/*.so