summaryrefslogtreecommitdiff
path: root/tlp.spec
diff options
context:
space:
mode:
authorJan Rękorajski2023-09-09 13:04:59 (GMT)
committerJan Rękorajski2023-09-09 13:04:59 (GMT)
commitc1365aa01f50df5506c4b11393ea32b40e2f4611 (patch)
treeb3ead290af1e1cda398b8b99ee4a2a377e2bda68 /tlp.spec
parent4e7ef1214407e727d210659f282b46a074de87f2 (diff)
downloadtlp-c1365aa01f50df5506c4b11393ea32b40e2f4611.zip
tlp-c1365aa01f50df5506c4b11393ea32b40e2f4611.tar.gz
- rel 2, don't assume /bin/sh is bashHEADauto/th/tlp-1.6.0-2master
Diffstat (limited to 'tlp.spec')
-rw-r--r--tlp.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/tlp.spec b/tlp.spec
index d247164..d38825d 100644
--- a/tlp.spec
+++ b/tlp.spec
@@ -4,7 +4,7 @@
Summary: Power management tool for Linux
Name: tlp
Version: 1.6.0
-Release: 1
+Release: 2
License: GPL v2
Group: Base
Source0: https://github.com/linrunner/TLP/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
@@ -40,6 +40,9 @@ This package provides bash-completion for tlp.
%prep
%setup -q -n TLP-%{version}
+# All scripts here are bash scripts
+find ./ -type f -print0 | xargs -0 %{__sed} -i -e '1s,/bin/sh$,%{__bash},'
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install-tlp \