]> git.pld-linux.org Git - packages/perl-Net-DNS-ToolKit.git/blob - perl-Net-DNS-ToolKit.spec
82d01ab64c3baa98cbe27f14ec96b6e75e6cd65c
[packages/perl-Net-DNS-ToolKit.git] / perl-Net-DNS-ToolKit.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Net
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
11 Version:        0.48
12 Release:        7
13 License:        GPL v2+
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  242fab98e7a4e195d63e554b42f6c12b
17 URL:            http://search.cpan.org/dist/Net-DNS-ToolKit/
18 %if %{with tests}
19 BuildRequires:  perl-Net-DNS-Codes >= 0.06
20 BuildRequires:  perl-NetAddr-IP
21 %endif
22 BuildRequires:  perl-devel >= 1:5.8.0
23 BuildRequires:  rpm-perlprov >= 4.1-13
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
31
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.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44
45 %{__make} -j1 \
46         CC="%{__cc}" \
47         OPTIMIZE="%{rpmcflags}"
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} pure_install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/DNS/ToolKit/.packlist
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
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
74 %{_mandir}/man3/*
This page took 0.06694 seconds and 2 git commands to generate.