54 lines
2.5 KiB
RPMSpec
54 lines
2.5 KiB
RPMSpec
|
Name: vaiopower
|
||
|
Version: 0.5.0
|
||
|
Release: 1mamba
|
||
|
Summary: A tool for power management of Sony Vaio laptop devices
|
||
|
Group: System/Kernel and Hardware
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://vaio-utils.org/power/
|
||
|
Source: http://vaio-utils.org/download/vaiopower-%{version}.tar.xz
|
||
|
License: ISC License
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Vaiopower is a tool for power management of Sony Vaio laptop devices, and it is intended for all the users who strive to extend their battery life as much as possible. Vaiopower provides a higher level interface to the power management options offered by the sony-laptop kernel module. Additionally, prior to powering a device down, vaiopower makes sure that the device has been deregistered from the system correctly, it unloads all corresponding kernel modules and stops relevant system services. After powering a device back up, vaiopower restores its previous state. Vaiopower can be invoked manually, and it is also run automatically during boot when it disables all devices set by user in /etc/vaiopower.conf.
|
||
|
Features:
|
||
|
- Supported devices: sound card, Bluetooth, DVD drive and WWAN adapter
|
||
|
- Includes a pm-utils script that maintains the power state of all devices across suspends and hibernations
|
||
|
- Monitoring udev events generated by killswitch and preserving users' settings
|
||
|
- Automatic powering down of selected devices at boot time configurable through /etc/vaiopower.conf
|
||
|
- When the laptop is placed in a docking station, the Ethernet interface in the station sometimes does not get detected. Vaiopower watches for these issues (via udev) and automatically fixes them.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%make prefix=%{_prefix}
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall prefix=%{_prefix}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/bash_completion.d/vaiopower
|
||
|
%{_sysconfdir}/pm/sleep.d/vaiopower
|
||
|
%{_sysconfdir}/udev/rules.d/85-vaiopower.rules
|
||
|
%config(noreplace) %{_sysconfdir}/vaiopower.conf
|
||
|
%{_sbindir}/vaiopower
|
||
|
%dir %{_datadir}/doc/vaiopower
|
||
|
%{_datadir}/doc/vaiopower/README
|
||
|
%{_mandir}/man5/vaiopower.conf.5.gz
|
||
|
%{_mandir}/man8/vaiopower.8.gz
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Tue Dec 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
|
||
|
- package created by silvan using the webbuild interface
|