[packages/git-cola] fix shebangs

glen glen at pld-linux.org
Mon Feb 22 22:26:46 CET 2016


commit c6c7f2da2edd4fd441be6ff7ae2fd1a808a8d9a6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Feb 22 23:23:56 2016 +0200

    fix shebangs

 git-cola.spec | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/git-cola.spec b/git-cola.spec
index b635d6a..a0f0de8 100644
--- a/git-cola.spec
+++ b/git-cola.spec
@@ -10,8 +10,11 @@ URL:		http://git-cola.github.io/
 BuildRequires:	desktop-file-utils
 BuildRequires:	gettext
 BuildRequires:	git-core >= 1.5.2
-BuildRequires:	python-devel
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sed >= 4.0
 BuildRequires:	sip-PyQt4 >= 4.3
 BuildRequires:	sphinx-pdg
 BuildRequires:	xmlto
@@ -29,6 +32,12 @@ interface.
 %prep
 %setup -q
 
+# fix #!/usr/bin/env python -> #!/usr/bin/python:
+%{__sed} -i -e '1s,^#!.*python,#!%{__python},' bin/git-* cola/widgets/*.py extras/*/*.py share/git-cola/bin/git*
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %build
 %{__make}
 %{__make} doc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-cola.git/commitdiff/0f29fba12528ef79ab4f55f298b7edea9c3ae794



More information about the pld-cvs-commit mailing list