1cb0717
Name:           cdpr
1cb0717
Version:        2.2.1
1cb0717
Release:        2%{?dist}
1cb0717
Summary:        Cisco Discovery Protocol Analyzer
1cb0717
1cb0717
Group:          Applications/System
1cb0717
License:        GPLv2+ 
1cb0717
URL:            http://sourceforge.net/projects/cdpr/ 
1cb0717
Source0:        http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
1cb0717
  
1cb0717
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1cb0717
1cb0717
BuildRequires:  libpcap-devel
1cb0717
1cb0717
%description
1cb0717
cdpr is used to decode a Cisco Disovery Protocol (CDP) packet, by default it 
1cb0717
will report the device ID, the IP Address (of the device), and the port
1cb0717
number that the machine is connected to. 
1cb0717
Optionally it will decode the entire CDP packet.
1cb0717
1cb0717
1cb0717
%prep
1cb0717
%setup -q
1cb0717
1cb0717
sed -i 's/\r//g' COPYING README
1cb0717
1cb0717
%build
1cb0717
make  CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
1cb0717
1cb0717
1cb0717
%install
1cb0717
rm -rf $RPM_BUILD_ROOT
1cb0717
mkdir -p $RPM_BUILD_ROOT%{_bindir}
1cb0717
install -p -m755 %{name} $RPM_BUILD_ROOT%{_bindir}/
1cb0717
1cb0717
1cb0717
%clean
1cb0717
rm -rf $RPM_BUILD_ROOT
1cb0717
1cb0717
1cb0717
%files
1cb0717
%defattr(-,root,root,-)
1cb0717
%doc COPYING  license.txt  README  README.cdprs
1cb0717
%{_bindir}/%{name}
1cb0717
1cb0717
1cb0717
%changelog
1cb0717
* Mon Oct 29 2007 <stahnma@fedoraproject.org>  2.2.1-2
1cb0717
- Minor SPEC file cleanup from bug # 355631
1cb0717
1cb0717
* Tue Oct 16 2007 <stahnma@fedoraproject.org>  2.2.1-1
1cb0717
- Initial RPM Build