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): 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/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
17 # Source0-md5: 751aba46341312664ab63450a0fe549a
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.
30 Ten modu³ mo¿e byæ u¿yty do stworzenia i wys³ania pakietów ARP oraz do
31 pobrania adresu MAC interfejsu sieciowego lub adresu IP.
34 %setup -q -n %{pdir}-%{pnam}
37 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/Net/*.pm
57 %dir %{perl_vendorarch}/auto/Net/ARP
58 %{perl_vendorarch}/auto/Net/ARP/ARP.bs
59 %attr(755,root,root) %{perl_vendorarch}/auto/Net/ARP/ARP.so