1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
2 | Name: pcapy |
---|
3 | Version: 0.10.5 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Summary: A Python interface to libpcap |
---|
6 | Summary(ja): libpcap の python インタフェース |
---|
7 | |
---|
8 | Group: Development/Languages |
---|
9 | License: ASL 1.1 |
---|
10 | URL: http://oss.coresecurity.com/projects/pcapy.html |
---|
11 | Source0: http://oss.coresecurity.com/repo/pcapy-0.10.5.tar.gz |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | BuildRequires: python-devel, libpcap-devel |
---|
14 | |
---|
15 | %description |
---|
16 | Pcapy is a Python extension module that interfaces with the libpcap |
---|
17 | packet capture library. Pcapy enables python scripts to capture packets |
---|
18 | on the network. Pcapy is highly effective when used in conjunction with |
---|
19 | a packet-handling package such as Impacket, which is a collection of |
---|
20 | Python classes for constructing and dissecting network packets. |
---|
21 | |
---|
22 | %prep |
---|
23 | %setup -q |
---|
24 | |
---|
25 | %build |
---|
26 | CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
---|
27 | |
---|
28 | #fix encodings |
---|
29 | sed -i 's/\r//' LICENSE |
---|
30 | sed -i 's/\r//' README |
---|
31 | sed -i 's/\r//' pcapy.html |
---|
32 | iconv -f IBM850 -t UTF8 pcapy.html > pcapy.html.tmp |
---|
33 | mv pcapy.html.tmp pcapy.html |
---|
34 | |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf %{buildroot} |
---|
38 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
39 | |
---|
40 | rm -rf $RPM_BUILD_ROOT/usr/share/doc/pcapy |
---|
41 | |
---|
42 | %clean |
---|
43 | rm -rf $RPM_BUILD_ROOT |
---|
44 | |
---|
45 | |
---|
46 | %files |
---|
47 | %defattr(-,root,root,-) |
---|
48 | %doc LICENSE README pcapy.html |
---|
49 | %attr(0755,root,root) %{python_sitearch}/* |
---|
50 | |
---|
51 | %changelog |
---|
52 | * Thu Apr 05 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.5-1 |
---|
53 | - initial build for Vine Linux |
---|
54 | |
---|
55 | * Tue Jan 17 2012 Jon Ciesla <limburgher@gmail.com> - 0.10.5-10 |
---|
56 | - Fixed file listing. |
---|
57 | |
---|
58 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-9 |
---|
59 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
60 | |
---|
61 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-8 |
---|
62 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
63 | |
---|
64 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10.5-7 |
---|
65 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
66 | |
---|
67 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-6 |
---|
68 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
69 | |
---|
70 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-5 |
---|
71 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
72 | |
---|
73 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.5-4 |
---|
74 | - Rebuild for Python 2.6 |
---|
75 | |
---|
76 | * Fri Feb 08 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-3 |
---|
77 | - GCC 4.3 rebuild. |
---|
78 | |
---|
79 | * Thu Jan 03 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-2 |
---|
80 | - Fixed file listing. |
---|
81 | |
---|
82 | * Thu Nov 29 2007 Jon Ciesla <limb@jcomserv.net> - 0.10.5-1 |
---|
83 | - create. |
---|