X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Net-DNS.spec;h=654d1827d36829e3ddef19496cc750a756e0523c;hb=ae44bb33e670b7bceaa60e8c203ece1bd292765e;hp=a4d10298443127b5d8124f4e4dcab476eb81b7fb;hpb=77833771cdb7129458cff74e872d273273bc64d0;p=packages%2Fperl-Net-DNS.git diff --git a/perl-Net-DNS.spec b/perl-Net-DNS.spec index a4d1029..654d182 100644 --- a/perl-Net-DNS.spec +++ b/perl-Net-DNS.spec @@ -1,64 +1,91 @@ # # Conditional build: -# _without_tests - do not perform "make test" +%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 do resolvera DNS. +%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.28 -Release: 2 -License: GPL/Artistic +Version: 0.53 +Release: 2.1 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -Patch0: %{name}-unreachable_ns.patch -BuildRequires: perl >= 5.6 -%if %{?_without_tests:0}%{!?_without_tests:1} -BuildRequires: perl-Digest-MD5 >= 2.12 +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-Test-Simple >= 0.18 +BuildRequires: perl-Net-IP >= 1.20 +BuildRequires: perl-Test-Pod %endif -BuildRequires: rpm-perlprov >= 3.0.3-16 +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. +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 +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 %build -perl Makefile.PL -%{__make} +%{__perl} Makefile.PL