]> git.pld-linux.org Git - packages/lm_sensors.git/blobdiff - lm_sensors.spec
- updated URL and macros version
[packages/lm_sensors.git] / lm_sensors.spec
index 4d72d80d2cb8e3d8ad30a8c05b471847143eb3a2..9bb5bd661d90dea445d07c1d9cf119c19db1adeb 100644 (file)
@@ -1,19 +1,20 @@
 # 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
@@ -22,21 +23,20 @@ Source5:    sensors.sh
 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
@@ -174,11 +174,10 @@ uruchomienie service fancontrol init) oraz upewnić się, że progi
 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 \
@@ -309,9 +308,7 @@ fi
 
 %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
@@ -336,7 +333,7 @@ fi
 %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)
This page took 0.030741 seconds and 4 git commands to generate.