Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37764017
en ru br
Репозитории ALT
S:3.6.0-alt3
5.1: 3.1.1-alt1
4.1: 3.1.2-alt0.M41.1
4.0: 3.1.2-alt0.M40.1
www.altlinux.org/Changes

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

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

%def_disable static

Name: lm_sensors3
Version: 3.1.1
Release: alt1

Summary: Hardware Health Monitoring Tools
License: GPL
Group: System/Kernel and hardware
Url: http://www.lm-sensors.org/
Packager: Afanasov Dmitry <ender at altlinux.org>

Source: %name-%version.tar
Source1: lm_sensors.init

Patch1: lm_sensors3-3.1.0-alt-set_limit.patch

# work only on kernel 2.6.x

Requires: kernel > 2.6.10
Requires: libsensors3 = %version-%release
Conflicts: lm_sensors < 3.1.0-alt1

Provides: lm_sensors = %version-%release

BuildRequires: flex bison
BuildRequires: librrd-devel >= 1.2.1

#define _unpackaged_files_terminate_build 1


%package utils
Summary: Hardware Health Monitoring utils
Group: Monitoring
Requires: %name = %version-%release

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

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

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

%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 utils
lm_sensors utils

%description -n libsensors3
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 libsensors3-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 libsensors3-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
%patch1 -p1

%build
%make_build

%install
%set_verify_elf_method strict

%make DESTDIR=%buildroot \
     PREFIX=/usr \
     MANDIR=%_mandir \
     ETCDIR=%_sysconfdir \
     LIBDIR=%_libdir \
     INCLUDEDIR=%_includedir \
     LIBINCLUDEDIR=%_includedir/sensors \
     PROG_EXTRA=sensord \
     EXLDFLAGS= \
     install

install -pD -m755 %SOURCE1 %buildroot%_initrddir/lm_sensors

install -pD -m755 prog/init/sensord.init %buildroot%_datadir/%name/sensord.init
install -pD -m755 prog/init/fancontrol.init %buildroot%_datadir/%name/fancontrol.init

install -pD -m755 prog/init/sysconfig-lm_sensors-convert %buildroot%_datadir/%name/sysconfig-lm_sensors-convert

mkdir -p %buildroot%_datadir/%name
cp -ar prog/tellerstats %buildroot%_datadir/%name

%post
%post_service lm_sensors

%preun
%preun_service lm_sensors

%triggerun -- lm_sensors < 3
if [ $1 -eq 1 ] && [ $2 -eq 0 ] && [ -f /etc/sysconfig/lm_sensors ]; then
   echo "Try to convert /etc/sysconfig/lm_sensors to new format."
   cp /etc/sysconfig/lm_sensors /etc/sysconfig/lm_sensors.old
   if %_datadir/%name/sysconfig-lm_sensors-convert; then
       echo "Convertion OK"
   else
       echo "Convertion FAILED. Run sensors-detect."
   fi
fi
if [ $1 -eq 0 ] && [ $2 -eq 1 ] && [ -f /etc/sysconfig/lm_sensors.old ]; then
   echo "Restore saved /etc/sysconfig/lm_sensors for v2"
   mv /etc/sysconfig/lm_sensors.old /etc/sysconfig/lm_sensors
fi

%files
%doc doc/temperature-sensors doc/progs doc/vid doc/fan-divisors doc/chips doc/donations doc/fancontrol.txt
%config(noreplace) %_sysconfdir/sensors3.conf
%dir %_sysconfdir/sensors.d
%config %_initdir/lm_sensors
%_bindir/sensors
%_bindir/sensors-conf-convert
%_sbindir/sensors-detect
%_man1dir/sensors.1*
%_man5dir/sensors.conf.5*
%_man8dir/sensors-detect.8*
%dir %_datadir/%name
%_datadir/%name/sysconfig-lm_sensors-convert

%files utils
%_sbindir/sensord
%_sbindir/fancontrol
%_sbindir/isadump
%_sbindir/isaset
%_sbindir/pwmconfig
%_datadir/%name
%_man8dir/fancontrol.*
%_man8dir/isadump.*
%_man8dir/isaset.*
%_man8dir/pwmconfig.*
%_man8dir/sensord.*
%exclude %_datadir/%name/sysconfig-lm_sensors-convert

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

%files -n libsensors3-devel
%doc doc/libsensors-API.txt doc/svn doc/developers
%_libdir/*.so
%_includedir/sensors
%_man3dir/*

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

%changelog

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

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