|
|
@ -1,10 +1,10 @@
|
|
|
|
Name: tlp
|
|
|
|
Name: tlp
|
|
|
|
Version: 1.1
|
|
|
|
Version: 1.2.1
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Advanced power management tool for Linux
|
|
|
|
Summary: Advanced power management tool for Linux
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://linrunner.de/en/tlp/tlp.html
|
|
|
|
URL: http://linrunner.de/en/tlp/tlp.html
|
|
|
|
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz
|
|
|
|
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
|
|
|
|
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
|
|
|
|
Source1: 50-tlp.preset
|
|
|
|
Source1: 50-tlp.preset
|
|
|
|
|
|
|
|
|
|
|
@ -30,11 +30,19 @@ Conflicts: %{_sbindir}/laptop_mode
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
TLP brings you the benefits of advanced power management for Linux
|
|
|
|
TLP is an advanced power management tool for Linux. It comes with a
|
|
|
|
without the need to understand every technical detail. TLP comes
|
|
|
|
default configuration already optimized for battery life. At the same
|
|
|
|
with a default configuration already optimized for battery life.
|
|
|
|
time it is highly customizable to fulfill specific user requirements.
|
|
|
|
Also an optional install of the smartmontools package enables hard
|
|
|
|
|
|
|
|
disk SMART data in tlp-stat (smartctl).
|
|
|
|
TLP supplies separate settings profiles for AC and battery power and can
|
|
|
|
|
|
|
|
enable or disable Bluetooth, WiFi and WWAN radio devices upon system start-up.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For ThinkPads it provides a unified way to configure charging thresholds and
|
|
|
|
|
|
|
|
re-calibrate the battery for all models which support it (via tp-smapi or
|
|
|
|
|
|
|
|
acpi-call).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TLP is a pure command line tool with automated background tasks, it
|
|
|
|
|
|
|
|
does not contain a GUI.
|
|
|
|
|
|
|
|
|
|
|
|
%package rdw
|
|
|
|
%package rdw
|
|
|
|
Summary: Radio Device Wizard for TLP
|
|
|
|
Summary: Radio Device Wizard for TLP
|
|
|
@ -43,8 +51,11 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description rdw
|
|
|
|
%description rdw
|
|
|
|
Radio Device Wizard for TLP automatically toggles wireless networking
|
|
|
|
Radio device wizard is an add-on to TLP. It provides event based
|
|
|
|
based on dock events and the Network Manager connection status.
|
|
|
|
switching of:
|
|
|
|
|
|
|
|
- Bluetooth, WiFi, WWAN radio devices
|
|
|
|
|
|
|
|
- upon network connect/disconnect
|
|
|
|
|
|
|
|
- and dock/undock
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n TLP-%{version}
|
|
|
|
%autosetup -n TLP-%{version}
|
|
|
@ -54,10 +65,11 @@ based on dock events and the Network Manager connection status.
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install TLP_NO_INIT=1 \
|
|
|
|
%make_install TLP_NO_INIT=1 \
|
|
|
|
TLP_NO_PMUTILS=1 TLP_WITH_SYSTEMD=1 \
|
|
|
|
TLP_WITH_SYSTEMD=1 \
|
|
|
|
TLP_SYSD=%{_unitdir} TLP_ULIB=%{_udevrulesdir}/..
|
|
|
|
TLP_SYSD=%{_unitdir} TLP_ULIB=%{_udevrulesdir}/..
|
|
|
|
#Install manpages:
|
|
|
|
#Install manpages:
|
|
|
|
make install-man DESTDIR=%{buildroot}
|
|
|
|
make install-man DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
make install-man-rdw DESTDIR=%{buildroot}
|
|
|
|
#Install preset (source 1):
|
|
|
|
#Install preset (source 1):
|
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
|
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
|
|
|
|
|
|
|
|
|
|
|
@ -67,23 +79,30 @@ appstream-util validate-relax --nonet \
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc COPYING README.md changelog
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%exclude %{_bindir}/tlp-rdw
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
%exclude %{_mandir}/man*/tlp-rdw*
|
|
|
|
%{_datadir}/tlp
|
|
|
|
%{_datadir}/tlp
|
|
|
|
%{_udevrulesdir}/85-tlp.rules
|
|
|
|
%{_udevrulesdir}/85-tlp.rules
|
|
|
|
%{_udevrulesdir}/../tlp-usb-udev
|
|
|
|
%{_udevrulesdir}/../tlp-usb-udev
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
|
|
|
|
%exclude %{_datadir}/bash-completion/completions/tlp-rdw
|
|
|
|
%{_presetdir}/50-tlp.preset
|
|
|
|
%{_presetdir}/50-tlp.preset
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
%{_datadir}/metainfo/*.metainfo.xml
|
|
|
|
%{_datadir}/metainfo/*.metainfo.xml
|
|
|
|
|
|
|
|
|
|
|
|
%files rdw
|
|
|
|
%files rdw
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%doc COPYING README.md changelog
|
|
|
|
|
|
|
|
%{_bindir}/tlp-rdw
|
|
|
|
|
|
|
|
%{_mandir}/man*/tlp-rdw*
|
|
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/99tlp-rdw-nm
|
|
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/99tlp-rdw-nm
|
|
|
|
%{_udevrulesdir}/85-tlp-rdw.rules
|
|
|
|
%{_udevrulesdir}/85-tlp-rdw.rules
|
|
|
|
%{_udevrulesdir}/../tlp-rdw-udev
|
|
|
|
%{_udevrulesdir}/../tlp-rdw-udev
|
|
|
|
|
|
|
|
%{_datadir}/bash-completion/completions/tlp-rdw
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%systemd_post tlp.service
|
|
|
|
%systemd_post tlp.service
|
|
|
@ -105,6 +124,10 @@ fi
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Mar 18 2019 Jeremy Newton <alexjnewt at hotmail dot com> - 1.2.1-1
|
|
|
|
|
|
|
|
- Update to 1.2.1
|
|
|
|
|
|
|
|
- Modernize SPEC file
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|