Update to 1.2.1, modernize spec file

epel9
Mystro256 6 years ago
parent cac0139bdc
commit fbe8a20396

1
.gitignore vendored

@ -5,3 +5,4 @@
/0.9.tar.gz
/1.0.tar.gz
/1.1.tar.gz
/tlp-1.2.1.tar.gz

@ -1 +1 @@
SHA512 (1.1.tar.gz) = 3400f2b6c249fd2e1bbbc61f23e3450ff90fabb8dd74f2903ce1f0d07e7ce3d1e61b07295736138d4697235dbee9157d3f32a8d296a649c93f73e03e3555af1e
SHA512 (tlp-1.2.1.tar.gz) = c5cf2c9cb4d5e1e0ad693ab73f7971486671dab9b785a4e121b3550f5b096a8b028bd9d116851db6402ab7ccd9b3fe944d138fd35dc17d826482c59257f12c9f

@ -1,10 +1,10 @@
Name: tlp
Version: 1.1
Release: 3%{?dist}
Version: 1.2.1
Release: 1%{?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
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
Source1: 50-tlp.preset
@ -30,11 +30,19 @@ 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).
TLP is an advanced power management tool for Linux. It comes with a
default configuration already optimized for battery life. At the same
time it is highly customizable to fulfill specific user requirements.
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
Summary: Radio Device Wizard for TLP
@ -43,8 +51,11 @@ 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.
Radio device wizard is an add-on to TLP. It provides event based
switching of:
- Bluetooth, WiFi, WWAN radio devices
- upon network connect/disconnect
- and dock/undock
%prep
%autosetup -n TLP-%{version}
@ -54,10 +65,11 @@ based on dock events and the Network Manager connection status.
%install
%make_install TLP_NO_INIT=1 \
TLP_NO_PMUTILS=1 TLP_WITH_SYSTEMD=1 \
TLP_WITH_SYSTEMD=1 \
TLP_SYSD=%{_unitdir} TLP_ULIB=%{_udevrulesdir}/..
#Install manpages:
make install-man DESTDIR=%{buildroot}
make install-man-rdw DESTDIR=%{buildroot}
#Install preset (source 1):
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
@ -67,23 +79,30 @@ appstream-util validate-relax --nonet \
%files
%config(noreplace) %{_sysconfdir}/default/tlp
%doc COPYING LICENSE README
%license LICENSE
%doc COPYING README.md changelog
%{_bindir}/*
%exclude %{_bindir}/tlp-rdw
%{_sbindir}/*
%{_mandir}/man*/*
%exclude %{_mandir}/man*/tlp-rdw*
%{_datadir}/tlp
%{_udevrulesdir}/85-tlp.rules
%{_udevrulesdir}/../tlp-usb-udev
%{_datadir}/bash-completion/completions/*
%exclude %{_datadir}/bash-completion/completions/tlp-rdw
%{_presetdir}/50-tlp.preset
%{_unitdir}/*.service
%{_datadir}/metainfo/*.metainfo.xml
%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
%{_udevrulesdir}/85-tlp-rdw.rules
%{_udevrulesdir}/../tlp-rdw-udev
%{_datadir}/bash-completion/completions/tlp-rdw
%post
%systemd_post tlp.service
@ -105,6 +124,10 @@ fi
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save