!12 add library path file to /etc/ld.so.conf.d
From: @zhang__3125 Reviewed-by: @dwl301 Signed-off-by: @dwl301
This commit is contained in:
commit
d62cbecd96
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: xfce4-sensors-plugin
|
Name: xfce4-sensors-plugin
|
||||||
Version: 1.4.4
|
Version: 1.4.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Hardware sensors plugin for the Xfce panel
|
Summary: Hardware sensors plugin for the Xfce panel
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://goodies.xfce.org/projects/panel-plugins/%{name}
|
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}%{_bindir}/xfce4-sensors
|
||||||
chrpath -d %{buildroot}%{_libdir}/xfce4/panel/plugins/libxfce4-sensors-plugin.so
|
chrpath -d %{buildroot}%{_libdir}/xfce4/panel/plugins/libxfce4-sensors-plugin.so
|
||||||
chrpath -d %{buildroot}%{_libdir}/xfce4/modules/libxfce4sensors.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}
|
%find_lang %{name}
|
||||||
|
|
||||||
@ -66,6 +68,12 @@ desktop-file-install --vendor "" \
|
|||||||
--delete-original \
|
--delete-original \
|
||||||
%{buildroot}%{_datadir}/applications/xfce4-sensors.desktop
|
%{buildroot}%{_datadir}/applications/xfce4-sensors.desktop
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS TODO
|
%doc AUTHORS ChangeLog NEWS TODO
|
||||||
@ -78,12 +86,16 @@ desktop-file-install --vendor "" \
|
|||||||
%{_datadir}/icons/hicolor/scalable/apps/xfce-sensors.svg
|
%{_datadir}/icons/hicolor/scalable/apps/xfce-sensors.svg
|
||||||
%{_datadir}/xfce4/panel/plugins/xfce4-sensors-plugin.*
|
%{_datadir}/xfce4/panel/plugins/xfce4-sensors-plugin.*
|
||||||
%{_mandir}/man1/xfce4-sensors.1.gz
|
%{_mandir}/man1/xfce4-sensors.1.gz
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/pkgconfig/libxfce4sensors-1.0.pc
|
%{_libdir}/pkgconfig/libxfce4sensors-1.0.pc
|
||||||
%{_libdir}/xfce4/modules/libxfce4sensors.so
|
%{_libdir}/xfce4/modules/libxfce4sensors.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Mar 13 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.4.4-2
|
||||||
- remove rpath
|
- remove rpath
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user