1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = lm_sensors-%{version}
11 groups = Applications/Statistics
12 url = http://www.lm-sensors.org
14 summary = Hardware monitoring tools.
17 The lm_sensors package includes a collection of modules for general SMBus
18 access and hardware monitoring.
21 source_dl = http://dl.lm-sensors.org/lm-sensors/releases/
22 sources = %{thisapp}.tar.bz2
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
39 common_flags = PREFIX=%{prefix} LIBDIR=%{libdir} MANDIR=%{mandir} \
42 make_build_targets += %{common_flags} user
43 make_install_targets += %{common_flags} user_install
46 # Remove RPATH from binaries.
47 chrpath --delete %{BUILDROOT}/usr/bin/sensors
48 chrpath --delete %{BUILDROOT}/usr/sbin/sensord
64 package %{name}-debuginfo