sendip/sendip.spec

Name: sendip
Summary: Command line tool to allow sending arbitrary IP packets
Version: 2.5
Release: 2
License: GPL
Group: Applications/Internet
URL: http://www.earth.li/projectpurple/progs/sendip.html
Description: A command line tool to send arbitrary IP packets. It has a large number of command line options to specify the content of every header of a NTP, BGP, RIP, RIPng, TCP, UDP, ICMP, or raw IPv4 or IPv6 packet. It also allows any data to be added to the packet.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Mike Ricketts <mike$earth,li>

Summary: Command line tool to allow sending arbitrary IP packets
Name: sendip
Version: 2.5
Release: 2%{?dist}
License: GPL
Group: Applications/Internet
URL: http://www.earth.li/projectpurple/progs/sendip.html

Source: http://www.earth.li/projectpurple/files/sendip-%{version}.tar.gz
Patch0: sendip-2.5-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
A command line tool to send arbitrary IP packets. It has a large number of
command line options to specify the content of every header of a NTP, BGP,
RIP, RIPng, TCP, UDP, ICMP, or raw IPv4 or IPv6 packet.  It also allows any
data to be added to the packet.

%prep
%setup
%patch0 -p1

%build
%{__make} %{?_smp_mflags} \
	LIBDIR="%{_libdir}/sendip"
#	CFLAGS="%{optflags} -DSENDIP_LIBS=\"%{_libdir}/sendip\""

%install
%{__rm} -rf %{buildroot}
%makeinstall \
	BINDIR="%{buildroot}%{_bindir}" \
	LIBDIR="%{buildroot}%{_libdir}/sendip" \
	MANDIR="%{buildroot}%{_mandir}/man1"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGES LICENSE README TODO VERSION
%doc %{_mandir}/man1/sendip.1*
%{_bindir}/sendip
%{_libdir}/sendip/

%changelog
* Mon May 29 2006 Dag Wieers <dag@wieers.com> - 2.5-1
- Added patch for gcc >= 4.1. (Jochen Schlick)

* Fri Jun 24 2005 Dries Verachtert <dries@ulyssis.org> - 2.5-0
- Update to release 2.5.

* Thu May 01 2003 Dag Wieers <dag@wieers.com> - 2.4-0
- Initial package. (using DAR)