From 244afd92965bc8df652c2c1711641649b5884fdc Mon Sep 17 00:00:00 2001 From: Lukas Javorsky Date: Tue, 22 Jun 2021 12:54:30 +0200 Subject: [PATCH] Soname bump of libpcre2-posix.so Resolves: rhbz#1970765 This includes copying the old libpcre2-posix.so.2* and providing it for backward compatibility We can revert this commit after rebuilding all packages against the new libpcre2-posix.so.3* library --- pcre2.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcre2.spec b/pcre2.spec index 7c15406..59e3c1a 100644 --- a/pcre2.spec +++ b/pcre2.spec @@ -62,6 +62,7 @@ BuildRequires: make BuildRequires: readline-devel %endif BuildRequires: sed +BuildRequires: pcre2 Requires: %{name}-syntax = %{version}-%{release} Provides: bundled(sljit) @@ -198,11 +199,16 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la # These are handled by %%doc in %%files rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre2 +# Copy old soname %{_libdir}/libpcre2-posix.so.2 +cp %{_libdir}/libpcre2-posix.so.2* $RPM_BUILD_ROOT%{_libdir} + %check make %{?_smp_mflags} check VERBOSE=yes %files %{_libdir}/libpcre2-8.so.0* +# We can delete this after rebuilding all dependent packages +%{_libdir}/libpcre2-posix.so.2* %{_libdir}/libpcre2-posix.so.3* %files utf16