File dropwatch.spec of Package dropwatch
Name: dropwatch
Summary: Kernel dropped packet monitor
Version: 0.0.1
Release: 0.1
License: GPL-2.0-or-later
Group: Applications/System
URL: https://github.com/pavel-odintsov/drop_watch
Source0: dropwatch-0.0.1.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
BuildRequires: kernel-devel, libnl3-devel, readline-devel
BuildRequires: binutils-devel
Requires: libnl3-200, readline
%description
dropwatch is an utility to interface to the kernel to monitor for dropped
network packets.
%prep
%setup -q
%build
cd src
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m0755 src/dropwatch $RPM_BUILD_ROOT%{_bindir}
install -m0644 doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/*
%doc README.md
%doc COPYING