Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 26787c40401a727df67cbbe55e8468dc > files > 2

scapy-1.1.1-1mdv2008.0.src.rpm

%define name scapy
%define version 1.1.1
%define release %mkrel 1

Summary: An interactive packet manipulation tool and network scanner
Name: %name
Version: %version
Release: %release
Group: Networking/Other
License: GPL
URL: http://www.secdev.org/projects/scapy
Source: http://www.secdev.org/projects/scapy/files/%name-%version.tar.gz
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/
cp %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1

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

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


%changelog
* Fri Jul 27 2007 Pascal Terjan <pterjan@mandriva.org> 1.1.1-1mdv2008.0
+ Revision: 56244
- 1.1.1
- 1.1.1
- Import scapy



* Mon Mar 20 2006 Lenny Cartier <lenny@mandriva.com> 1.0.4-1mdk
- 1.0.4

* Wed Mar 01 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0.3-1mdk
- New release 1.0.3

* Thu Oct 27 2005 Michael Scherer <misc@mandriva.org> 1.0.1-1mdk
- New release 1.0.1
- mkrel, new url

* 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)