[packages/pcre2] move libpcre2-8 soname to /%{_lib}
arekm
arekm at pld-linux.org
Sun Aug 23 11:50:48 CEST 2026
commit 9c2a4da302e3e934fe98f076450e556ba91c22c2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 11:48:20 2026 +0200
move libpcre2-8 soname to /%{_lib}
/lib64/libselinux.so.1 and /bin/grep need libpcre2-8.so.0
pcre2.spec | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/pcre2.spec b/pcre2.spec
index 6e2237e..fbf063e 100644
--- a/pcre2.spec
+++ b/pcre2.spec
@@ -11,7 +11,7 @@ Summary(pl.UTF-8): Biblioteka perlowych wyrażeń regularnych
Summary(pt_BR.UTF-8): Biblioteca de expressões regulares versão
Name: pcre2
Version: 10.47
-Release: 1
+Release: 2
License: BSD (see LICENCE)
Group: Libraries
Source0: https://github.com/PhilipHazel/pcre2/releases/download/pcre2-%{version}/%{name}-%{version}.tar.bz2
@@ -283,6 +283,13 @@ rm -rf $RPM_BUILD_ROOT
# packaged as %doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pcre2
+%if %{with pcre8}
+install -d $RPM_BUILD_ROOT/%{_lib}
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libpcre2-8.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libpcre2-8.so.*.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/libpcre2-8.so
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -327,8 +334,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with pcre8}
%files 8
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpcre2-8.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpcre2-8.so.0
+%attr(755,root,root) /%{_lib}/libpcre2-8.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libpcre2-8.so.0
%files 8-devel
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pcre2.git/commitdiff/9c2a4da302e3e934fe98f076450e556ba91c22c2
More information about the pld-cvs-commit
mailing list