%define beta rc3 Summary: TCP/IP packet assembler/analyzer Name: hping2 Version: 2.0.0 Release: %mkrel 0.%{beta}.13 License: GPLv2 Group: Monitoring URL: http://www.hping.org/ Source0: http://www.hping.org/hping%{version}-%{beta}.tar.gz Patch0: 30_bytesex.diff Patch1: hping2.0.0-rc3-hz-250.patch Patch2: hping2-LDFLAGS.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is very similar to the ping(8) unix command, with many extensions. It supports TCP, UDP, ICMP and RAW-IP protocols. A scripting language is under developing. %prep %setup -q -n %{name}-%{beta} %patch0 -p1 -b .endian %patch1 -p1 -b .hz250 %patch2 -p0 -b .LDFLAGS %build %configure2_5x %make CCOPT="%{optflags}" LDFLAGS="%{ldflags}" %install rm -rf %{buildroot} install -d 755 %{buildroot}%{_sbindir} install -d 755 %{buildroot}%{_mandir}/man8 install -m 755 hping2 %{buildroot}%{_sbindir} install -m 644 docs/hping2.8 %{buildroot}%{_mandir}/man8 cd %{buildroot}%{_sbindir} && ln -s hping2 hping %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc BUGS CHANGES COPYING INSTALL KNOWN-BUGS TODO %{_sbindir}/* %{_mandir}/man8/hping2.8.* %changelog * Sat Jan 12 2013 umeabot <umeabot> 2.0.0-0.rc3.13.mga3 + Revision: 353281 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Nov 27 2012 pterjan <pterjan> 2.0.0-0.rc3.12.mga3 + Revision: 322209 - Fix license * Sun Jan 23 2011 pterjan <pterjan> 2.0.0-0.rc3.11.mga1 + Revision: 34997 - imported package hping2