summaryrefslogtreecommitdiff
path: root/tlp.spec
diff options
context:
space:
mode:
authorJan Palus2016-01-28 19:02:24 (GMT)
committerJan Palus2016-01-28 19:02:24 (GMT)
commitb42cf3f27249344165358784060174aec9d1c7ff (patch)
treee994abebbf742492e1eeab60eee2f670aee8bce5 /tlp.spec
parent64338d9ea882ece04b20a8e0d2d94029fd84f1cf (diff)
downloadtlp-b42cf3f27249344165358784060174aec9d1c7ff.zip
tlp-b42cf3f27249344165358784060174aec9d1c7ff.tar.gz
package tlp-sleep.serviceauto/th/tlp-0.8-2
- rel 2
Diffstat (limited to 'tlp.spec')
-rw-r--r--tlp.spec9
1 files changed, 5 insertions, 4 deletions
diff --git a/tlp.spec b/tlp.spec
index 7b1f755..1e33175 100644
--- a/tlp.spec
+++ b/tlp.spec
@@ -4,7 +4,7 @@
Summary: Power management tool for Linux
Name: tlp
Version: 0.8
-Release: 1
+Release: 2
License: GPL v2
Group: Base
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
@@ -59,17 +59,17 @@ install -d $RPM_BUILD_ROOT{%{_mandir}/{man1,man8},%{systemdtmpfilesdir},%{system
cp -p man/{bluetooth,run-on-ac,run-on-bat,wifi,wwan}.1 $RPM_BUILD_ROOT%{_mandir}/man1
cp -p man/{tlp,tlp-stat}.8 $RPM_BUILD_ROOT%{_mandir}/man8
-cp -p tlp.service $RPM_BUILD_ROOT%{systemdunitdir}
+cp -p tlp.service tlp-sleep.service $RPM_BUILD_ROOT%{systemdunitdir}
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%systemd_post tlp.service
+%systemd_post tlp.service tlp-sleep.service
%preun
-%systemd_preun tlp.service
+%systemd_preun tlp.service tlp-sleep.service
%postun
%systemd_reload
@@ -106,6 +106,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/tlp-pm/tpacpi-bat
%{systemdtmpfilesdir}/%{name}.conf
%{systemdunitdir}/tlp.service
+%{systemdunitdir}/tlp-sleep.service
%dir %{_varrun}/%{name}
%files -n bash-completion-%{name}