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