move libsensors to its own library subpackage [release 3.4.0-2mamba;Sat Dec 02 2017]
This commit is contained in:
parent
d489db5840
commit
cd49a6f071
@ -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 <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
|
||||
- automatic update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user