Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37509719
en ru br
Репозитории ALT

Группа :: Система/Основа
Пакет: laptop-mode-tools

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

Name:  laptop-mode-tools
Version:  1.74
Release:  alt2

Summary:  Tools for power savings based on battery/AC status
License:  GPL-2.0+
Group:    System/Base
URL:      http://rickysarraf.github.io/laptop-mode-tools/
Packager: Andrey Cherepanov <cas at altlinux.org>

Source:   %name-%version.tar
# VCS:    https://github.com/rickysarraf/laptop-mode-tools
Patch1:   support-condrestart-in-initscript.patch

BuildArch: noarch

BuildRequires(pre): rpm-build-python3

%filter_from_requires \,^/lib/udev/hotplug\.functions,d;\,^systemd$,d
%add_python3_path %_datadir/%name

%description
Laptop mode is a Linux kernel feature that allows your laptop to save
considerable power, by allowing the hard drive to spin down for longer
periods of time. This package contains the userland scripts that are
needed to enable laptop mode. It includes support for automatically
enabling laptop mode when the computer is working on batteries. In
addition, it provides a set of modules which allow you to apply
various other power savings.

%prep
%setup -q
%patch1 -p1

%build
DESTDIR=%buildroot INIT_D=%buildroot%_initdir MAN_D=%_mandir INSTALL=install TMPFILES_D=%_tmpfilesdir ./install.sh

%preun
%preun_service laptop-mode

%post
%post_service laptop-mode

%files
%doc COPYING Documentation/*.txt README.md
%_sbindir/*
%config %_sysconfdir/acpi/actions/lm_*.sh
%config %_sysconfdir/acpi/events/lm_*
%config(noreplace) %_sysconfdir/laptop-mode/
%config %_initdir/laptop-mode
%_unitdir/*.service
%_unitdir/*.timer
/lib/udev/lmt-udev
/lib/udev/rules.d/99-laptop-mode.rules
%_sysconfdir/apm/event.d/*
%_sysconfdir/power/scripts.d/*
%_sysconfdir/power/event.d/*
%_datadir/laptop-mode-tools
%_libexecdir/pm-utils/sleep.d/*
%_tmpfilesdir/laptop-mode.conf
%_datadir/polkit-1/actions/org.linux.lmt.gui.policy
%_man8dir/*
%_desktopdir/%name.desktop
%_pixmapsdir/%name.svg

%changelog

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

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