perl-Net-Pcap-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Name: perl-Net-Pcap
  2. Version: 0.17
  3. Release: 1%{?_dist_release}
  4. Summary: Interface to pcap(3) LBL packet capture library
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Net-Pcap/
  8. Source0: http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-%{version}.tar.gz
  9. # https://rt.cpan.org/Ticket/Display.html?id=55163
  10. Patch0: net-pcap-0.16-eg-pcapdump.patch
  11. Patch1: perl-Net-Pcap-ccflags.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(Test::More)
  15. BuildRequires: libpcap-devel
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: shaolin
  20. %{?perl_default_filter}
  21. %description
  22. perl-Net-Pcap provides Perl bindings to the LBL pcap(3) library.
  23. %prep
  24. %setup -q -n Net-Pcap-%{version}
  25. %patch0 -p1
  26. %patch1 -p1
  27. for f in README Changes ; do
  28. iconv -f iso-8859-1 -t utf-8 $f >$f.conv && mv -f $f.conv $f
  29. done
  30. chmod 0644 eg/*
  31. sed -i -e '1s~#!perl~#!%{__perl}~' t/*.t
  32. %build
  33. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  34. make %{?_smp_mflags}
  35. %install
  36. rm -rf %{buildroot}
  37. make pure_install DESTDIR=%{buildroot}
  38. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  39. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  40. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  41. chmod -R u+w %{buildroot}/*
  42. %check
  43. make test
  44. %clean
  45. rm -rf %{buildroot}
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc Changes README
  49. %doc eg/ t/
  50. %{_bindir}/*
  51. %{perl_vendorarch}/auto/*
  52. %{perl_vendorarch}/Net
  53. %{_mandir}/man?/*
  54. %changelog
  55. * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.17-1
  56. - updated to 0.17
  57. - updated Patch1
  58. - built with perl 5.16.3
  59. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.16-1
  60. - initial build for Vine Linux
  61. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-13
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  63. * Sat Jun 18 2011 Iain Arnell <iarnell@gmail.com> 0.16-12
  64. - rename patch and clarify that it's EU:MM related, not EU::CB
  65. * Fri Jun 17 2011 Iain Arnell <iarnell@gmail.com> 0.16-11
  66. - patch to workaround ExtUtils::CBuilder behavior change
  67. see http://rt.perl.org/rt3/Public/Bug/Display.html?id=89478
  68. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-10
  69. - Perl mass rebuild
  70. * Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-9
  71. - Perl mass rebuild
  72. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-8
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  74. * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-7
  75. - 661697 rebuild for fixing problems with vendorach/lib
  76. * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-6
  77. - Mass rebuild with perl-5.12.0
  78. * Wed Mar 03 2010 Iain Arnell <iarnell@gmail.com> 0.16-5
  79. - include patch from Jose Pedro Oliveira to fix eg/pcapdump (BZ#569915)
  80. * Tue Mar 02 2010 Iain Arnell <iarnell@gmail.com> 0.16-4
  81. - include examples as documentation
  82. - use perl_default_filter and DESTDIR
  83. - silence rpmlint
  84. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.16-3
  85. - rebuild against perl 5.10.1
  86. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  88. * Wed Apr 01 2009 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 0.16-1
  89. - New upstream release
  90. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  92. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.14-4
  93. - rebuild for new perl
  94. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.14-3
  95. - Autorebuild for GCC 4.3
  96. * Tue May 08 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-2
  97. - Add missing BR
  98. - Chance License to GPL or Artistic
  99. - Update %%files
  100. - Include t/ in %%doc
  101. * Thu May 03 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-1
  102. - Initial build