!19 remove rpath and runpath of exec files and libraries

From: @fly_fzc 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
This commit is contained in:
openeuler-ci-bot 2023-11-09 03:15:44 +00:00 committed by Gitee
commit 8553c83f41
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,12 +1,12 @@
Name: libpsl
Version: 0.21.1
Release: 1
Release: 2
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 git gdb gtk-doc glib2-devel libxslt python3-devel
BuildRequires: gcc git gdb 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,12 @@ make check
%{_datadir}/gtk-doc/html/%{name}
%changelog
* Thu Nov 9 2023 fuanan <fuanan3@h-partners.com> - 0.21.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove rpath and runpath of exec files and libraries
* Mon Aug 3 2020 zhangguangzhi <zhangguangzhi3@huawei.com> - 0.21.1-1
- Type:update
- ID: NA