Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 78671d6ad8326fdc9839fa4aac7f0480 > files > 2

scapy-0.9.17-2mdk.src.rpm

%define name scapy
%define version 0.9.17
%define release 2mdk

Summary: An interactive packet manipulation tool and network scanner
Name: %name
Version: %version
Release: %release
Group: Networking/Other
License: GPL
URL: http://www.cartel-securite.fr/pbiondi/scapy.html
Source: http://www.cartel-securite.fr/pbiondi//python/%name-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArch: noarch
Requires: python >= 2.2 nmap

%description
Scapy is a powerful interactive packet manipulation tool, packet generator,
network scanner, network discovery, packet sniffer, etc. It can for the
moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump,
tethereal, p0f, ....

Scapy uses the python interpreter as a command board. That means that you
can use directly python language (assign variables, use loops, define
functions, etc.) If you give a file as parameter when you run scapy, your
session (variables, functions, intances, ...) will be saved when you leave
the interpretor, and restored the next time you launch scapy. 

%prep

%setup -q

%build

%install
mkdir -p %{buildroot}/%{_libdir}/python%pyver/
install -m 755 scapy.py %{buildroot}/%{_libdir}/python%pyver/
#ln -f %{buildroot}%{_bindir}/scapy.py %{buildroot}%{_libdir}/python%pyver/scapy.py
mkdir -p %{buildroot}%{_bindir}/

echo -e "#!/bin/bash\ncd %{_libdir}/python%pyver/\n./scapy.py" > %{buildroot}%{_bindir}/scapy
chmod 0755  %{buildroot}%{_bindir}/scapy
mkdir -p %{buildroot}/%{_mandir}/man1/
zcat %{name}.1.gz > %{buildroot}/%{_mandir}/man1/%{name}.1

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

%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/*
%{_libdir}/python%pyver/*
%{_mandir}/man1/*

%changelog
* Tue Jan 11 2005 Michael Scherer <misc@mandrake.org> 0.9.17-2mdk 
- fix import of module when binary us used directly ( thanks blino for bugreport )

* Sat Aug 28 2004 Michael Scherer <misc@mandrake.org> 0.9.17-1mdk
- New release 0.9.17
- rpmbuildupdate aware

* Thu Mar 18 2004 Michael Scherer <misc@mandrake.org> 0.9.16-1mdk
- 0.9.16
 
* Tue Aug 05 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.14-2mdk
- nmap as a dependency

* Fri Aug 01 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.14-1mdk
- mandrakized original package from Dag Wieers <dag@wieers.com>

* Sat May 17 2003 Dag Wieers <dag@wieers.com> - 0.9.13-0.beta
- Initial package. (using DAR)