# # Conditional build: %bcond_without tests # do not perform "make test" %bcond_without 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.53 Release: 2 # 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: 404797359373d4df1a025458ab1415f7 BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-Digest-BubbleBabble BuildRequires: perl-Digest-HMAC >= 1.00 BuildRequires: perl-Digest-MD5 >= 2.12 BuildRequires: perl-IO-Socket-INET6 >= 2.51 BuildRequires: perl-MIME-Base64 >= 2.11 BuildRequires: perl-Net-IP >= 1.20 BuildRequires: perl-Test-Pod >= 0.95 BuildRequires: perl-Test-Simple >= 0.18 %endif BuildRequires: rpm-perlprov >= 4.1-13 %if %{without 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