Package not working script entry point not found and no stats are shown
This commit is contained in:
@@ -9,9 +9,10 @@ URL: https://github.com/lebinh/ngxtop
|
|||||||
Source0: ngxtop-%{version}.tgz
|
Source0: ngxtop-%{version}.tgz
|
||||||
|
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
%define pyvers 3
|
||||||
|
|
||||||
BuildRequires: python3
|
BuildRequires: python%{pyvers} python%{pyvers}-tabulate
|
||||||
Requires: python3
|
Requires: python%{pyvers} python%{pyvers}-tabulate
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ngxtop tries to determine the correct location and format of nginx access log file by default,
|
ngxtop tries to determine the correct location and format of nginx access log file by default,
|
||||||
@@ -25,14 +26,16 @@ specify your log and format, even parse remote Apache common access log with eas
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build
|
#python%{pyvers} setup.py build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --root=%{buildroot}
|
#python%{pyvers} setup.py install --no-compile -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
%py3_install
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}/*
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.rst LICENSE.txt
|
%doc README.rst LICENSE.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user