]>
Commit | Line | Data |
---|---|---|
c062e042 AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (requires uid 0) | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Net | |
7 | %define pnam ARP | |
8 | Summary: Perl extension for creating ARP packets | |
5fe235df | 9 | Summary(pl.UTF-8): Rozszerzenie Perla do tworzenia pakietów ARP |
c062e042 | 10 | Name: perl-Net-ARP |
09d5e55c | 11 | Version: 1.0.6 |
ceaf7a6f | 12 | Release: 4 |
8403f361 | 13 | # same as perl |
c062e042 AG |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
fc07fc20 | 16 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tgz |
09d5e55c | 17 | # Source0-md5: 1b71124347f23f951b96e86826af8562 |
fc07fc20 | 18 | URL: http://search.cpan.org/dist/Net-ARP/ |
c062e042 AG |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Net-Pcap | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This module can be used to create and send ARP packets and to get the | |
36303307 | 28 | MAC address of an ethernet interface or IP address. |
c062e042 | 29 | |
be541649 | 30 | %description -l pl.UTF-8 |
fc07fc20 JB |
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. | |
c062e042 AG |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} \ | |
cac7d667 | 41 | CC="%{__cc}" \ |
c062e042 AG |
42 | OPTIMIZE="%{rpmcflags}" |
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 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorarch}/Net/*.pm | |
0d10c0ac JB |
59 | %dir %{perl_vendorarch}/auto/Net/ARP |
60 | %{perl_vendorarch}/auto/Net/ARP/ARP.bs | |
61 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/ARP/ARP.so | |
c062e042 | 62 | %{_mandir}/man3/* |