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 | |
---|
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 | Patch1: perl-Net-Pcap-ccflags.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
16 | BuildRequires: 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 | * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.17-1 |
---|
76 | - updated to 0.17 |
---|
77 | - updated Patch1 |
---|
78 | - built with perl 5.16.3 |
---|
79 | |
---|
80 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.16-1 |
---|
81 | - initial build for Vine Linux |
---|
82 | |
---|
83 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-13 |
---|
84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
85 | |
---|
86 | * Sat Jun 18 2011 Iain Arnell <iarnell@gmail.com> 0.16-12 |
---|
87 | - rename patch and clarify that it's EU:MM related, not EU::CB |
---|
88 | |
---|
89 | * Fri Jun 17 2011 Iain Arnell <iarnell@gmail.com> 0.16-11 |
---|
90 | - patch to workaround ExtUtils::CBuilder behavior change |
---|
91 | see http://rt.perl.org/rt3/Public/Bug/Display.html?id=89478 |
---|
92 | |
---|
93 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-10 |
---|
94 | - Perl mass rebuild |
---|
95 | |
---|
96 | * Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-9 |
---|
97 | - Perl mass rebuild |
---|
98 | |
---|
99 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-8 |
---|
100 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
101 | |
---|
102 | * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-7 |
---|
103 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
104 | |
---|
105 | * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-6 |
---|
106 | - Mass rebuild with perl-5.12.0 |
---|
107 | |
---|
108 | * Wed Mar 03 2010 Iain Arnell <iarnell@gmail.com> 0.16-5 |
---|
109 | - include patch from Jose Pedro Oliveira to fix eg/pcapdump (BZ#569915) |
---|
110 | |
---|
111 | * Tue Mar 02 2010 Iain Arnell <iarnell@gmail.com> 0.16-4 |
---|
112 | - include examples as documentation |
---|
113 | - use perl_default_filter and DESTDIR |
---|
114 | - silence rpmlint |
---|
115 | |
---|
116 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.16-3 |
---|
117 | - rebuild against perl 5.10.1 |
---|
118 | |
---|
119 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2 |
---|
120 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
121 | |
---|
122 | * Wed Apr 01 2009 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 0.16-1 |
---|
123 | - New upstream release |
---|
124 | |
---|
125 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5 |
---|
126 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
127 | |
---|
128 | * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.14-4 |
---|
129 | - rebuild for new perl |
---|
130 | |
---|
131 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.14-3 |
---|
132 | - Autorebuild for GCC 4.3 |
---|
133 | |
---|
134 | * Tue May 08 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-2 |
---|
135 | - Add missing BR |
---|
136 | - Chance License to GPL or Artistic |
---|
137 | - Update %%files |
---|
138 | - Include t/ in %%doc |
---|
139 | * Thu May 03 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-1 |
---|
140 | - Initial build |
---|