]>
Commit | Line | Data |
---|---|---|
b13664e7 | 1 | Summary: Python Packet Capture and Injection Library |
42afa3b5 | 2 | Summary(pl.UTF-8): Biblioteka Pythona do przechwytywania i wstrzykiwania pakietów |
b13664e7 AM |
3 | Name: python-pycap |
4 | Version: 0.1.6 | |
8a7c6988 | 5 | Release: 8 |
b13664e7 AM |
6 | License: BSD |
7 | Group: Libraries/Python | |
8 | Source0: http://dl.sourceforge.net/pycap/pycap-%{version}.tar.gz | |
9 | # Source0-md5: c90bc5382dede1a941e023e7bc27c473 | |
10 | URL: http://pycap.sourceforge.net/ | |
11 | BuildRequires: libnet-devel | |
55dd37d0 | 12 | BuildRequires: libpcap-devel |
16fd5976 | 13 | BuildRequires: python-devel >= 1:2.5 |
d9e2bafa | 14 | BuildRequires: rpm-pythonprov |
8a7c6988 JB |
15 | BuildRequires: rpmbuild(macros) >= 1.714 |
16 | Requires: python-modules >= 1:2.5 | |
b13664e7 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | This package provides the ability to capture packets from, and inject | |
21 | packets onto, network interfaces. It supports commonly found protocols | |
22 | such as Ethernet, PPP, IP, ARP, TCP, UDP, and ICMP. | |
23 | ||
3c56d8d5 JR |
24 | %description -l pl.UTF-8 |
25 | Ten pakiet daje możliwość przechwytywania pakietów oraz wstrzykiwania | |
26 | ich poprzez interfejsy sieciowe. Obsługuje często spotykane protokoły | |
16fd5976 JB |
27 | takie jak Ethernet, PPP, IP, ARP, TCP, UDP i ICMP. |
28 | ||
b13664e7 AM |
29 | %prep |
30 | %setup -q -n pycap-%{version} | |
31 | ||
32 | %build | |
e77a1597 | 33 | %py_build |
b13664e7 AM |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
e77a1597 JR |
37 | |
38 | %py_install | |
8a7c6988 | 39 | |
e77a1597 | 40 | %py_postclean |
b13664e7 | 41 | |
b13664e7 AM |
42 | %clean |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
8a7c6988 | 47 | %doc docs/*.{html,*.css} |
b13664e7 | 48 | %dir %{py_sitedir}/pycap |
b13664e7 AM |
49 | %attr(755,root,root) %{py_sitedir}/pycap/*.so |
50 | %{py_sitedir}/pycap/*.py[co] | |
51 | %dir %{py_sitedir}/pycap/constants | |
52 | %{py_sitedir}/pycap/constants/*.py[co] | |
8a7c6988 | 53 | %{py_sitedir}/pycap-%{version}-py*.egg-info |