From dbad48918f111959af78d4cac141133a42ee82f5 Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Aug 28 2016 17:43:01 +0000 Subject: Update to 0.9 --- diff --git a/.gitignore b/.gitignore index 785d4ff..4f64be0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /0.6.tar.gz /0.7.tar.gz /0.8.tar.gz +/0.9.tar.gz diff --git a/sources b/sources index 8236eb5..65eb372 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d53ef993ce96ccff904d6caad1f14006 0.8.tar.gz +952712c5de56e5fcb9a165b1cd8ba4e0 0.9.tar.gz diff --git a/tlp.spec b/tlp.spec index 354d1c3..9ad3477 100644 --- a/tlp.spec +++ b/tlp.spec @@ -1,16 +1,16 @@ Name: tlp -Version: 0.8 -Release: 3%{?dist} +Version: 0.9 +Release: 1%{?dist} Summary: Advanced power management tool for Linux License: GPLv2+ URL: http://linrunner.de/tlp Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz #Provided by Andreas Roederer : Source1: 50-tlp.preset -#Moves lib to share, backported from upstream development: -Patch0: tlp-libdir.patch + BuildRequires: perl-generators BuildRequires: systemd + #The following requires are not detected: Requires: ethtool Requires: hdparm @@ -22,6 +22,7 @@ Requires: udev Requires: usbutils Requires: pciutils Requires: kernel-tools + #Note: Conflicts with laptop-mode-tools #Makes sure laptop_mode isn't being used: Conflicts: %{_sbindir}/laptop_mode @@ -45,26 +46,20 @@ Radio Device Wizard for TLP automatically toggles wireless networking based on dock events and the Network Manager connection status. %prep -%setup -q -n TLP-%{version} -%patch0 -p1 -#This isn't necessary for fc18+, but it makes things more consistent: -sed -i 's|/lib/udev|/usr/lib/udev|g' tlp*rules Makefile +%autosetup -n TLP-%{version} +#This isn't necessary for fc18+, but it makes packaging easier: +sed -i 's|= /lib/|= /usr/lib/|g' Makefile %build make %install make install DESTDIR=%{buildroot} TLP_NO_INIT=1 \ - TLP_NO_PMUTILS=1 + TLP_NO_PMUTILS=1 TLP_WITH_SYSTEMD=1 #Install manpages: -mkdir -p %{buildroot}%{_mandir}/{man1,man8} -install -m 0644 man/*.1 %{buildroot}%{_mandir}/man1 -install -m 0644 man/*.8 %{buildroot}%{_mandir}/man8 +make install-man DESTDIR=%{buildroot} #Install preset (source 1): install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset -#Install systemd services: -install -D -m 644 tlp.service %{buildroot}%{_unitdir}/tlp.service -install -D -m 644 tlp-sleep.service %{buildroot}%{_unitdir}/tlp-sleep.service #THIS IS A WORKAROUND FOR RFKILL! echo '#' > systemd-rfkill@.service install -D -m 644 systemd-rfkill@.service %{buildroot}%{_sysconfdir}/systemd/system/systemd-rfkill@.service @@ -78,14 +73,11 @@ install -D -m 644 systemd-rfkill@.service %{buildroot}%{_sysconfdir}/systemd/sys %{_datadir}/tlp-pm %{_udevrulesdir}/85-tlp.rules %{_udevrulesdir}/../tlp-usb-udev -%{_datadir}/bash-completion/completions/tlp +%{_datadir}/bash-completion/completions/* %{_presetdir}/50-tlp.preset %{_unitdir}/*.service #THIS IS A WORKAROUND FOR RFKILL! %config(noreplace) %{_sysconfdir}/systemd/system/systemd-rfkill@.service -#The following is not supported by fedora's kernel: -%exclude %{_sysconfdir}/acpi/events/thinkpad-radiosw -%exclude %{_sysconfdir}/acpi/thinkpad-radiosw.sh %files rdw %doc COPYING LICENSE README @@ -109,42 +101,45 @@ install -D -m 644 systemd-rfkill@.service %{buildroot}%{_sysconfdir}/systemd/sys /bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || : %changelog -* Wed Feb 24 2016 Jeremy Newton - 0.8-3 +* Sun Aug 28 2016 Jeremy Newton - 0.9-1 +- Update to 0.9 + +* Wed Feb 24 2016 Jeremy Newton - 0.8-3 - Fix rpmlint warnings/errors * Fri Feb 05 2016 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild -* Sat Aug 22 2015 Jeremy Newton - 0.8-1 +* Sat Aug 22 2015 Jeremy Newton - 0.8-1 - Update to 0.8 * Fri Jun 19 2015 Fedora Release Engineering - 0.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -* Mon May 11 2015 Jeremy Newton - 0.7-4 +* Mon May 11 2015 Jeremy Newton - 0.7-4 - Use workaround to avoid conflict with systemd -* Mon May 11 2015 Jeremy Newton - 0.7-3 +* Mon May 11 2015 Jeremy Newton - 0.7-3 - Fix rfkill conflict -* Tue Feb 3 2015 Jeremy Newton - 0.7-2 +* Tue Feb 3 2015 Jeremy Newton - 0.7-2 - Fix a typo in the spec file -* Sat Jan 31 2015 Jeremy Newton - 0.7-1 +* Sat Jan 31 2015 Jeremy Newton - 0.7-1 - New Version -* Mon Nov 17 2014 Jeremy Newton - 0.6-3 +* Mon Nov 17 2014 Jeremy Newton - 0.6-3 - Wireless-tools removed as a dependency -* Tue Nov 04 2014 Jeremy Newton - 0.6-2 +* Tue Nov 04 2014 Jeremy Newton - 0.6-2 - Missing Dependancy -* Mon Oct 27 2014 Jeremy Newton - 0.6-1 +* Mon Oct 27 2014 Jeremy Newton - 0.6-1 - New Upstream Version -* Mon Apr 21 2014 Jeremy Newton - 0.5-2 +* Mon Apr 21 2014 Jeremy Newton - 0.5-2 - Various tweaking - Move bashcompletion file to silence rpmlint warning -* Sun Apr 20 2014 Jeremy Newton - 0.5-1 +* Sun Apr 20 2014 Jeremy Newton - 0.5-1 - Initial fedora package