diff --git a/xfce4-sensors-plugin.spec b/xfce4-sensors-plugin.spec index 1169682fe30b766272473c6952c2b21369aa5564..3ae729093f2370dd3d1e45739aa45f6244627ce5 100644 --- a/xfce4-sensors-plugin.spec +++ b/xfce4-sensors-plugin.spec @@ -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 - 1.4.4-3 +- add library path file to /etc/ld.so.conf.d + * Mon Mar 13 2023 lin zhang - 1.4.4-2 - remove rpath