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