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