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

This commit is contained in:
zhang__3125 2023-03-24 15:33:26 +08:00
parent 5e8ccc954f
commit 7c16ef601a

View File

@ -3,7 +3,7 @@
Name: xfce4-sensors-plugin
Version: 1.4.4
Release: 2
Release: 3
Summary: Hardware sensors plugin for the Xfce panel
License: GPLv2+
URL: https://goodies.xfce.org/projects/panel-plugins/%{name}
@ -53,6 +53,8 @@ Static libraries and header files for the xfce4-sensors-plugin.
chrpath -d %{buildroot}%{_bindir}/xfce4-sensors
chrpath -d %{buildroot}%{_libdir}/xfce4/panel/plugins/libxfce4-sensors-plugin.so
chrpath -d %{buildroot}%{_libdir}/xfce4/modules/libxfce4sensors.so.*
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/xfce4/modules" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%find_lang %{name}
@ -66,6 +68,12 @@ desktop-file-install --vendor "" \
--delete-original \
%{buildroot}%{_datadir}/applications/xfce4-sensors.desktop
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS TODO
@ -78,12 +86,16 @@ desktop-file-install --vendor "" \
%{_datadir}/icons/hicolor/scalable/apps/xfce-sensors.svg
%{_datadir}/xfce4/panel/plugins/xfce4-sensors-plugin.*
%{_mandir}/man1/xfce4-sensors.1.gz
%config(noreplace) /etc/ld.so.conf.d/*
%files devel
%{_libdir}/pkgconfig/libxfce4sensors-1.0.pc
%{_libdir}/xfce4/modules/libxfce4sensors.so
%changelog
* Fri Mar 24 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.4.4-3
- add library path file to /etc/ld.so.conf.d
* Mon Mar 13 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.4.4-2
- remove rpath