3c14cd4
Name:           perl-Net-Pcap
9c59094
Version:        0.16
9c59094
Release:        1%{?dist}
3c14cd4
Summary:        Interface to pcap(3) LBL packet capture library
3c14cd4
3c14cd4
Group:          Development/Libraries
a634a5f
License:        GPL+ or Artistic
3c14cd4
URL:            http://search.cpan.org/dist/Net-Pcap/
3c14cd4
Source0:        http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-%{version}.tar.gz
3c14cd4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3c14cd4
3c14cd4
BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More)
3c14cd4
BuildRequires:  libpcap-devel
3c14cd4
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
3c14cd4
3c14cd4
%description
3c14cd4
perl-Net-Pcap provides Perl bindings to the LBL pcap(3) library.
3c14cd4
3c14cd4
%prep
3c14cd4
%setup -q -n Net-Pcap-%{version}
3c14cd4
3c14cd4
3c14cd4
%build
3c14cd4
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
3c14cd4
make %{?_smp_mflags}
3c14cd4
3c14cd4
3c14cd4
%install
3c14cd4
rm -rf $RPM_BUILD_ROOT
3c14cd4
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
3c14cd4
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
3c14cd4
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
3c14cd4
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
3c14cd4
chmod -R u+w $RPM_BUILD_ROOT/*
3c14cd4
3c14cd4
3c14cd4
%check
3c14cd4
make test
3c14cd4
3c14cd4
3c14cd4
%clean
3c14cd4
rm -rf $RPM_BUILD_ROOT
3c14cd4
3c14cd4
3c14cd4
%files
3c14cd4
%defattr(-,root,root,-)
3c14cd4
%doc Changes README
3c14cd4
%doc t/
3c14cd4
%{_bindir}/*
3c14cd4
%{perl_vendorarch}/auto/*
3c14cd4
%{perl_vendorarch}/Net
3c14cd4
%{_mandir}/man?/*
3c14cd4
3c14cd4
3c14cd4
%changelog
9c59094
* Wed Apr 01 2009 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 0.16-1
9c59094
- New upstream release
9c59094
2a88b89
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5
2a88b89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2a88b89
a634a5f
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.14-4
a634a5f
- rebuild for new perl
a634a5f
df24c03
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.14-3
df24c03
- Autorebuild for GCC 4.3
df24c03
3c14cd4
* Tue May 08 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-2
3c14cd4
- Add missing BR
3c14cd4
- Chance License to GPL or Artistic
3c14cd4
- Update %%files
3c14cd4
- Include t/ in %%doc
3c14cd4
* Thu May 03 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.14-1
3c14cd4
- Initial build