Name: cdpr Version: 2.2.1 Release: 2%{?dist} Summary: Cisco Discovery Protocol Analyzer Group: Applications/System License: GPLv2+ URL: http://sourceforge.net/projects/cdpr/ Source0: http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.gz 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 * Mon Oct 29 2007 2.2.1-2 - Minor SPEC file cleanup from bug # 355631 * Tue Oct 16 2007 2.2.1-1 - Initial RPM Build