From fe22a3b6657cca638e7a73eae118f049626c1c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=88=E9=9D=92=E5=B1=B1?= Date: Wed, 22 Mar 2023 15:52:41 +0000 Subject: [PATCH] add library path file to /etc/ld.so.conf.d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 丈青山 --- gvfs.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gvfs.spec b/gvfs.spec index 4997805..360f0be 100644 --- a/gvfs.spec +++ b/gvfs.spec @@ -22,7 +22,7 @@ Name: gvfs Version: 1.50.2 -Release: 3 +Release: 4 Summary: gvfs is a backends for the gio framework in GLib License: GPLv3 and LGPLv2+ and BSD and MPLv2.0 URL: https://wiki.gnome.org/Projects/gvfs @@ -117,6 +117,9 @@ This package containers the headers and other files which are required for devel chrpath -d %{buildroot}%{_libdir}/gio/modules/*.so chrpath -d %{buildroot}%{_libdir}/gvfs/*.so chrpath -d %{buildroot}%{_libexecdir}/gvfs* +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}/gio/modules" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf +echo "%{_libdir}/gvfs" >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf # trashlib is GPLv3, include the license cp -p daemon/trashlib/COPYING COPYING.GPL3 @@ -126,6 +129,10 @@ cp -p daemon/trashlib/COPYING COPYING.GPL3 %post # Reload .mount files: killall -USR1 gvfsd >&/dev/null || : +/sbin/ldconfig + +%postun +/sbin/ldconfig %files %{_datadir}/dbus-1/services/org.gtk.vfs.*.service @@ -148,6 +155,7 @@ killall -USR1 gvfsd >&/dev/null || : %doc NEWS README.md %{_libdir}/gvfs/libgvfscommon.so %{_libdir}/gio/modules/*.so +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/gvfs-client/gvfs/gvfs*.h @@ -161,6 +169,9 @@ killall -USR1 gvfsd >&/dev/null || : %{_mandir}/man1/gvfsd-fuse.1* %changelog +* Wed Mar 22 2023 lin zhang - 1.50.2-4 +- add library path file to /etc/ld.so.conf.d + * Mon Mar 13 2023 lin zhang - 1.50.2-3 - delete invalid line