# # Conditional build: %bcond_without tests # do not perform "make test" %bcond_with libresolv # link against libresolv (creates architecture-dependent package) # %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 perlowy do resolvera DNS Name: perl-Net-DNS Version: 0.51 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: fc358c06e65b1918b93e1a92e02065b8 BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-Digest-MD5 >= 2.12 BuildRequires: perl-Digest-HMAC >= 1.00 BuildRequires: perl-MIME-Base64 >= 2.11 BuildRequires: perl-Net-IP >= 1.20 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