]> git.ipfire.org Git - ipfire-3.x.git/blame - lm-sensors/lm-sensors.nm
lm_sensors: Fix build errors.
[ipfire-3.x.git] / lm-sensors / lm-sensors.nm
CommitLineData
4a45d509 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4a45d509
SS
4###############################################################################
5
65221806 6name = lm-sensors
802ea3af 7version = 3.3.1
65221806
SS
8release = 2
9thisapp = lm_sensors-%{version}
4a45d509 10
802ea3af 11groups = Applications/Statistics
65221806 12url = http://www.lm-sensors.org
802ea3af
MT
13license = GPLv2+
14summary = Hardware monitoring tools.
4a45d509 15
802ea3af 16description
65221806 17 The lm_sensors package includes a collection of modules for general SMBus
4a45d509 18 access and hardware monitoring.
802ea3af
MT
19end
20
65221806 21source_dl = http://dl.lm-sensors.org/lm-sensors/releases/
802ea3af
MT
22sources = %{thisapp}.tar.bz2
23
24build
25 requires
26 bison
65221806 27 chrpath
802ea3af 28 flex
65221806 29 rrdtool-devel
802ea3af
MT
30 sysfsutils-devel
31 end
32
33 prepare_cmds
34 sed -e "s/^PREFIX\ :=\ .*/PREFIX=\/usr/g" \
35 -e "s/^MACHINE\ :=\ .*/MACHINE=%{MACHINE}/g" \
36 -e "s/^MANDIR.*/MANDIR=\/usr\/share\/man/g" -i Makefile
37 end
38
65221806
SS
39 common_flags = PREFIX=%{prefix} LIBDIR=%{libdir} MANDIR=%{mandir} \
40 PROG_EXTRA=sensord
41
42 make_build_target += %{common_flags} user
43 make_install_target += %{common_flags} user_install
44
45 install_cmds
46 # Remove RPATH from binary.
47 chrpath --delete %{BUILDROOT}/usr/bin/sensors
802ea3af
MT
48 end
49end
50
51packages
52 package %{name}
65221806
SS
53 requires
54 perl
55 rrdtool
56 end
802ea3af 57 end
1f9bc2f0
MT
58
59 package %{name}-debuginfo
60 template DEBUGINFO
61 end
802ea3af 62end