diff --git a/libpsl.spec b/libpsl.spec index de857620e27f67fc49fb3d03b44111c51591d36b..ed2f6d553a92248caf4022616d7e75f4028265ad 100644 --- a/libpsl.spec +++ b/libpsl.spec @@ -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 - 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 - 0.21.1-1 - Type:update - ID: NA