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