]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
lm-sensors: Update to 3.6.0
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 31 Dec 2022 07:54:33 +0000 (07:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 31 Dec 2022 07:54:33 +0000 (07:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lm-sensors/lm-sensors.nm

index 731a947e7d3c492f3bdc8984385addb51a54a912..b49b296e08e5692b2f50a51760f966e8f27a907d 100644 (file)
@@ -4,50 +4,37 @@
 ###############################################################################
 
 name       = lm-sensors
-version    = 3.3.5
-release    = 2
-
-thisapp    = lm_sensors-%{version}
+version    = 3.6.0
+release    = 1
+thisapp    = %{name}-3-6-0
 
 groups     = Applications/Statistics
-url        = http://www.lm-sensors.org
+url        = https://hwmon.wiki.kernel.org
 license    = GPLv2+
-summary    = Hardware monitoring tools.
+summary    = Hardware monitoring tools
 
 description
        The lm_sensors package includes a collection of modules for general SMBus
        access and hardware monitoring.
 end
 
-source_dl  = http://dl.lm-sensors.org/lm-sensors/releases/
-sources    = %{thisapp}.tar.bz2
+source_dl  = https://github.com/lm-sensors/lm-sensors/archive/V3-6-0/
 
 build
        requires
                bison
-               chrpath
                flex
                rrdtool-devel
-               sysfsutils-devel
-       end
-
-       prepare_cmds
-               sed -e "s/^PREFIX\ :=\ .*/PREFIX=\/usr/g" \
-                       -e "s/^MACHINE\ :=\ .*/MACHINE=%{MACHINE}/g" \
-                       -e "s/^MANDIR.*/MANDIR=\/usr\/share\/man/g" -i Makefile
        end
 
-       common_flags = PREFIX=%{prefix} LIBDIR=%{libdir} MANDIR=%{mandir} \
-               PROG_EXTRA=sensord CFLAGS="%{CFLAGS}" EXLDFLAGS="%{LDFLAGS}"
-
-       make_build_targets += %{common_flags} user
-       make_install_targets += %{common_flags} user_install
-
-       install_cmds
-               # Remove RPATH from binaries.
-               chrpath --delete %{BUILDROOT}/usr/bin/sensors
-               chrpath --delete %{BUILDROOT}/usr/sbin/sensord
-       end
+       make_install_targets += \
+               PREFIX=%{prefix} \
+               LIBDIR=%{libdir} \
+               MANDIR=%{mandir} \
+               PROG_EXTRA=sensord \
+               BUILD_STATIC_LIB=0 \
+               CFLAGS="%{CFLAGS}" \
+               EXLDFLAGS="%{LDFLAGS}" 
 end
 
 packages