remove rpath and runpath of exec files and libraries
This commit is contained in:
parent
272d24058b
commit
6f657c5dcc
17
libpsl.spec
17
libpsl.spec
@ -1,12 +1,12 @@
|
|||||||
Name: libpsl
|
Name: libpsl
|
||||||
Version: 0.21.1
|
Version: 0.21.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: C library to handle the Public Suffix List
|
Summary: C library to handle the Public Suffix List
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rockdaboot/libpsl
|
URL: https://github.com/rockdaboot/libpsl
|
||||||
Source0: https://github.com/rockdaboot/libpsl/releases/download/%{version}/libpsl-%{version}.tar.gz
|
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
|
BuildRequires: libicu-devel libidn2-devel publicsuffix-list libunistring-devel
|
||||||
Requires: publicsuffix-list
|
Requires: publicsuffix-list
|
||||||
Provides: psl = %{version}-%{release}
|
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}
|
install -m0755 src/psl-make-dafsa %{buildroot}/%{_bindir}
|
||||||
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
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
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
@ -84,6 +90,7 @@ make check
|
|||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.*
|
||||||
%{_bindir}/psl
|
%{_bindir}/psl
|
||||||
%{_bindir}/psl-make-dafsa
|
%{_bindir}/psl-make-dafsa
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/%{name}.h
|
%{_includedir}/%{name}.h
|
||||||
@ -97,6 +104,12 @@ make check
|
|||||||
%{_datadir}/gtk-doc/html/%{name}
|
%{_datadir}/gtk-doc/html/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 3 2020 zhangguangzhi <zhangguangzhi3@huawei.com> - 0.21.1-1
|
||||||
- Type:update
|
- Type:update
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user