]> git.pld-linux.org Git - packages/perl-Net-Pcap.git/blobdiff - perl-Net-Pcap.spec
- export PERL_SIGNALS_SAFE and PERL_SIGNALS_UNSAFE symbols
[packages/perl-Net-Pcap.git] / perl-Net-Pcap.spec
index b268ce9f7ae0efa8d9b998af06da3b026143c3ca..934b1e3cf11d6151e4028cb83b520689833892ec 100644 (file)
@@ -8,15 +8,17 @@
 Summary:       Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
 Summary(pl.UTF-8):     Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
 Name:          perl-Net-Pcap
-Version:       0.16
-Release:       4
+Version:       0.18
+Release:       1
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: b150d8e0a40137fad2a7df792d80cab4
+# Source0-md5: 18d7298dca72b53271d68646c34b6a39
+Patch0:                libpcap-1.9.patch
+Patch1:                %{name}-signals-const.patch
 URL:           http://search.cpan.org/dist/Net-Pcap/
-BuildRequires: libpcap-devel
+BuildRequires: libpcap-devel >= 1.9.0
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,10 +33,14 @@ pakietów LBL pcap(3).
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__perl} Makefile.PL \
+       CCFLAGS="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
        INSTALLDIRS=vendor
+
 %{__make}
 
 %{?with_tests:%{__make} test}
@@ -55,7 +61,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/pcapinfo
 %{perl_vendorarch}/Net/Pcap.pm
 %dir %{perl_vendorarch}/auto/Net/Pcap
-%{perl_vendorarch}/auto/Net/Pcap/Pcap.bs
 %attr(755,root,root) %{perl_vendorarch}/auto/Net/Pcap/Pcap.so
 %{_mandir}/man1/pcapinfo.1p*
 %{_mandir}/man3/Net::Pcap.3pm*
This page took 0.052744 seconds and 4 git commands to generate.