|
|
09bb63d |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
09bb63d |
Name: pcapy
|
|
|
09bb63d |
Version: 0.10.5
|
|
|
fce748e |
Release: 9%{?dist}
|
|
|
09bb63d |
Summary: A Python interface to libpcap
|
|
|
09bb63d |
|
|
|
09bb63d |
Group: Development/Languages
|
|
|
09bb63d |
License: ASL 1.1
|
|
|
09bb63d |
URL: http://oss.coresecurity.com/projects/pcapy.html
|
|
|
09bb63d |
Source0: http://oss.coresecurity.com/repo/pcapy-0.10.5.tar.gz
|
|
|
09bb63d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
|
|
|
09bb63d |
BuildRequires: python-devel, libpcap-devel
|
|
|
09bb63d |
|
|
|
09bb63d |
%description
|
|
|
09bb63d |
Pcapy is a Python extension module that interfaces with the libpcap
|
|
|
09bb63d |
packet capture library. Pcapy enables python scripts to capture packets
|
|
|
09bb63d |
on the network. Pcapy is highly effective when used in conjunction with
|
|
|
09bb63d |
a packet-handling package such as Impacket, which is a collection of
|
|
|
09bb63d |
Python classes for constructing and dissecting network packets.
|
|
|
09bb63d |
|
|
|
09bb63d |
%prep
|
|
|
09bb63d |
%setup -q
|
|
|
09bb63d |
|
|
|
09bb63d |
%build
|
|
|
09bb63d |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
09bb63d |
|
|
|
09bb63d |
#fix encodings
|
|
|
09bb63d |
sed -i 's/\r//' LICENSE
|
|
|
09bb63d |
sed -i 's/\r//' README
|
|
|
09bb63d |
sed -i 's/\r//' pcapy.html
|
|
|
09bb63d |
iconv -f IBM850 -t UTF8 pcapy.html > pcapy.html.tmp
|
|
|
09bb63d |
mv pcapy.html.tmp pcapy.html
|
|
|
09bb63d |
|
|
|
09bb63d |
|
|
|
09bb63d |
%install
|
|
|
09bb63d |
rm -rf %{buildroot}
|
|
|
09bb63d |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
09bb63d |
|
|
|
09bb63d |
rm -rf $RPM_BUILD_ROOT/usr/share/doc/pcapy
|
|
|
09bb63d |
|
|
|
09bb63d |
%clean
|
|
|
09bb63d |
rm -rf $RPM_BUILD_ROOT
|
|
|
09bb63d |
|
|
|
09bb63d |
|
|
|
09bb63d |
%files
|
|
|
09bb63d |
%defattr(-,root,root,-)
|
|
|
09bb63d |
%doc LICENSE README pcapy.html
|
|
|
309236d |
%attr(0755,root,root) %dir %{python_sitearch}/pcapy*
|
|
|
09bb63d |
|
|
|
09bb63d |
%changelog
|
|
|
fce748e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-9
|
|
|
fce748e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
fce748e |
|
|
|
ca0c0cf |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-8
|
|
|
ca0c0cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ca0c0cf |
|
|
|
cbfebfb |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10.5-7
|
|
|
cbfebfb |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
cbfebfb |
|
|
|
92464cc |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-6
|
|
|
92464cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
92464cc |
|
|
|
9906b21 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-5
|
|
|
9906b21 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
9906b21 |
|
|
|
a79ce7d |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.5-4
|
|
|
a79ce7d |
- Rebuild for Python 2.6
|
|
|
a79ce7d |
|
|
|
9baea97 |
* Fri Feb 08 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-3
|
|
|
9baea97 |
- GCC 4.3 rebuild.
|
|
|
9baea97 |
|
|
|
309236d |
* Thu Jan 03 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-2
|
|
|
309236d |
- Fixed file listing.
|
|
|
309236d |
|
|
|
09bb63d |
* Thu Nov 29 2007 Jon Ciesla <limb@jcomserv.net> - 0.10.5-1
|
|
|
09bb63d |
- create.
|