add library path file to /etc/ld.so.conf.d

Signed-off-by: 丈青山 <lin.zhang@turbolinux.com.cn>
This commit is contained in:
丈青山 2023-03-24 07:14:16 +00:00 committed by zhang__3125
parent a268f0ddfd
commit ff109a625d

View File

@ -6,7 +6,7 @@
Name: eog
Version: 43.1
Release: 2
Release: 3
Summary: A GNOME Image Viewer
License: GPLv2+
URL: https://wiki.gnome.org/Apps/EyeOfGnome
@ -59,6 +59,8 @@ verify the Usability of the eog package.
chrpath -d %{buildroot}%{_bindir}/eog
chrpath -d %{buildroot}%{_libdir}/eog/plugins/*.so
chrpath -d %{buildroot}%{_libdir}/eog/libeog.so
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/eog" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%find_lang %{name} --with-gnome
@ -66,6 +68,12 @@ chrpath -d %{buildroot}%{_libdir}/eog/libeog.so
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.eog.desktop
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
@ -78,6 +86,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.eog.deskto
%{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml
%{_datadir}/metainfo/eog.appdata.xml
%config(noreplace) /etc/ld.so.conf.d/*
%files devel
%{_includedir}/eog-3.0
@ -87,6 +96,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.eog.deskto
%{_datadir}/installed-tests/
%changelog
* Fri Mar 24 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 43.1-3
- add library path file to /etc/ld.so.conf.d
* Mon Mar 13 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 43.1-2
- remove rpath