|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: tlp
|
|
|
|
Name: tlp
|
|
|
|
Version: 1.0
|
|
|
|
Version: 1.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
|
|
|
@ -10,6 +10,7 @@ Source1: 50-tlp.preset
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
|
|
|
|
|
|
|
#The following requires are not detected:
|
|
|
|
#The following requires are not detected:
|
|
|
|
Requires: ethtool
|
|
|
|
Requires: ethtool
|
|
|
@ -21,8 +22,7 @@ Requires: systemd
|
|
|
|
Requires: udev
|
|
|
|
Requires: udev
|
|
|
|
Requires: usbutils
|
|
|
|
Requires: usbutils
|
|
|
|
Requires: pciutils
|
|
|
|
Requires: pciutils
|
|
|
|
##This should be changed to a rich require when supported, available to s390x:
|
|
|
|
Recommends: kernel-tools
|
|
|
|
#Requires: kernel-tools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Note: Conflicts with laptop-mode-tools
|
|
|
|
#Note: Conflicts with laptop-mode-tools
|
|
|
|
#Makes sure laptop_mode isn't being used:
|
|
|
|
#Makes sure laptop_mode isn't being used:
|
|
|
@ -61,6 +61,10 @@ make install-man 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
appstream-util validate-relax --nonet \
|
|
|
|
|
|
|
|
%{buildroot}/%{_datadir}/metainfo/*.xml
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/tlp
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%doc COPYING LICENSE README
|
|
|
@ -73,6 +77,7 @@ install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_presetdir}/50-tlp.preset
|
|
|
|
%{_presetdir}/50-tlp.preset
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
|
|
|
%{_datadir}/metainfo/*.metainfo.xml
|
|
|
|
|
|
|
|
|
|
|
|
%files rdw
|
|
|
|
%files rdw
|
|
|
|
%doc COPYING LICENSE README
|
|
|
|
%doc COPYING LICENSE README
|
|
|
@ -100,6 +105,10 @@ fi
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Feb 23 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.1-1
|
|
|
|
|
|
|
|
- Update to 1.1
|
|
|
|
|
|
|
|
- Add weak require for kernel-tools
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Sep 03 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 1.0-3
|
|
|
|
* Sun Sep 03 2017 Jeremy Newton <alexjnewt at hotmail dot com> - 1.0-3
|
|
|
|
- Remove kernel-tools require, fixes s390x
|
|
|
|
- Remove kernel-tools require, fixes s390x
|
|
|
|
|
|
|
|
|
|
|
|