From 9989e504bfae8d30e4652c2e3cac571b5057495b Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 9 Sep 2021 14:13:39 +0800 Subject: [PATCH] remove rpath (cherry picked from commit 09feeab25f389e01f14e19f3bae6ac664c53e46a) --- esc.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/esc.spec b/esc.spec index adaf1e6..4ac9737 100644 --- a/esc.spec +++ b/esc.spec @@ -1,6 +1,6 @@ Name: esc Version: 1.1.2 -Release: 4 +Release: 5 Summary: esc embeds files into go programs and provides http License: GPL+ URL: https://github.com/mjibson/esc @@ -56,6 +56,17 @@ popd install -m 0755 %{SOURCE2} %{buildroot}/%{_datadir}/applications +chrpath -d %{buildroot}%{_libdir}/%{name}-%{version}/lib/libcoolkeymgr-1.0.so.0.0.0 + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "/usr/local/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + %files %defattr(-,root,root) %doc README.md @@ -68,11 +79,15 @@ install -m 0755 %{SOURCE2} %{buildroot}/%{_datadir}/applications %{_datadir}/pixmaps/esc.png %{_datadir}/applications/esc.desktop %{_datadir}/icons/hicolor/48x48/apps/esc.png +%config(noreplace) /etc/ld.so.conf.d/* %files help %defattr(-,root,root) %changelog +* Wed Sep 9 2021 caodongxia - 1.1.2-5 +- Remove rpath + * Sat Mar 21 2020 openEuler Buildteam - 1.1.2-4 - Type: bugfix - ID: NA -- Gitee