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