From 7c4a94b471780d68e8a477cf067b73ad5d1341b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 9 Feb 2012 15:16:20 +0100 Subject: [PATCH] Add old libpcre.so.0 to preserve compatibility temporarily --- pcre.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcre.spec b/pcre.spec index 14adaa8..e352891 100644 --- a/pcre.spec +++ b/pcre.spec @@ -16,6 +16,8 @@ Patch1: pcre-8.30-refused_spelling_terminated.patch BuildRequires: readline-devel # New libtool to get rid of rpath BuildRequires: autoconf, automake, libtool +# SONAME change +BuildRequires: pcre %description Perl-compatible regular expression library. @@ -88,6 +90,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la # These are handled by %%doc in %%files rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre +# SONAME change +cp -p /%{_lib}/libpcre.so.0.0.1 $RPM_BUILD_ROOT/%{_lib} +ln -s libpcre.so.0.0.1 $RPM_BUILD_ROOT/%{_lib}/libpcre.so.0 + %check %ifarch s390 ppc # larger stack is needed on s390, ppc @@ -127,6 +133,7 @@ make check %changelog * Thu Feb 09 2012 Petr Pisar - 8.30-1 - 8.30 bump +- Add old libpcre.so.0 to preserve compatibility temporarily * Fri Jan 27 2012 Petr Pisar - 8.30-0.1.RC1 - 8.30 Relase candidate 1 with UTF-16 bump