!8 remove rpath and runpath of exec files and libraries
From: @panxh_purple Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
15f4b98dd6
14
libpsl.spec
14
libpsl.spec
@ -1,12 +1,12 @@
|
||||
Name: libpsl
|
||||
Version: 0.21.1
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: C library to handle the Public Suffix List
|
||||
License: MIT
|
||||
URL: https://github.com/rockdaboot/libpsl
|
||||
Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libpsl-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel
|
||||
BuildRequires: gcc gtk-doc glib2-devel libxslt python3-devel chrpath
|
||||
BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel
|
||||
Requires: publicsuffix-list
|
||||
Provides: psl = %{version}-%{release}
|
||||
@ -68,6 +68,12 @@ sed -i -e "1s|#!.*|#!%{__python3}|" src/psl-make-dafsa
|
||||
install -m0755 src/psl-make-dafsa %{buildroot}/%{_bindir}
|
||||
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
||||
|
||||
#remove rpath
|
||||
chrpath -d %{buildroot}/%{_bindir}/psl
|
||||
|
||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
@ -84,6 +90,7 @@ make check
|
||||
%{_libdir}/%{name}.so.*
|
||||
%{_bindir}/psl
|
||||
%{_bindir}/psl-make-dafsa
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}.h
|
||||
@ -97,6 +104,9 @@ make check
|
||||
%{_datadir}/gtk-doc/html/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Sep 6 2021 panxiaohe <panxiaohe@huawei.com> - 0.21.1-4
|
||||
- remove rpath and runpath of exec files and libraries
|
||||
|
||||
* Mon Jul 26 2021 panxiaohe <panxiaohe@huawei.com> - 0.21.1-3
|
||||
- Remove unnecessary BuildRequires:git
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user