File etherdump.spec of Package etherdump
# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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/
Name: etherdump
Version: 2.11
Release: 0
Summary: Extremely Small Packet Sniffer
Source: http://psydev.syw4e.info/new/etherdump/etherdump-%{version}.tar.gz
Patch1: etherdump-fix_pointers.patch
URL: http://etherdump.sourceforge.net
Group: Productivity/Networking/Diagnostic
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel
%description
etherdump is an extremely small packet sniffer. It can be used to dump raw
ethernet frames for parsing (optimally with Ethereal's text2pcap), or for
viewing the network traffic of a few common TCP/IP protocols.
%prep
%setup -q
%patch1
%build
%__make %{?_smp_flags} \
CFLAGS="%{optflags} -Wall" \
DEBUG=1
%install
%__install -D -m0755 etherdump "%{buildroot}%{_bindir}/etherdump"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc CHANGES README
%{_bindir}/etherdump
%changelog