File usbtop.spec of Package usbtop
#
# spec file for package usbtop
#
# Copyright (c) 2017 Frank Kunz
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: usbtop
Version: 0
Release: 0
Summary: Shows an estimated instantaneous bandwidth on USB buses and devices
License: GPL-3.0
Group: Development/Tools/Other
Url: https://github.com/aguinet/usbtop.git
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: libpcap-devel
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A top-like utility that shows an estimated instantaneous bandwidth on USB buses and devices.
%prep
%setup -q
%build
cmake -DCMAKE_BUILD_TYPE=Release
make VERBOSE=1
%install
install -D -t %{buildroot}%{_bindir} src/usbtop
%files
%defattr(-,root,root)
%{_bindir}/usbtop
%changelog