From 3f50b4faa33c2e7f0e90291ad1e1dfda74c0452f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 23 Sep 2026 13:38:55 +0000 Subject: automatic import of python-scapy --- python3-scapy.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 python3-scapy.spec (limited to 'python3-scapy.spec') diff --git a/python3-scapy.spec b/python3-scapy.spec new file mode 100644 index 0000000..637bcb3 --- /dev/null +++ b/python3-scapy.spec @@ -0,0 +1,86 @@ +# topdir: python-scapy-2.7.0 (created by tar --transform) +# Build system: setuptools.build_meta with setup.py present. +# Uses py3_build / py3_install macros (traditional setuptools path). +# Version note: scapy.VERSION is dynamic (git describe). With .git in the +# tarball, git describe --long returns v2.7.0-0-g which scapy parses as +# "2.7.0.dev0". Setting SCAPY_VERSION env var forces the correct release +# version (Method 0 in scapy._version(), highest priority). + +%global pypi_name scapy + +Name: python-%{pypi_name} +Version: 2.7.0 +Release: 1%{?dist} +Summary: A powerful interactive packet manipulation tool +License: GPL-2.0-only +URL: https://github.com/secdev/scapy +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel + +%description +Scapy is a powerful interactive packet manipulation program. It is able to +forge or decode packets of a wide number of protocols, send them on the +wire, capture them, match requests and replies, and much more. Scapy can +easily handle most classical tasks like scanning, tracerouting, probing, +unit tests, attacks or network discovery. + + +%package -n python3-%{pypi_name} +Summary: A powerful interactive packet manipulation tool +Provides: python-%{pypi_name} +Provides: python3dist(%{pypi_name}) = %{version} +Provides: python3.11dist(%{pypi_name}) = %{version} + +%description -n python3-%{pypi_name} +Scapy is a powerful interactive packet manipulation program. It is able to +forge or decode packets of a wide number of protocols, send them on the +wire, capture them, match requests and replies, and much more. Scapy can +easily handle most classical tasks like scanning, tracerouting, probing, +unit tests, attacks or network discovery. + + +%package help +Summary: Development documents and examples for %{pypi_name} +Requires: python3-%{pypi_name} +Provides: python3-%{pypi_name}-doc + +%description help +Development documents and examples for %{pypi_name}. + + +%prep +%autosetup -n %{name}-%{version} -p1 + + +%build +export SCAPY_VERSION=%{version} +%py3_build + + +%install +export SCAPY_VERSION=%{version} +%py3_install + + +%files -n python3-%{pypi_name} +%license LICENSE +%{python3_sitelib}/scapy/ +%{python3_sitelib}/scapy-%{version}*.egg-info/ +%{_bindir}/scapy +%{_mandir}/man1/scapy.1* + + +%files help +%license LICENSE +%doc README.md +%doc CONTRIBUTING.md + + +%changelog +* Wed Sep 23 2026 Python_Bot - 2.7.0-1 +- Initial package -- cgit v1.2.3