2019-01-26 22:55:28 +01:00
|
|
|
Name: ngxtop
|
|
|
|
|
Version: 0.2.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Real-time metrics for nginx server
|
|
|
|
|
|
|
|
|
|
Group: System/Monitoring
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/lebinh/ngxtop
|
|
|
|
|
Source0: ngxtop-%{version}.tgz
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
2019-01-26 23:48:43 +01:00
|
|
|
%define pyvers 3
|
2019-01-26 22:55:28 +01:00
|
|
|
|
2019-01-26 23:48:43 +01:00
|
|
|
BuildRequires: python%{pyvers} python%{pyvers}-tabulate
|
|
|
|
|
Requires: python%{pyvers} python%{pyvers}-tabulate
|
2019-01-26 22:55:28 +01:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ngxtop tries to determine the correct location and format of nginx access log file by default,
|
|
|
|
|
so you can just run ngxtop and having a close look at all requests coming to your nginx server.
|
|
|
|
|
But it does not limit you to nginx and the default top view. ngxtop is flexible enough for you
|
|
|
|
|
to configure and change most of its behaviours. You can query for different things,
|
|
|
|
|
specify your log and format, even parse remote Apache common access log with ease.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n ngxtop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2019-01-26 23:48:43 +01:00
|
|
|
#python%{pyvers} setup.py build
|
|
|
|
|
%py3_build
|
2019-01-26 22:55:28 +01:00
|
|
|
|
|
|
|
|
%install
|
2019-01-26 23:48:43 +01:00
|
|
|
#python%{pyvers} setup.py install --no-compile -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
%py3_install
|
2019-01-26 22:55:28 +01:00
|
|
|
|
|
|
|
|
%clean
|
2019-01-26 23:48:43 +01:00
|
|
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
|
|
|
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}
|
2019-01-26 22:55:28 +01:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.rst LICENSE.txt
|
|
|
|
|
%{_bindir}/%name
|
|
|
|
|
%python3_sitelib/%{name}
|
|
|
|
|
%python3_sitelib/%{name}*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-09-04 09:08:36 +02:00
|
|
|
* Sat Jan 26 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
2019-01-26 22:55:28 +01:00
|
|
|
- First release for Fedora 29
|
|
|
|
|
|