summaryrefslogtreecommitdiff
path: root/python3-scapy.spec
blob: 637bcb3f5749fd92850a70a2ba2ea81bdc7fdf6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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