# TODO
# - a big trigger warning how to use fancontrol and to init it first
#
-%include /usr/lib/rpm/macros.perl
+%define ver %(echo %{version} | tr . -)
Summary: Hardware health monitoring
Summary(pl.UTF-8): Monitor stanu sprzętu
Summary(pt_BR.UTF-8): Ferramentas para monitoração do hardware
Summary(ru.UTF-8): Утилиты для мониторинга аппаратуры
Summary(uk.UTF-8): Утиліти для моніторингу апаратури
Name: lm_sensors
-Version: 3.3.5
-Release: 1
+Version: 3.5.0
+Release: 2
License: GPL v2+
Group: Applications/System
-Source0: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: da506dedceb41822e64865f6ba34828a
+#Source0Download: https://github.com/lm-sensors/lm-sensors/releases
+Source0: https://github.com/lm-sensors/lm-sensors/archive/V%{ver}/%{name}-%{version}.tar.gz
+# Source0-md5: 37981f5d3a0f649381529cb41c0f1ff3
Source1: sensord.init
Source2: sensord.sysconfig
Source3: fancontrol.init
Source6: lm_sensors.init
Source7: lm_sensors.sysconfig
Source8: sensord.service
-Patch0: %{name}-ppc.patch
-Patch1: %{name}-iconv-in-libc.patch
-Patch2: %{name}-sensors-detect-PATH.patch
-Patch3: %{name}-make.patch
-URL: http://www.lm-sensors.org/
+Patch0: %{name}-iconv-in-libc.patch
+Patch1: %{name}-sensors-detect-PATH.patch
+Patch2: %{name}-make.patch
+URL: https://hwmon.wiki.kernel.org/lm_sensors
BuildRequires: bison
BuildRequires: flex >= 2.5.1
BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: rpmbuild(macros) >= 1.647
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRequires: rrdtool-devel >= 1.2.10
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
Requires: %{name}-libs = %{version}-%{release}
Requires: dev >= 2.9.0-13
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.2.8
Requires: systemd-units >= 38
Requires: uname(release) >= 2.6.5
Obsoletes: lm_sensors-config-default
temperatury są ustawione poprawnie, by nie spalić wnętrza komputera!
%prep
-%setup -q
+%setup -q -n lm-sensors-%{ver}
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
%build
%{__make} user \
%files
%defattr(644,root,root,755)
-%doc CHANGES CONTRIBUTORS README
-%doc doc/{donations,fan-divisors,progs,temperature-sensors,vid}
-%doc prog/daemon
+%doc CHANGES CONTRIBUTORS README doc/{donations,fan-divisors,progs,temperature-sensors,vid} prog/daemon
%attr(755,root,root) %{_bindir}/sensors-conf-convert
%attr(755,root,root) %{_bindir}/sensors
%attr(755,root,root) %{_bindir}/sensors.sh
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libsensors.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libsensors.so.4
+%attr(755,root,root) %ghost %{_libdir}/libsensors.so.5
%files devel
%defattr(644,root,root,755)