]> 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 9fcc3937d6415ec26154076426ca536a843aeaa5..802cc5b2e7e1d6a25a4d8a043d9a8ce4ee2c5d08 100644 (file)
@@ -1,44 +1,44 @@
-Summary:       Povides real-time display of the active processes from a remote apache server
+Summary:       Provides real-time display of the active processes from a remote Apache HTTP server
 Name:          apache-top
 Version:       0.1
 # date when fetched from git
-Release:       0.20140604.1
+Release:       0.20140604.2
 License:       GPL v2
 Group:         Applications/System
-Source0:       https://raw.githubusercontent.com/fr3nd/apache-top/master/%{name}.py
-# Source0-md5: 639f12becdbeb1a915b3d982728bf61b
-URL:           http://www.fr3nd.net/projects/apache-top/
+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)
 
 %description
 apache-top provides real-time display of the active processes from a
-remote apache server. I’ts like the top linux command.
+remote Apache HTTP server. It's like the top Linux command.
 
 With apache-top you can get:
-
-The active apache processes with their associated PID, the status, the
-seconds being active, the CPU usage, the asociated VirtualHost, the
-accessing ip and the request (POST or GET, the file being accessed and
-the used protocol) The server uptime and the last time it was
-restarted The CPU usage Requests by second, Kb by second and the
-average Kb by request Number of active and inactive processes A graph
-with the inactive and active processes and their status
+- The active Apache processes with their associated PID, the status,
+  the seconds being active, the CPU usage, the asociated VirtualHost,
+  the accessing ip and the request (POST or GET, the file being accessed
+  and the used protocol)
+- The server uptime and the last time it was restarted
+- The CPU usage
+- Requests by second, Kb by second and the average Kb by request
+- Number of active and inactive processes
+- A graph with the inactive and active processes and their status
 
 %prep
-%setup -q -c -T
-
-%build
+%setup -qcT
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
-
-install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name}
+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.061064 seconds and 4 git commands to generate.