]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - lm-sensors/lm-sensors.nm
Merge remote-tracking branch 'arne_f/autoconf'
[people/arne_f/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
aa7b07b5 8release = 3
65221806 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
aa7b07b5
SS
42 make_build_targets += %{common_flags} user
43 make_install_targets += %{common_flags} user_install
65221806
SS
44
45 install_cmds
aa7b07b5 46 # Remove RPATH from binaries.
65221806 47 chrpath --delete %{BUILDROOT}/usr/bin/sensors
aa7b07b5 48 chrpath --delete %{BUILDROOT}/usr/sbin/sensord
802ea3af
MT
49 end
50end
51
52packages
53 package %{name}
65221806
SS
54 requires
55 perl
56 rrdtool
57 end
802ea3af 58 end
1f9bc2f0
MT
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
802ea3af 63end