3 %bcond_with tests # perform "make test" (requires uid 0)
7 Summary: Perl extension for creating ARP packets
8 Summary(pl.UTF-8): Rozszerzenie Perla do tworzenia pakietów ARP
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tgz
16 # Source0-md5: 1b71124347f23f951b96e86826af8562
17 URL: http://search.cpan.org/dist/Net-ARP/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Net-Pcap
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module can be used to create and send ARP packets and to get the
27 MAC address of an ethernet interface or IP address.
29 %description -l pl.UTF-8
30 Ten moduł może być użyty do tworzenia i wysłania pakietów ARP oraz do
31 uzyskiwania adresu MAC interfejsu sieciowego lub adresu IP.
34 %setup -q -n %{pdir}-%{pnam}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorarch}/Net/*.pm
58 %dir %{perl_vendorarch}/auto/Net/ARP
59 %attr(755,root,root) %{perl_vendorarch}/auto/Net/ARP/ARP.so