!44 [sync] PR-43: remove rpath

From: @openeuler-sync-bot 
Reviewed-by: @open-bot 
Signed-off-by: @open-bot
This commit is contained in:
openeuler-ci-bot 2024-01-04 02:28:02 +00:00 committed by Gitee
commit 6d3c2c6ae1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -23,7 +23,7 @@
Name: gvfs
Version: 1.46.2
Release: 4
Release: 5
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
@ -53,6 +53,7 @@ BuildRequires: libgcrypt-devel >= %{libgcrypt_version}
BuildRequires: pkgconfig(libmtp) >= %{libmtp_version}
BuildRequires: pkgconfig(libnfs) >= %{libnfs_version} gdb
BuildRequires: pkgconfig(libbluray)
BuildRequires: chrpath
Requires: glib2%{?_isa} >= %{glib2_version} udisks2 >= %{udisks2_version}
Requires: fuse3 >= %{fuse_version} gsettings-desktop-schemas >= %{gsettings_desktop_schemas_version}
@ -111,6 +112,14 @@ cp -p daemon/trashlib/COPYING COPYING.GPL3
%find_lang gvfs
# Remove rpath
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
%post
# Reload .mount files:
killall -USR1 gvfsd >&/dev/null || :
@ -193,6 +202,7 @@ killall -USR1 gvfsd >&/dev/null || :
%{_userunitdir}/gvfs-gphoto2-volume-monitor.service
%{_userunitdir}/gvfs-mtp-volume-monitor.service
%{_tmpfilesdir}/gvfsd-fuse-tmpfiles.conf
%config(noreplace) /etc/ld.so.conf.d/*
%files client -f gvfs.lang
%license COPYING COPYING.GPL3
@ -218,6 +228,9 @@ killall -USR1 gvfsd >&/dev/null || :
%{_mandir}/man1/gvfsd-fuse.1*
%changelog
* Tue Dec 05 2023 lwg <relpeace@yeah.net> - 1.46.2-5
- Remove rpath
* Thu Oct 26 2023 peijiankang <peijiankang@kylinos.cn> - 1.46.2-4
- Ignore EINVAL for kerberos/ccache login