Blob Blame History Raw
Name:           cdpr
Version:        2.3
Release:        1%{?dist}
Summary:        Cisco Discovery Protocol Analyzer

Group:          Applications/System
License:        GPLv2+ 
URL:            http://sourceforge.net/projects/cdpr/ 
Source0:        http://www.monkeymental.com/mmfiles/%{name}-%{version}.tgz
  
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

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
%setup -q

sed -i 's/\r//g' COPYING README

%build
make  CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -p -m755 %{name} $RPM_BUILD_ROOT%{_bindir}/


%clean
rm -rf $RPM_BUILD_ROOT


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


%changelog
* Sat Sep 20 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.3-1
- New version

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.1-3
- Autorebuild for GCC 4.3

* Mon Oct 29 2007 <stahnma@fedoraproject.org>  2.2.1-2
- Minor SPEC file cleanup from bug # 355631

* Tue Oct 16 2007 <stahnma@fedoraproject.org>  2.2.1-1
- Initial RPM Build