move libsensors to its own library subpackage [release 3.4.0-2mamba;Sat Dec 02 2017]

This commit is contained in:
Silvan Calarco 2024-01-06 06:27:01 +01:00
parent d489db5840
commit cd49a6f071

View File

@ -1,6 +1,6 @@
Name: lm_sensors Name: lm_sensors
Version: 3.4.0 Version: 3.4.0
Release: 1mamba Release: 2mamba
Summary: Tools for monitoring the hardware health of Linux systems Summary: Tools for monitoring the hardware health of Linux systems
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -19,18 +19,29 @@ BuildRequires: libsystemd-devel
BuildRequires: libsysfs-devel >= 2.0.0 BuildRequires: libsysfs-devel >= 2.0.0
BuildRequires: flex BuildRequires: flex
Requires(post): systemd-core Requires(post): systemd-core
Requires: libsensors = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description %description
lm_sensors provides tools for monitoring the hardware health of Linux systems containing hardware health monitoring hardware such as the LM78 and LM75. 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 Group: Development/Libraries
Summary: Static libraries and headers for %{name} Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version} Requires: libsensors = %{?epoch:%epoch:}%{version}-%{release}
Conflicts: lm_sensors2-devel 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. 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. This package contains static libraries and header files need for development.
@ -58,7 +69,11 @@ rm -f %{buildroot}%{_includedir}/linux/*.h
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post %post -n libsensors
/sbin/ldconfig
:
%postun -n libsensors
/sbin/ldconfig /sbin/ldconfig
: :
@ -71,7 +86,6 @@ fi
: :
%postun %postun
/sbin/ldconfig
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
systemctl -q daemon-reload systemctl -q daemon-reload
fi fi
@ -127,10 +141,13 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man8/* %{_mandir}/man8/*
%files -n libsensors
%defattr(-,root,root)
%{_libdir}/libsensors.so.* %{_libdir}/libsensors.so.*
%doc COPYING %doc COPYING
%files devel %files -n libsensors-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libsensors.so %{_libdir}/libsensors.so
%{_libdir}/libsensors.a %{_libdir}/libsensors.a
@ -140,6 +157,9 @@ fi
%doc CHANGES CONTRIBUTORS README %doc CHANGES CONTRIBUTORS README
%changelog %changelog
* Sat Dec 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.0-2mamba
- move libsensors to its own library subpackage
* Sun Jul 05 2015 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba * Sun Jul 05 2015 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
- automatic update by autodist - automatic update by autodist