diff --git a/python-scapy.spec b/python-scapy.spec new file mode 100644 index 0000000000000000000000000000000000000000..abb1feb8e9a088c82b90d0b3be904b254f901e16 --- /dev/null +++ b/python-scapy.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-scapy +Version: 2.4.4 +Release: 1 +Summary: Scapy: interactive packet manipulation tool +License: GPLv2 +URL: https://scapy.net +Source0: https://files.pythonhosted.org/packages/c6/8f/438d4d0bab4c8e22906a7401dd082b4c0f914daf2bbdc7e7e8390d81a5c3/scapy-2.4.4.tar.gz +BuildArch: noarch + + +%global _description\ +Scapy is a powerful Python-based interactive packet manipulation program and\ +library.\ +It is able to forge or decode packets of a wide number of protocols, send them\ +on the wire, capture them, store or read them using pcap files, match requests\ +and replies, and much more. It is designed to allow fast packet prototyping by\ +using default values that work.\ +It can easily handle most classical tasks like scanning, tracerouting, probing,\ +unit tests, attacks or network discovery (it can replace `hping`, 85% of `nmap`,\ +`arpspoof`, `arp-sk`, `arping`, `tcpdump`, `wireshark`, `p0f`, etc.). It also\ +performs very well at a lot of other specific tasks that most other tools can't\ +handle, like sending invalid frames, injecting your own 802.11 frames, combining\ +techniques (VLAN hopping+ARP cache poisoning, VoIP decoding on WEP protected\ +channel, ...), etc. + +%description %_description + +%package -n python3-scapy +Summary: Scapy: interactive packet manipulation tool +Provides: python-scapy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-scapy %_description + +%package help +Summary: Development documents and examples for scapy +Provides: python3-scapy-doc +%description help %_description + +%prep +%autosetup -n scapy-2.4.4 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-scapy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Sep 04 2020 Python_Bot +- Package Spec generated diff --git a/python-scapy.yaml b/python-scapy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5a2f9ba74a65011799fa9a7156ad89db9f06c618 --- /dev/null +++ b/python-scapy.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: secdev/scapy +tag_prefix: "^v" +separator: "." diff --git a/scapy-2.4.4.tar.gz b/scapy-2.4.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ca311967e5ae0a18770382943bde92327e8e2f30 Binary files /dev/null and b/scapy-2.4.4.tar.gz differ