[packages/apache-top] ensure python interpreter dependency

glen glen at pld-linux.org
Thu Jun 5 20:31:18 CEST 2014


commit b40be58cf06a6b3955ca5ddce9d5ac6d94bb355d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 5 21:31:00 2014 +0300

    ensure python interpreter dependency

 apache-top.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/apache-top.spec b/apache-top.spec
index 9811c10..b1d1dc0 100644
--- a/apache-top.spec
+++ b/apache-top.spec
@@ -10,7 +10,7 @@ Source0:	http://www.isartor.org/w/images/3/39/Apache-top.py
 URL:		http://www.isartor.org/wiki/Monitor_you_Apache_processes
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
-Requires:	python >= 1:2.7
+BuildRequires:	sed >= 4.0
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,6 +37,7 @@ With apache-top you can get:
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
 install -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name}
+%{__sed} -i -e '1s,^#!.*python,#!%{__python},' $RPM_BUILD_ROOT%{_bindir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-top.git/commitdiff/b40be58cf06a6b3955ca5ddce9d5ac6d94bb355d



More information about the pld-cvs-commit mailing list