Blob Blame History Raw
Name:           cdpr
Version:        2.4
Release:        6%{?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
* Fri Jan 24 2014 Michael Stahnke <stahnma@fedoraproject.org> - 2.4-6
- Biuld for EPEL 7

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Tue Mar 30 2010 Michael Stahnke <stahnma@fedoraproject.org> - 2.4-1
- New Version

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* 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