!17 remove rpath and runpath of exec files and libraries
From: @hongjinghao Reviewed-by: @openeuler-basic Signed-off-by: @openeuler-basic
This commit is contained in:
commit
b7b3ccafe4
13
expect.spec
13
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 <hongjinghao@huawei.com> - 1:5.45.4-8
|
||||
- remove rpath and runpath of exec files and libraries
|
||||
|
||||
* Thu Jun 9 2022 yangzhao1 <yangzhao1@kylinos.cn> - 1:5.45.4-7
|
||||
- Remove unnecessary Buildrequires git
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user