update to 3.6.2 [release 3.6.2-1mamba;Mon Mar 03 2025]
This commit is contained in:
parent
4886ee3837
commit
338126202c
101
lm_sensors.spec
101
lm_sensors.spec
@ -1,15 +1,14 @@
|
||||
%define gitver %(echo %version | tr . -)
|
||||
Name: lm_sensors
|
||||
Version: 3.6.0
|
||||
Version: 3.6.2
|
||||
Release: 1mamba
|
||||
Summary: Tools for monitoring the hardware health of Linux systems
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.lm-sensors.org/
|
||||
Source: https://github.com/lm-sensors/lm-sensors.git/V%{gitver}/lm-sensors-%{version}.tar.bz2
|
||||
#Source: http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-%{version}.tar.bz2
|
||||
URL: https://archive.kernel.org/oldwiki/hwmon.wiki.kernel.org/
|
||||
Source: https://github.com/hramrach/lm-sensors.git/V%{gitver}/lm-sensors-%{version}.tar.bz2
|
||||
Patch0: lm_sensors-3.3.5-kernel-detect-openmamba.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
@ -22,7 +21,6 @@ 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.
|
||||
@ -45,18 +43,29 @@ Obsoletes: lm_sensors-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.
|
||||
This package contains static libraries and header files needed for development.
|
||||
|
||||
%prep
|
||||
%setup -q -n lm-sensors-%{version}
|
||||
%patch0 -p1
|
||||
%patch 0 -p1
|
||||
sed -i 's/EnvironmentFile=/EnvironmentFile=-/' \
|
||||
prog/init/lm_sensors.service \
|
||||
prog/init/sensord.service
|
||||
|
||||
%build
|
||||
%make user PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir}
|
||||
%make user \
|
||||
PREFIX=%{_prefix} \
|
||||
MANDIR=%{_mandir} \
|
||||
LIBDIR=%{_libdir}
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
make user_install MANDIR=%{_mandir} PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
||||
make user_install \
|
||||
MANDIR=%{_mandir} \
|
||||
PREFIX=%{_prefix} \
|
||||
DESTDIR=%{buildroot} \
|
||||
LIBDIR=%{_libdir} \
|
||||
SBINDIR=%{_bindir}
|
||||
|
||||
install -D -m 0644 prog/init/fancontrol.service %{buildroot}%{_unitdir}/fancontrol.service
|
||||
install -D -m 0644 prog/init/lm_sensors.service %{buildroot}%{_unitdir}/lm_sensors.service
|
||||
@ -71,75 +80,32 @@ rm -f %{buildroot}%{_includedir}/linux/*.h
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
%post -n libsensors
|
||||
/sbin/ldconfig
|
||||
:
|
||||
|
||||
%postun -n libsensors
|
||||
/sbin/ldconfig
|
||||
:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl -q stop lm_sensors
|
||||
systemctl -q stop fancontrol
|
||||
systemctl -q stop sensord
|
||||
fi
|
||||
%systemd_preun lm_sensors
|
||||
%systemd_preun fancontrol
|
||||
%systemd_preun sensord
|
||||
:
|
||||
|
||||
%post
|
||||
%systemd_post lm_sensors
|
||||
%systemd_post fancontrol
|
||||
%systemd_post sendord
|
||||
:
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl -q daemon-reload
|
||||
fi
|
||||
:
|
||||
|
||||
%posttrans
|
||||
%ifnarch arm
|
||||
# FIXME: produces a system crash on ARM build platform, disable until better tests are done
|
||||
if [ $1 -ge 1 ]; then
|
||||
# new install or upgrade
|
||||
[ -e /proc/mounts ] && /usr/sbin/sensors-detect >/dev/null << _EOF
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
_EOF
|
||||
systemctl -q daemon-reload
|
||||
if [ -e %{_sysconfdir}/sysconfig/lm_sensors ]; then
|
||||
systemctl -q enable lm_sensors
|
||||
systemctl -q restart lm_sensors
|
||||
fi
|
||||
if [ -e %{_sysconfdir}/fancontrol ]; then
|
||||
systemctl -q enable fancontrol
|
||||
systemctl -q restart fancontrol
|
||||
fi
|
||||
if [ -e %{_sysconfdir}/sysconfig/sensorsd ]; then
|
||||
systemctl -q enable sensord
|
||||
systemctl -q restart sensord
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
%systemd_postun_with_restart lm_sensors
|
||||
%systemd_postun_with_restart fancontrol
|
||||
%systemd_postun_with_restart sensord
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%config(noreplace) %{_sysconfdir}/sensors3.conf
|
||||
#%ghost %{_sysconfdir}/sysconfig/lm_sensors
|
||||
%{_bindir}/*
|
||||
%{_unitdir}/fancontrol.service
|
||||
%{_unitdir}/lm_sensors.service
|
||||
%{_unitdir}/sensord.service
|
||||
%{_datadir}/zsh/site-functions/_sensors*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
@ -159,6 +125,9 @@ fi
|
||||
%doc CHANGES CONTRIBUTORS README
|
||||
|
||||
%changelog
|
||||
* Mon Mar 03 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.2-1mamba
|
||||
- update to 3.6.2
|
||||
|
||||
* Tue Oct 22 2019 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user