]> git.pld-linux.org Git - packages/perl-Net-Pcap.git/blame - perl-Net-Pcap.spec
- version 0.16
[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
dbbd30bb 8
11948520 9Summary: Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
cffe53b4 10Summary(pl.UTF-8): Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
f3b80044 11Name: perl-Net-Pcap
60544ca4 12Version: 0.16
13Release: 1
1aad1b18 14# same as perl
15License: GPL v1+ or Artistic
dbbd30bb 16Group: Development/Languages/Perl
41f84d02 17Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
60544ca4 18# Source0-md5: b150d8e0a40137fad2a7df792d80cab4
c12e4096 19BuildRequires: rpm-perlprov >= 4.1-13
ac2cc646 20BuildRequires: perl-devel >= 1:5.8.0
dbbd30bb 21BuildRequires: libpcap-devel
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)
7612ac81 54%doc README
b1bc8b9c 55%attr(755,root,root) %{_bindir}/pcapinfo
c12e4096 56%{perl_vendorarch}/%{pdir}/%{pnam}.pm
57%{perl_vendorarch}/auto/%{pdir}/%{pnam}
dbbd30bb 58%{_mandir}/man3/*
b1bc8b9c 59%{_mandir}/man1/*
This page took 0.100132 seconds and 4 git commands to generate.