3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam DNS-ToolKit
8 Summary: Net::DNS::ToolKit - tools for working with DNS packets
9 Summary(pl.UTF-8): Net::DNS::ToolKit - narzędzia do pracy z pakietami DNS
10 Name: perl-Net-DNS-ToolKit
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 843d8a14a42d75f56c6cd69b6032cf5d
17 URL: http://search.cpan.org/dist/Net-DNS-ToolKit/
19 BuildRequires: perl-Net-DNS-Codes >= 0.06
20 BuildRequires: perl-NetAddr-IP
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Routines to pick apart, examine and put together DNS packets. They can
28 be used for diagnostic purposes or as building blocks for DNS
29 applications such as DNS servers and clients or to allow user
30 applications to interact directly with remote DNS servers.
32 %description -l pl.UTF-8
33 Procedury do wybierania, badania oraz składania pakietów DNS. Mogą być
34 użyte do celów diagnostycznych lub do tworzenia bloków dla aplikacji
35 NDS takich jak serwery oraz klienci DNS lub do umożliwienia
36 użytkownikowi do bezpośredniej interakcji ze zdalnymi serwerami DNS.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
47 OPTIMIZE="%{rpmcflags}"
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
57 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/DNS/ToolKit/.packlist
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc Changes INSTALL README
65 %{perl_vendorarch}/Net/DNS/*.pm
66 %{perl_vendorarch}/Net/DNS/ToolKit
67 %dir %{perl_vendorarch}/auto/Net/DNS
68 %dir %{perl_vendorarch}/auto/Net/DNS/ToolKit
69 %attr(755,root,root) %{perl_vendorarch}/auto/Net/DNS/ToolKit/*.so
70 %{perl_vendorarch}/auto/Net/DNS/ToolKit/*.ix
71 %{perl_vendorarch}/auto/Net/DNS/ToolKit/*.al
72 %{perl_vendorarch}/auto/Net/DNS/ToolKit/Debug
73 %{perl_vendorarch}/auto/Net/DNS/ToolKit/Utilities