diff --git a/pcre2.changes b/pcre2.changes index e6e095b..cd684e5 100644 --- a/pcre2.changes +++ b/pcre2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Apr 2 13:34:41 UTC 2021 - Cristian Rodríguez + +- libpcre2-posix exports symbols that conflict with libc, so it + should not be pulled by pcre-devel only by applications that + explicitly BuildRequires: pkgconfig(libpcre-posix2) , split a + libpcre2-posix-devel package. + ------------------------------------------------------------------- Sat Dec 5 12:41:55 UTC 2020 - Andreas Stieger diff --git a/pcre2.spec b/pcre2.spec index d27a8a9..55b55a2 100644 --- a/pcre2.spec +++ b/pcre2.spec @@ -1,7 +1,7 @@ # # spec file for package pcre2 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,7 +54,6 @@ Group: Development/Libraries/C and C++ Requires: libpcre2-16-0 = %{version} Requires: libpcre2-32-0 = %{version} Requires: libpcre2-8-0 = %{version} -Requires: libpcre2-posix2 = %{version} Requires: libstdc++-devel %description devel @@ -137,6 +136,20 @@ API. pcre2-posix provides a POSIX-compatible API to the PCRE2 engine. +%package -n libpcre2-posix-devel +Summary: A library for Perl-compatible regular expressions +Group: Development/Libraries/C and C++ +Requires: libpcre2-posix2 = %{version} +Provides: %{_includedir}/pcre2posix.h + +%description -n libpcre2-posix-devel +The PCRE2 library is a set of functions that implement regular +expression pattern matching using the same syntax and semantics +as Perl 5. + +PCRE2 is a re-working of the original PCRE library to provide an entirely new +API. + %package doc Summary: A library for Perl-compatible regular expressions Group: Documentation/HTML @@ -236,6 +249,12 @@ export LANG=POSIX %license LICENCE %{_libdir}/libpcre2-posix.so.* +%files -n libpcre2-posix-devel +%license LICENCE +%{_libdir}/pkgconfig/libpcre2-posix.pc +%{_libdir}/libpcre2-posix.so +%{_includedir}/pcre2posix.h + %files tools %license LICENCE %{_bindir}/pcre2grep @@ -252,12 +271,13 @@ export LANG=POSIX %files devel %license LICENCE %{_bindir}/pcre2-config -%{_includedir}/* -%{_libdir}/*.so +%{_includedir}/pcre2.h +%{_libdir}/libpcre2-16.so +%{_libdir}/libpcre2-32.so +%{_libdir}/libpcre2-8.so %{_libdir}/pkgconfig/libpcre2-8.pc %{_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}