]> git.pld-linux.org Git - packages/perl-Net-Pcap.git/blame - perl-Net-Pcap.spec
- release 5
[packages/perl-Net-Pcap.git] / perl-Net-Pcap.spec
CommitLineData
1aad1b18 1#
2# Conditional build:
07e146e5 3%bcond_with tests # perform "make test" (require root privilleges)
1aad1b18 4#
dbbd30bb 5%include /usr/lib/rpm/macros.perl
85d61fc0 6%define pdir Net
7%define pnam Pcap
11948520 8Summary: Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
cffe53b4 9Summary(pl.UTF-8): Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
f3b80044 10Name: perl-Net-Pcap
60544ca4 11Version: 0.16
11c1d6fe 12Release: 5
1aad1b18 13# same as perl
14License: GPL v1+ or Artistic
dbbd30bb 15Group: Development/Languages/Perl
6496f3bb 16Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
60544ca4 17# Source0-md5: b150d8e0a40137fad2a7df792d80cab4
6496f3bb 18URL: http://search.cpan.org/dist/Net-Pcap/
dbbd30bb 19BuildRequires: libpcap-devel
6496f3bb
JB
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
dbbd30bb 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The Net::Pcap module is a Perl binding to the LBL pcap(3) packet
bd2f1d73 26capture library.
dbbd30bb 27
275b3202
JR
28%description -l pl.UTF-8
29Moduł Net::Pcap jest dowiązaniem Perla do biblioteki przechwytywania
30pakietów LBL pcap(3).
f2b0db82 31
dbbd30bb 32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
35%build
c12e4096 36%{__perl} Makefile.PL \
6004a8b5 37 INSTALLDIRS=vendor
dbbd30bb 38%{__make}
39
1aad1b18 40%{?with_tests:%{__make} test}
41
dbbd30bb 42%install
43rm -rf $RPM_BUILD_ROOT
dbbd30bb 44
1aad1b18 45%{__make} install \
46 DESTDIR=$RPM_BUILD_ROOT
dbbd30bb 47find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
e8957cec 54%doc Changes README
b1bc8b9c 55%attr(755,root,root) %{_bindir}/pcapinfo
6496f3bb 56%{perl_vendorarch}/Net/Pcap.pm
e8957cec
JB
57%dir %{perl_vendorarch}/auto/Net/Pcap
58%{perl_vendorarch}/auto/Net/Pcap/Pcap.bs
59%attr(755,root,root) %{perl_vendorarch}/auto/Net/Pcap/Pcap.so
60%{_mandir}/man1/pcapinfo.1p*
61%{_mandir}/man3/Net::Pcap.3pm*
This page took 0.119808 seconds and 4 git commands to generate.