File dropwatch.spec of Package dropwatch
#
# spec file for package dropwatch
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dropwatch
Version: 1.4.g7c33d8a
Release: 0
Url: https://fedorahosted.org/dropwatch/
Summary: Kernel dropped packet monitor
License: GPL-2.0
Group: Productivity/Networking/Diagnostic
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libnl3-devel, readline-devel
BuildRequires: binutils-devel, pkgconfig
Requires: readline
%description
dropwatch is an interactive utility for monitoring and recording packets that
are dropped by the kernel
%prep
%setup -q
%build
cd src
export CFLAGS=$RPM_OPT_FLAGS
make
%install
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
%doc COPYING
%changelog