Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37812820
en ru br
Репозитории ALT
5.1: 2.10.7-alt1.svn5316
4.1: 2.10.2-alt2
4.0: 2.10.2-alt2
3.0: 2.9.0-alt1.1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: lm_sensors

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# -*- rpm-spec -*-
%def_disable static

Name: lm_sensors
Version: 2.10.2
Release: alt2

Summary: Hardware Health Monitoring Tools
License: GPL
Group: System/Kernel and hardware
Url: http://www.lm-sensors.org/
Packager: lm_sensors Development Team <lm_sensors at packages.altlinux.org>

Summary(ru_RU.KOI8-R): Утилиты отслеживания работы оборудования

Source: http://dl.lm-sensors.org/lm-sensors/releases/%name-%version.tar.bz2

Patch3: %name-2.10.2-alt-modprobe-conf.patch
Patch4: %name-2.10.2-alt-init.patch

Requires: libsensors = %version-%release

# Automatically added by buildreq on Sat Jun 10 2006

BuildRequires: flex libsysfs-devel

%define _unpackaged_files_terminate_build 1

%package -n libsensors
Summary: Shared library for hardware health monitoring tools
Group: System/Libraries

%package -n libsensors-devel
Summary: Development environment for hardware health monitoring tools
Group: Development/C
Requires: libsensors = %version-%release
Provides: %name-devel = %version
Obsoletes: %name-devel

%package -n libsensors-devel-static
Summary: Static library for developing hardware health monitoring tools
Group: Development/C
Requires: libsensors-devel = %version-%release

%description
This package contains a collection of user space tools for general SMBus
access and hardware monitoring.  SMBus, also known as System Management Bus,
is a protocol for communicating through a I2C ('I squared C') bus.  Many modern
mainboards have a System Management Bus.  There are a lot of devices which can
be connected to a SMBus; the most notable are modern memory chips with EEPROM
memories and chips for hardware monitoring.

Most modern mainboards incorporate some form of hardware monitoring chips.
These chips read things like chip temperatures, fan rotation speeds and
voltage levels.  There are quite a few different chips which can be used
by mainboard builders for approximately the same results.

%description -n libsensors
This package contains shared library required for user space applications
for general SMBus access and hardware monitoring.  SMBus, also known as
System Management Bus, is a protocol for communicating through a I2C
('I squared C') bus.  Many modern mainboards have a System Management Bus.
There are a lot of devices which can be connected to a SMBus; the most
notable are modern memory chips with EEPROM memories and chips for hardware
monitoring.

%description -n libsensors-devel
This package contains environment for development of user space applications
for general SMBus access and hardware monitoring.  SMBus, also known as
System Management Bus, is a protocol for communicating through a I2C
('I squared C') bus.  Many modern mainboards have a System Management Bus.
There are a lot of devices which can be connected to a SMBus; the most
notable are modern memory chips with EEPROM memories and chips for hardware
monitoring.

%description -n libsensors-devel-static
This package contains static library for development of statically linked
user space applications for general SMBus access and hardware monitoring.

%prep
%setup -q
%patch3 -p1
%patch4 -p1

find -type f -name \*.orig -print -delete

echo '# Kernel parts disabled' >kernel/Module.mk
echo '# Kernel parts disabled' >kernel/busses/Module.mk
echo 'KERNELCHIPSDIR = kernel/chips' >kernel/chips/Module.mk

%build
make user \
LINUX=/var/empty \
I2C_HEADERS=/var/empty \
SYSFS_SUPPORT=1 \
CFLAGS="$RPM_OPT_FLAGS" \
EXLDFLAGS= \
LIBICONV= \
PREFIX=%prefix \
ETCDIR=%_sysconfdir \
LIBDIR=%_libdir

%install
%set_verify_elf_method strict

mkdir -p %buildroot%_datadir/%name

%make_install user_install \
LINUX=/var/empty \
I2C_HEADERS=/var/empty \
DESTDIR=%buildroot \
PREFIX=%prefix \
ETCDIR=%_sysconfdir \
MANDIR=%_mandir \
LIBDIR=%_libdir

for prog in \
config/grab_busses.sh \
daemon/healthd.sh \
hotplug/unhide_ICH_SMBus \
init/fancontrol.init \
matorb/displayit.pl \
maxilife/sysinfo.sh \
maxilife/writelcd.sh \
mkdev/mkdev.sh
do
install -p prog/"$prog" %buildroot%_datadir/%name/
done

install -pD prog/init/%name.init %buildroot%_initdir/%name

# Relocate linux headers

mv %buildroot%_includedir/linux %buildroot%_includedir/sensors/

%post -n libsensors -p %post_ldconfig
%postun -n libsensors -p %postun_ldconfig

%post
%post_service lm_sensors

%preun
%preun_service lm_sensors

%files
%config(noreplace) %_sysconfdir/sensors.conf
%config %_initdir/%name
%_bindir/*
%_sbindir/*
%_datadir/%name
%_man1dir/*
%_man5dir/*
%_man8dir/*
%doc BACKGROUND BUGS CHANGES CONTRIBUTORS INSTALL README* TODO doc/*
%doc etc/sensors.conf.eg
%doc prog/tellerstats

%files -n libsensors
%_libdir/*.so.*
%exclude %_libdir/*.a

%files -n libsensors-devel
%_libdir/*.so
%_includedir/sensors
%_man3dir/*

%if_enabled static
%files -n libsensors-devel-static
%_libdir/*.a
%endif #static

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin