]> git.pld-linux.org Git - packages/apache-top.git/blobdiff - apache-top.spec
works with py 2.4 according to homepage
[packages/apache-top.git] / apache-top.spec
index 9811c10b2332cc9c56906e581baa552319c0692d..802cc5b2e7e1d6a25a4d8a043d9a8ce4ee2c5d08 100644 (file)
@@ -8,10 +8,11 @@ Group:                Applications/System
 Source0:       http://www.isartor.org/w/images/3/39/Apache-top.py
 # Source0-md5: 4843daed2cbac7346c31d6cf0fcf6c1b
 URL:           http://www.isartor.org/wiki/Monitor_you_Apache_processes
+BuildRequires: python-modules >= 1:2.4
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.219
-Requires:      python >= 1:2.7
-Requires:      python-modules >= 1:2.7
+BuildRequires: sed >= 4.0
+Requires:      python-modules
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,6 +38,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
This page took 0.0642 seconds and 4 git commands to generate.