File cdpr.spec of Package cdpr

#
# spec file for package cdpr
#
# Copyright (c) 2011 Malcolm J Lewis <malcolmlewis@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:           cdpr
Version:        2.4
Release:        0
Summary:        Cisco Disovery Protocol (CDP) decoder
License:        GPL-2.0
Group:          Productivity/Networking/Diagnostic
Url:            http://sourceforge.net/projects/cdpr/
Source0:        http://surfnet.dl.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz
Patch0:         fix-build.patch
BuildRequires:  libpcap-devel

%description
cdpr is used to decode a Cisco Disovery Protocol (CDP) packet, by
default it will report the device ID, the IP Address (of the device)
and the port number that the machine is connected to. Optionally it
will decode the entire CDP packet.

%prep
%autosetup -p1
find . -type f -exec sed -i 's/\r//' {} \;

%build
make CFLAGS="%{optflags}" %{?_smp_mflags}

%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root)
%doc COPYING license.txt README README.cdprs
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by