summaryrefslogtreecommitdiff
path: root/python3-scapy.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-23 13:38:55 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-23 13:38:55 +0000
commit3f50b4faa33c2e7f0e90291ad1e1dfda74c0452f (patch)
treee80d37ea243675d15e7fa836c35948e23e7793fb /python3-scapy.spec
parent38222f77e08c0143560911580bfc89ef4e65dfb5 (diff)
automatic import of python-scapyopeneuler24.03_LTS_SP3
Diffstat (limited to 'python3-scapy.spec')
-rw-r--r--python3-scapy.spec86
1 files changed, 86 insertions, 0 deletions
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<hash> 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 <Python_Bot@openeuler.org> - 2.7.0-1
+- Initial package