diff --git a/expect.spec b/expect.spec index bbd1a590c0b8189f26479fbc6d2e68d022631776..f569ffca16d9ee55f1061afcab8de8868f418a5d 100644 --- a/expect.spec +++ b/expect.spec @@ -4,7 +4,7 @@ Name: expect Epoch: 1 Version: 5.45.4 -Release: 4 +Release: 5 Summary: A tool for automating interactive applications License: Public Domain URL: https://core.tcl.tk/expect/index @@ -103,7 +103,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 @@ -111,6 +118,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}/* @@ -120,6 +128,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so %{_mandir}/man3/libexpect.3* %changelog +* Thu Feb 22 2024 hongjinghao - 1:5.45.4-5 +- remove rpath and runpath of exec files and libraries + * Mon Apr 20 2020 openEuler Buildteam - 1:5.45.4-4 - Type:bugfix - ID:NA