Package capstats: Specfile

Name: capstats
Version: 0.31
Release: alt1

Summary: A command-line tool collecting packet statistics

License: BSD-3-Clause
Url: https://github.com/zeek/capstats
Group: Networking/Other

Packager: Andriy Stepanov <stanv@altlinux.ru>

# Source-url: https://github.com/zeek/capstats/archive/v%version.tar.gz
Source: %name-%version.tar

BuildRequires: cmake gcc-c++
BuildRequires: libpcap-devel
BuildRequires: zeek-cmake

%description
capstats is a small tool to collect statistics on the current load of a
network interface, using either libpcap or the native interface for Endace.
It reports statistics per time interval and/or for the tool total run-time.

%prep
%setup
rm -rf cmake/
ln -s %_datadir/zeek-cmake/ cmake

%build
%cmake
%cmake_build

%install
%cmakeinstall_std

%files
%doc CHANGES COPYING README
%_bindir/%name

%changelog
* Tue Jun 07 2022 Vitaly Lipatov <lav@altlinux.ru> 0.31-alt1
- new version 0.31 (with rpmrb script)

* Mon Feb 14 2022 Vitaly Lipatov <lav@altlinux.ru> 0.30-alt1
- new version 0.30 (with rpmrb script)

* Fri Jan 24 2020 Vitaly Lipatov <lav@altlinux.ru> 0.27-alt1
- new version 0.27 (with rpmrb script)

* Thu Dec 12 2019 Grigory Ustinov <grenka@altlinux.org> 0.26-alt2
- NMU: Fix license.

* Sun Jun 09 2019 Vitaly Lipatov <lav@altlinux.ru> 0.26-alt1
- rewrite spec, use cmake directly
- use external cmake scripts used in Zeek

* Fri Dec 26 2014 Andriy Stepanov <stanv@altlinux.ru> 0.21-alt1
- Build for ALTLinux