From d35956c853969b07478bc9702c6d2a32d56691a2 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Sat, 26 Jan 2019 22:55:28 +0100 Subject: [PATCH] New nginx top package for statistics --- fedora/SPECS/ngxtop.spec | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 fedora/SPECS/ngxtop.spec diff --git a/fedora/SPECS/ngxtop.spec b/fedora/SPECS/ngxtop.spec new file mode 100644 index 0000000..82c7c64 --- /dev/null +++ b/fedora/SPECS/ngxtop.spec @@ -0,0 +1,46 @@ +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} + +BuildRequires: python3 +Requires: python3 + +%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 +python3 setup.py build + +%install +python3 setup.py install --root=%{buildroot} + +%clean +[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}/* +[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/* + +%files +%doc README.rst LICENSE.txt +%{_bindir}/%name +%python3_sitelib/%{name} +%python3_sitelib/%{name}*.egg-info + +%changelog +* Sat Jan 26 2019 Daniel Steiner +- First release for Fedora 29 +