# # Conditional build: %bcond_with 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.UTF-8): Net::DNS - interfejs perlowy do resolvera DNS Name: perl-Net-DNS Version: 0.67 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 8caf473b6f74cae38ee18c162041a5db Patch0: %{name}-ignore-resolv_conf-open-errors.patch URL: http://search.cpan.org/dist/Net-DNS/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: sed >= 4.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 %endif BuildRequires: rpm-perlprov >= 4.1-13 # https://rt.cpan.org/Public/Bug/Display.html?id=30316: # BuildRequires: FIXME(CVE-unknown) %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.UTF-8 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} %patch0 -p1 %{__sed} -i -e 's#/''usr/local/bin/perl#/''usr/bin/perl#' demo/* contrib/* %build %{__perl} Makefile.PL