|
|
|
Name: tlp
|
|
|
|
Version: 1.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Advanced power management tool for Linux
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://linrunner.de/en/tlp/tlp.html
|
|
|
|
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz
|
|
|
|
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
|
|
|
|
Source1: 50-tlp.preset
|
|
|
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
#The following requires are not detected:
|
|
|
|
Requires: ethtool
|
|
|
|
Requires: hdparm
|
|
|
|
Requires: iw
|
|
|
|
Requires: redhat-lsb-core
|
|
|
|
Requires: rfkill
|
|
|
|
Requires: systemd
|
|
|
|
Requires: udev
|
|
|
|
Requires: usbutils
|
|
|
|
Requires: pciutils
|
|
|
|
##This should be changed to a rich require when supported, available to s390x:
|
|
|
|
#Requires: kernel-tools
|
|
|
|
|
|
|
|
#Note: Conflicts with laptop-mode-tools
|
|
|
|
#Makes sure laptop_mode isn't being used:
|
|
|
|
Conflicts: %{_sbindir}/laptop_mode
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
TLP brings you the benefits of advanced power management for Linux
|
|
|
|
without the need to understand every technical detail. TLP comes
|
|
|
|
with a default configuration already optimized for battery life.
|
|
|
|
Also an optional install of the smartmontools package enables hard
|
|
|
|
disk SMART data in tlp-stat (smartctl).
|
|
|
|
|
|
|
|
%package rdw
|
|
|
|
Summary: Radio Device Wizard for TLP
|
|
|
|
Requires: NetworkManager
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description rdw
|
|
|
|
Radio Device Wizard for TLP automatically toggles wireless networking
|
|
|
|
based on dock events and the Network Manager connection status.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n TLP-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install TLP_NO_INIT=1 \
|
|
|
|
TLP_NO_PMUTILS=1 TLP_WITH_SYSTEMD=1 \
|
|
|
|
TLP_SYSD=%{_unitdir} TLP_ULIB=%{_udevrulesdir}/..
|
|
|
|
#Install manpages:
|
|
|
|
make install-man DESTDIR=%{buildroot}
|
|
|
|
#Install preset (source 1):
|
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
|
|
|
|
|
|
|
|
%files
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_datadir}/tlp
|
|
|
|
%{_udevrulesdir}/85-tlp.rules
|
|
|
|
%{_udevrulesdir}/../tlp-usb-udev
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_presetdir}/50-tlp.preset
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
|
|
|
%files rdw
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/99tlp-rdw-nm
|
|
|
|
%{_udevrulesdir}/85-tlp-rdw.rules
|
|
|
|
%{_udevrulesdir}/../tlp-rdw-udev
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post tlp.service
|
|
|
|
%systemd_post tlp-sleep.service
|
|
|
|
systemctl mask systemd-rfkill.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun tlp.service
|
|
|
|
%systemd_preun tlp-sleep.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart tlp.service
|
|
|
|
%systemd_postun_with_restart tlp-sleep.service
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
systemctl unmask systemd-rfkill.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post rdw
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun Sep 03 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 1.0-3
|
|
|
|
- Remove kernel-tools require, fixes s390x
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jun 18 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 1.0-1
|
|
|
|
- Update to 1.0
|
|
|
|
|
|
|
|
* Mon Mar 20 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 0.9-5
|
|
|
|
- Cherry-pick upstream fix for mitigate slow shutdown
|
|
|
|
|
|
|
|
* Thu Mar 02 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 0.9-4
|
|
|
|
- Cherry-pick upstream fix for tlp-stat
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 15 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 0.9-2
|
|
|
|
- Fix rfkill service masking
|
|
|
|
|
|
|
|
* Sun Aug 28 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 0.9-1
|
|
|
|
- Update to 0.9
|
|
|
|
|
|
|
|
* Wed Feb 24 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 0.8-3
|
|
|
|
- Fix rpmlint warnings/errors
|
|
|
|
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Aug 22 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 0.8-1
|
|
|
|
- Update to 0.8
|
|
|
|
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon May 11 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 0.7-4
|
|
|
|
- Use workaround to avoid conflict with systemd
|
|
|
|
|
|
|
|
* Mon May 11 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 0.7-3
|
|
|
|
- Fix rfkill conflict
|
|
|
|
|
|
|
|
* Tue Feb 3 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 0.7-2
|
|
|
|
- Fix a typo in the spec file
|
|
|
|
|
|
|
|
* Sat Jan 31 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 0.7-1
|
|
|
|
- New Version
|
|
|
|
|
|
|
|
* Mon Nov 17 2014 Jeremy Newton <alexjnewt at hotmail dot com> - 0.6-3
|
|
|
|
- Wireless-tools removed as a dependency
|
|
|
|
|
|
|
|
* Tue Nov 04 2014 Jeremy Newton <alexjnewt at hotmail dot com> - 0.6-2
|
|
|
|
- Missing Dependancy
|
|
|
|
|
|
|
|
* Mon Oct 27 2014 Jeremy Newton <alexjnewt at hotmail dot com> - 0.6-1
|
|
|
|
- New Upstream Version
|
|
|
|
|
|
|
|
* Mon Apr 21 2014 Jeremy Newton <alexjnewt at hotmail dot com> - 0.5-2
|
|
|
|
- Various tweaking
|
|
|
|
- Move bashcompletion file to silence rpmlint warning
|
|
|
|
|
|
|
|
* Sun Apr 20 2014 Jeremy Newton <alexjnewt at hotmail dot com> - 0.5-1
|
|
|
|
- Initial fedora package
|