# Conditional build: %bcond_without tests # do not perform "make test" # link against libresolv (creates architecture-dependent package) %bcond_with libresolv %include /usr/lib/rpm/macros.perl %define pdir Net %define pnam DNS Summary: Net::DNS - Perl interface to the DNS resolver Summary(pl): Net::DNS - interfejs do resolvera DNS Name: perl-Net-DNS Version: 0.45 Release: 1 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 038d5ca2ca91560d3c74eb491e14dc1c BuildRequires: perl-devel >= 5.6 %if %{with tests} BuildRequires: perl-Digest-MD5 >= 2.12 BuildRequires: perl-Digest-HMAC >= 1.00 BuildRequires: perl-MIME-Base64 >= 2.11 BuildRequires: perl-Test-Simple >= 0.18 BuildRequires: perl-Test-Pod >= 0.95 %endif BuildRequires: rpm-perlprov >= 4.1-13 %if !%{with libresolv} BuildArch: noarch %endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Net::DNS is a DNS resolver implemented in Perl. It allows the programmer to perform nearly any type of DNS query from a Perl script. %description -l pl Net::DNS jest resolverem DNS, zaimplementowanym w Perlu. Pozwala programi¶cie na wykonanie niemal ka¿dego typu zapytania DNS ze skryptu Perla. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL