source: projects/specs/trunk/p/pcapy/pcapy-vl.spec @ 10769

Revision 10769, 2.8 KB checked in by ara_t, 8 years ago (diff)

rebuild with gcc-5.4.0

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