]> git.pld-linux.org Git - packages/tlp.git/commitdiff
- rel 2, don't assume /bin/sh is bash master auto/th/tlp-1.6.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Sep 2023 13:04:59 +0000 (15:04 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Sep 2023 13:04:59 +0000 (15:04 +0200)
tlp.spec

index d24716478e808441e6fb61f6e2f748bebb4e66cb..d38825d9dd6355a947f3c7bd01a7abe7503a6f53 100644 (file)
--- 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 \
This page took 0.108712 seconds and 4 git commands to generate.