]>
Commit | Line | Data |
---|---|---|
fb635889 AG |
1 | # |
2 | # Conditional build: | |
ede718f8 | 3 | %bcond_without tests # do not perform "make test" |
fb635889 AG |
4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
c193ae5c | 6 | %define pdir Net |
7 | %define pnam DNS-ToolKit | |
fb635889 | 8 | Summary: Net::DNS::ToolKit - tools for working with DNS packets |
7d72519d | 9 | Summary(pl.UTF-8): Net::DNS::ToolKit - narzędzia do pracy z pakietami DNS |
fb635889 | 10 | Name: perl-Net-DNS-ToolKit |
07557a77 | 11 | Version: 0.45 |
cff45593 | 12 | Release: 6 |
fb635889 AG |
13 | License: GPL v2+ |
14 | Group: Development/Languages/Perl | |
7de87ff9 | 15 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz |
07557a77 | 16 | # Source0-md5: 843d8a14a42d75f56c6cd69b6032cf5d |
7de87ff9 | 17 | URL: http://search.cpan.org/dist/Net-DNS-ToolKit/ |
2202c733 AG |
18 | %if %{with tests} |
19 | BuildRequires: perl-Net-DNS-Codes >= 0.06 | |
e7824eed | 20 | BuildRequires: perl-NetAddr-IP |
2202c733 | 21 | %endif |
fb635889 AG |
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 | |
dcd1f2c2 ER |
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. | |
fb635889 | 31 | |
33391ddc JR |
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. | |
fb635889 AG |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | ||
dcd1f2c2 | 45 | %{__make} -j1 \ |
eebeeef2 | 46 | CC="%{__cc}" \ |
fb635889 AG |
47 | OPTIMIZE="%{rpmcflags}" |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
dcd1f2c2 | 54 | %{__make} pure_install \ |
fb635889 AG |
55 | DESTDIR=$RPM_BUILD_ROOT |
56 | ||
dcd1f2c2 ER |
57 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/DNS/ToolKit/.packlist |
58 | ||
fb635889 AG |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes INSTALL README | |
d3ffd897 | 65 | %{perl_vendorarch}/Net/DNS/*.pm |
fb635889 | 66 | %{perl_vendorarch}/Net/DNS/ToolKit |
dcd1f2c2 | 67 | %dir %{perl_vendorarch}/auto/Net/DNS |
d3ffd897 | 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 | |
fb635889 | 74 | %{_mandir}/man3/* |