Source0: https://github.com/rickysarraf/laptop-mode-tools/archive/%{version}.tar.gz
# Source0-md5: 8b9a2d9db7dd9d0a99b635a1185f292c
Source1: %{name}.init
+Patch0: no-exec-redirection.patch
URL: https://github.com/rickysarraf/laptop-mode-tools
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%prep
%setup -q
+%patch0 -p1
%{__sed} -i -e 's|/usr/bin/env python2|/usr/bin/python|' gui/LMT.py
--- /dev/null
+--- laptop-mode-tools-1.71/usr/sbin/laptop_mode~ 2017-01-12 17:06:23.000000000 +0900
++++ laptop-mode-tools-1.71/usr/sbin/laptop_mode 2017-01-20 04:32:11.006938756 +0900
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /bin/bash
+ #
+ # Script to start or stop laptop_mode, and to control various settings of the
+ # kernel, hardware etc. that influence power consumption.