Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37380942
en ru br
ALT Linux repos
S:0.7-alt1

Group :: Text tools
RPM: logtop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: logtop
Version: 0.6.1
Release: alt3

Summary: Display real time statistics of whatever you want
License: BSD
Group: Text tools
Url: http://julienpalard.github.io/logtop/
# https://github.com/JulienPalard/logtop.git

Source: %name-%version.tar
Patch0: rm-python2-from-makefile.patch

BuildRequires(pre): rpm-build-python3
BuildPreReq: swig libncurses-devel libuthash-devel
BuildPreReq: python3-devel

Requires: lib%name = %EVR


%description
logtop displays real-time count of strings received in standard input.
It's useful for some cases, like getting the IP flooding your server:
$ tail -f /var/log/apache2/access.log | cut -d ' ' -f1 | logtop

%package -n lib%name
Summary: Shared library of %name
Group: System/Libraries

%description -n lib%name
logtop displays real-time count of strings received in standard input.
It's useful for some cases, like getting the IP flooding your server:
$ tail -f /var/log/apache2/access.log | cut -d ' ' -f1 | logtop

This package contains shared library of %name.

%package -n python3-module-%name
Summary: Python module of %name
Group: Development/Python3

%description -n python3-module-%name
logtop displays real-time count of strings received in standard input.
It's useful for some cases, like getting the IP flooding your server:
$ tail -f /var/log/apache2/access.log | cut -d ' ' -f1 | logtop

This package contains Python module of %name.

%prep
%setup
%patch -p1

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
   $(find ./ -name '*.py')

%build
%make_build all

%install
%makeinstall_std LIB_SUFFIX=%_libsuff

sed -i '/^ogtop_swigregister/d' %buildroot%python3_sitelibdir/%name.py

%files
%doc ChangeLog README examples
%_bindir/*
%_man1dir/*

%files -n lib%name
%_libdir/*.so

%files -n python3-module-%name
%python3_sitelibdir/*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin