From b40be58cf06a6b3955ca5ddce9d5ac6d94bb355d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 5 Jun 2014 21:31:00 +0300 Subject: [PATCH] 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 -- 2.44.0