diff --git a/expect.spec b/expect.spec index 20a1d9c273765518be89f30a66d98db99aa97312..6a61bce88a221ba43a142afc267d669de3be9988 100644 --- a/expect.spec +++ b/expect.spec @@ -4,7 +4,7 @@ Name: expect Epoch: 1 Version: 5.45.4 -Release: 7 +Release: 8 Summary: A tool for automating interactive applications License: Public Domain URL: https://core.tcl.tk/expect/index @@ -100,7 +100,14 @@ rm -f "$RPM_BUILD_ROOT"%{_mandir}/man1/{cryptdir,decryptdir}.1* # remove rpath chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/expect +mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d +echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %doc ChangeLog FAQ HISTORY NEWS README @@ -108,6 +115,7 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so %dir %{tcl_sitearch}/expect%{version} %{tcl_sitearch}/expect%{version}/pkgIndex.tcl %{_libdir}/libexpect*.so +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/* @@ -117,6 +125,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so %{_mandir}/man3/libexpect.3* %changelog +* Thu Feb 22 2024 hongjinghao - 1:5.45.4-8 +- remove rpath and runpath of exec files and libraries + * Thu Jun 9 2022 yangzhao1 - 1:5.45.4-7 - Remove unnecessary Buildrequires git