]> git.pld-linux.org Git - packages/perl-Net-Arping.git/blob - perl-Net-Arping.spec
9b35cfecaaf2b638f62e6403a346f4e9b30fd688
[packages/perl-Net-Arping.git] / perl-Net-Arping.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Net
7 %define pnam    Arping
8 Summary:        Net::Arping - Ping remote host by ARP packets
9 Summary(pl.UTF-8):      Net::Arping - Pingowanie zdalnego hosta przy użyciu pakietów ARP
10 Name:           perl-Net-Arping
11 Version:        0.03
12 Release:        9
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-authors/id/R/RA/RADEK/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  bf26415f1406dec2689d5e8aa3ca2744
18 URL:            http://search.cpan.org/dist/Net-Arping/
19 BuildRequires:  libnet-devel
20 BuildRequires:  libpcap-devel
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The module contains function for testing remote host reachability by
27 sending ARP packets.
28
29 The program must be run as root or be setuid to root.
30
31 %description -l pl.UTF-8
32 Ten moduł zawiera funkcję do sprawdzania dostępności zdalnego hosta
33 poprzez wysyłanie pakietów ARP.
34
35 Program musi być uruchamiany przez roota lub mieć ustawiony suid root.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make} \
44         OPTIMIZE="%{rpmcflags}"
45
46 %{__make} test
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} pure_install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorarch}/Net/*.pm
61 %dir %{perl_vendorarch}/auto/Net/Arping
62 %attr(755,root,root) %{perl_vendorarch}/auto/Net/Arping/*.so
63 %{_mandir}/man3/*
This page took 0.051914 seconds and 2 git commands to generate.