]> git.pld-linux.org Git - packages/tlp.git/commitdiff
up to 0.8
authorJan Palus <atler@pld-linux.org>
Sat, 15 Aug 2015 20:26:44 +0000 (22:26 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 15 Aug 2015 20:26:44 +0000 (22:26 +0200)
- pass explicit path to bash completions dir

tlp.spec

index da2da467c8cb53d69141a867bce529d3bf4a7e3f..d7d3f6ce9dd25eb7a25886971863485a116810c8 100644 (file)
--- a/tlp.spec
+++ b/tlp.spec
@@ -3,12 +3,12 @@
 # /etc/init.d/tlp
 Summary:       Power management tool for Linux
 Name:          tlp
-Version:       0.7
+Version:       0.8
 Release:       1
 License:       GPL v2
 Group:         Base
 Source0:       https://github.com/linrunner/TLP/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
-# Source0-md5: 660ee2e507c02f11c62d70ff4ca8329c
+# Source0-md5: d53ef993ce96ccff904d6caad1f14006
 Source1:       %{name}.tmpfiles
 URL:           http://linrunner.de/en/tlp/tlp.html
 Requires:      acpid
@@ -21,6 +21,8 @@ Suggests:     bash-completion-%{name}
 Suggests:      smartmontools
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define bashdir        %{_sysconfdir}/bash_completion.d
+
 %description
 TLP is a power management tool for Linux. It brings you the benefits
 of advanced power management without the need to understand every
@@ -51,7 +53,8 @@ rm -rf $RPM_BUILD_ROOT
        TLP_ULIB=/lib/udev \
        TLP_ACPI=/etc/acpi \
        TLP_NMDSP=/etc/NetworkManager/dispatcher.d \
-       TLP_CONF=/etc/default/tlp
+       TLP_CONF=/etc/default/tlp \
+       TLP_SHCPL=%{bashdir}
 
 install -d $RPM_BUILD_ROOT{%{_mandir}/{man1,man8},%{systemdtmpfilesdir},%{systemdunitdir},%{_varrun}/%{name}}
 cp -p man/{bluetooth,run-on-ac,run-on-bat,wifi,wwan}.1 $RPM_BUILD_ROOT%{_mandir}/man1
@@ -108,4 +111,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n bash-completion-%{name}
 %defattr(644,root,root,755)
-/etc/bash_completion.d/*
+%{bashdir}/*
This page took 0.090145 seconds and 4 git commands to generate.