From cd49a6f071eef3ebd9b7de68be4cf1d36da2a660 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:27:01 +0100 Subject: [PATCH] move libsensors to its own library subpackage [release 3.4.0-2mamba;Sat Dec 02 2017] --- lm_sensors.spec | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/lm_sensors.spec b/lm_sensors.spec index a9e71a7..3c60e15 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.4.0 -Release: 1mamba +Release: 2mamba Summary: Tools for monitoring the hardware health of Linux systems Group: System/Kernel and Hardware Vendor: openmamba @@ -19,18 +19,29 @@ BuildRequires: libsystemd-devel BuildRequires: libsysfs-devel >= 2.0.0 BuildRequires: flex Requires(post): systemd-core +Requires: libsensors = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description lm_sensors provides tools for monitoring the hardware health of Linux systems containing hardware health monitoring hardware such as the LM78 and LM75. -%package devel +%package -n libsensors +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n libsensors +lm_sensors provides tools for monitoring the hardware health of Linux systems containing hardware health monitoring hardware such as the LM78 and LM75. +This package contains the shared library provided by %{name}. + +%package -n libsensors-devel Group: Development/Libraries Summary: Static libraries and headers for %{name} -Requires: %{name} = %{version} +Requires: libsensors = %{?epoch:%epoch:}%{version}-%{release} Conflicts: lm_sensors2-devel +Provides: lm_sensors-devel +Obsoletes: lm_sensors-devel -%description devel +%description -n libsensors-devel lm_sensors provides tools for monitoring the hardware health of Linux systems containing hardware health monitoring hardware such as the LM78 and LM75. This package contains static libraries and header files need for development. @@ -58,7 +69,11 @@ rm -f %{buildroot}%{_includedir}/linux/*.h %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} -%post +%post -n libsensors +/sbin/ldconfig +: + +%postun -n libsensors /sbin/ldconfig : @@ -71,7 +86,6 @@ fi : %postun -/sbin/ldconfig if [ $1 -eq 0 ]; then systemctl -q daemon-reload fi @@ -127,10 +141,13 @@ fi %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* + +%files -n libsensors +%defattr(-,root,root) %{_libdir}/libsensors.so.* %doc COPYING -%files devel +%files -n libsensors-devel %defattr(-,root,root) %{_libdir}/libsensors.so %{_libdir}/libsensors.a @@ -140,6 +157,9 @@ fi %doc CHANGES CONTRIBUTORS README %changelog +* Sat Dec 02 2017 Silvan Calarco 3.4.0-2mamba +- move libsensors to its own library subpackage + * Sun Jul 05 2015 Automatic Build System 3.4.0-1mamba - automatic update by autodist