|
alexjnewt@hotmail.com |
bfafd3d |
Name: tlp
|
|
Jeremy Newton |
64e3a0b |
Version: 0.7
|
|
Jeremy Newton |
80ab72e |
Release: 3%{?dist}
|
|
alexjnewt@hotmail.com |
bfafd3d |
Summary: Advanced power management tool for Linux
|
|
alexjnewt@hotmail.com |
bfafd3d |
License: GPLv2+
|
|
alexjnewt@hotmail.com |
bfafd3d |
URL: http://linrunner.de/tlp
|
|
alexjnewt@hotmail.com |
bfafd3d |
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
|
|
alexjnewt@hotmail.com |
bfafd3d |
Source1: 50-tlp.preset
|
|
alexjnewt@hotmail.com |
bfafd3d |
BuildRequires: systemd
|
|
alexjnewt@hotmail.com |
bfafd3d |
#The following requires are not detected:
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: ethtool
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: hdparm
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: iw
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: redhat-lsb-core
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: rfkill
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: systemd
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: udev
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: usbutils
|
|
alexjnewt@hotmail.com |
d2e3af3 |
Requires: pciutils
|
|
Jeremy Newton |
64e3a0b |
Requires: kernel-tools
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Conflicts with laptop-mode-tools, note that an official
|
|
alexjnewt@hotmail.com |
bfafd3d |
#package/package name doesn't exist, so this works for now:
|
|
alexjnewt@hotmail.com |
bfafd3d |
Conflicts: %{_sbindir}/laptop_mode
|
|
alexjnewt@hotmail.com |
bfafd3d |
BuildArch: noarch
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%description
|
|
alexjnewt@hotmail.com |
bfafd3d |
TLP brings you the benefits of advanced power management for Linux
|
|
alexjnewt@hotmail.com |
bfafd3d |
without the need to understand every technical detail. TLP comes
|
|
alexjnewt@hotmail.com |
bfafd3d |
with a default configuration already optimized for battery life.
|
|
alexjnewt@hotmail.com |
bfafd3d |
Also an optional install of the smartmontools package enables hard
|
|
alexjnewt@hotmail.com |
bfafd3d |
disk SMART data in tlp-stat (smartctl).
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%package rdw
|
|
alexjnewt@hotmail.com |
bfafd3d |
Summary: Radio Device Wizard for TLP
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: NetworkManager
|
|
alexjnewt@hotmail.com |
bfafd3d |
Requires: %{name} = %{version}-%{release}
|
|
alexjnewt@hotmail.com |
bfafd3d |
BuildArch: noarch
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%description rdw
|
|
alexjnewt@hotmail.com |
bfafd3d |
Radio Device Wizard for TLP automatically toggles wireless networking
|
|
alexjnewt@hotmail.com |
bfafd3d |
based on dock events and the Network Manager connection status.
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%prep
|
|
alexjnewt@hotmail.com |
bfafd3d |
%setup -q -n TLP-%{version}
|
|
alexjnewt@hotmail.com |
bfafd3d |
#This isn't necessary for fc18+, but it makes things more consistent:
|
|
alexjnewt@hotmail.com |
bfafd3d |
sed -i 's|/lib/udev|/usr/lib/udev|g' tlp*rules Makefile
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Bash completion should be in /usr/share
|
|
alexjnewt@hotmail.com |
bfafd3d |
sed -i 's|etc/bash_completion.d|usr/share/bash-completion/completions|g' Makefile
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%build
|
|
alexjnewt@hotmail.com |
bfafd3d |
make
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%install
|
|
alexjnewt@hotmail.com |
bfafd3d |
make install DESTDIR=%{buildroot} TLP_NO_INIT=1 \
|
|
alexjnewt@hotmail.com |
bfafd3d |
TLP_NO_PMUTILS=1
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Install manpages:
|
|
alexjnewt@hotmail.com |
bfafd3d |
mkdir -p %{buildroot}%{_mandir}/{man1,man8}
|
|
alexjnewt@hotmail.com |
bfafd3d |
install -m 0644 man/*.1 %{buildroot}%{_mandir}/man1
|
|
alexjnewt@hotmail.com |
bfafd3d |
install -m 0644 man/*.8 %{buildroot}%{_mandir}/man8
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Install preset (source 1):
|
|
alexjnewt@hotmail.com |
bfafd3d |
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Install systemd services:
|
|
alexjnewt@hotmail.com |
bfafd3d |
install -D -m 644 tlp.service %{buildroot}%{_unitdir}/tlp.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
install -D -m 644 tlp-sleep.service %{buildroot}%{_unitdir}/tlp-sleep.service
|
|
Jeremy Newton |
80ab72e |
ln -sf /dev/null %{buildroot}%{_unitdir}/systemd-rfkill@.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%files
|
|
alexjnewt@hotmail.com |
bfafd3d |
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
alexjnewt@hotmail.com |
bfafd3d |
%doc COPYING LICENSE README
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_bindir}/*
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_sbindir}/*
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_mandir}/man*/*
|
|
alexjnewt@hotmail.com |
bfafd3d |
#Explicit use of lib is required, see "Libexecdir"/"Multilib Exempt Locations":
|
|
alexjnewt@hotmail.com |
bfafd3d |
#https://fedoraproject.org/wiki/Packaging:Guidelines#Filesystem_Layout
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_prefix}/lib/tlp-pm
|
|
Jeremy Newton |
bda8064 |
%{_udevrulesdir}/85-tlp.rules
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_udevrulesdir}/../tlp-usb-udev
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_datadir}/bash-completion/completions/tlp
|
|
Jeremy Newton |
bda8064 |
%{_presetdir}/50-tlp.preset
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_unitdir}/*.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
#The following is not supported by fedora's kernel:
|
|
alexjnewt@hotmail.com |
bfafd3d |
%exclude %{_sysconfdir}/acpi/events/thinkpad-radiosw
|
|
alexjnewt@hotmail.com |
bfafd3d |
%exclude %{_sysconfdir}/acpi/thinkpad-radiosw.sh
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%files rdw
|
|
alexjnewt@hotmail.com |
bfafd3d |
%doc COPYING LICENSE README
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_sysconfdir}/NetworkManager/dispatcher.d/99tlp-rdw-nm
|
|
Jeremy Newton |
97ebcd6 |
%{_udevrulesdir}/85-tlp-rdw.rules
|
|
alexjnewt@hotmail.com |
bfafd3d |
%{_udevrulesdir}/../tlp-rdw-udev
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%post
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_post tlp.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_post tlp-sleep.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%preun
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_preun tlp.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_preun tlp-sleep.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%postun
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_postun_with_restart tlp.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
%systemd_postun_with_restart tlp-sleep.service
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%post rdw
|
|
alexjnewt@hotmail.com |
bfafd3d |
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
%changelog
|
|
Jeremy Newton |
2c271e4 |
* Mon May 11 2015 Jeremy Newton <alexjnewt@hotmail.com> - 0.7-3
|
|
Jeremy Newton |
80ab72e |
- Fix rfkill conflict
|
|
Jeremy Newton |
80ab72e |
|
|
Jeremy Newton |
1446d05 |
* Tue Feb 3 2015 Jeremy Newton <alexjnewt@hotmail.com> - 0.7-2
|
|
Jeremy Newton |
1446d05 |
- Fix a typo in the spec file
|
|
Jeremy Newton |
1446d05 |
|
|
Jeremy Newton |
54132b6 |
* Sat Jan 31 2015 Jeremy Newton <alexjnewt@hotmail.com> - 0.7-1
|
|
Jeremy Newton |
64e3a0b |
- New Version
|
|
Jeremy Newton |
64e3a0b |
|
|
alexjnewt@hotmail.com |
c6d4dca |
* Mon Nov 17 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.6-3
|
|
alexjnewt@hotmail.com |
c6d4dca |
- Wireless-tools removed as a dependency
|
|
alexjnewt@hotmail.com |
c6d4dca |
|
|
alexjnewt@hotmail.com |
d2e3af3 |
* Tue Nov 04 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.6-2
|
|
alexjnewt@hotmail.com |
d2e3af3 |
- Missing Dependancy
|
|
alexjnewt@hotmail.com |
d2e3af3 |
|
|
alexjnewt@hotmail.com |
b7b43df |
* Mon Oct 27 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.6-1
|
|
alexjnewt@hotmail.com |
b7b43df |
- New Upstream Version
|
|
|
ed7cfdc |
|
|
alexjnewt@hotmail.com |
bfafd3d |
* Mon Apr 21 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.5-2
|
|
alexjnewt@hotmail.com |
bfafd3d |
- Various tweaking
|
|
alexjnewt@hotmail.com |
bfafd3d |
- Move bashcompletion file to silence rpmlint warning
|
|
alexjnewt@hotmail.com |
bfafd3d |
|
|
alexjnewt@hotmail.com |
bfafd3d |
* Sun Apr 20 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.5-1
|
|
alexjnewt@hotmail.com |
bfafd3d |
- Initial fedora package
|