pcapy-vl.spec 2.8 KB

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