]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = lm-sensors |
802ea3af | 7 | version = 3.3.1 |
aa7b07b5 | 8 | release = 3 |
65221806 | 9 | thisapp = lm_sensors-%{version} |
4a45d509 | 10 | |
802ea3af | 11 | groups = Applications/Statistics |
65221806 | 12 | url = http://www.lm-sensors.org |
802ea3af MT |
13 | license = GPLv2+ |
14 | summary = Hardware monitoring tools. | |
4a45d509 | 15 | |
802ea3af | 16 | description |
65221806 | 17 | The lm_sensors package includes a collection of modules for general SMBus |
4a45d509 | 18 | access and hardware monitoring. |
802ea3af MT |
19 | end |
20 | ||
65221806 | 21 | source_dl = http://dl.lm-sensors.org/lm-sensors/releases/ |
802ea3af MT |
22 | sources = %{thisapp}.tar.bz2 |
23 | ||
24 | build | |
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 |
50 | end | |
51 | ||
52 | packages | |
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 | 63 | end |