]> git.pld-linux.org Git - packages/perl-Net-DNS.git/blobdiff - perl-Net-DNS.spec
- updated to 1.33
[packages/perl-Net-DNS.git] / perl-Net-DNS.spec
index b2518f11cc6ff0aa1d108dc1074fa7b679421774..81ed2c4494c2122bcf91cf0cbcd99f0a843413a2 100644 (file)
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    Net
-%define        pnam    DNS
-Summary:       Net::DNS perl module
-Summary(pl):   Modu³ perla Net::DNS
+# TODO: verify ignore-resolv_conf-open-errors patch (remove or update)
+#
+# Conditional build:
+%bcond_with    tests           # perform "make test"
+#
+%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.21
+Version:       1.33
 Release:       1
-License:       GPL
+# 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
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f3ba5295ee588d25dabc74a2ecda296a
+Patch0:                %{name}-ignore-resolv_conf-open-errors.patch
+URL:           https://metacpan.org/dist/Net-DNS
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.66
+BuildRequires: perl-devel >= 1:5.8.8
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: perl(Exporter) >= 5.56
+BuildRequires: perl(File::Spec) >= 0.86
+BuildRequires: perl(IO::File) >= 1.08
+BuildRequires: perl(IO::Select) >= 1.14
+BuildRequires: perl(IO::Socket) >= 1.26
+BuildRequires: perl(IO::Socket::IP) >= 0.38
+BuildRequires: perl(PerlIO) >= 1.05
+BuildRequires: perl(Time::Local) >= 1.19
+BuildRequires: perl-Carp >= 1.10
+BuildRequires: perl-Digest-BubbleBabble >= 0.01
+BuildRequires: perl-Digest-HMAC >= 1.03
+BuildRequires: perl-Digest-MD5 >= 2.13
+BuildRequires: perl-Digest-SHA >= 5.23
+BuildRequires: perl-Encode >= 2.26
+BuildRequires: perl-IO-Socket-INET6 >= 2.51
+BuildRequires: perl-MIME-Base64 >= 2.13
+BuildRequires: perl-Scalar-List-Utils >= 1.25
+BuildRequires: perl-Test-Pod >= 0.95
+BuildRequires: perl-Test-Simple >= 0.52
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+Requires:      perl-Digest-HMAC >= 1.03
+Requires:      perl-Digest-MD5 >= 2.13
+Requires:      perl-Digest-SHA >= 5.23
+Requires:      perl-MIME-Base64 >= 2.13
+Requires:      perl(Time::Local) >= 1.19
+# not autodetected
+Provides:      perl(Net::DNS::DomainName1035) = 1813
+Provides:      perl(Net::DNS::DomainName2535) = 1813
+Conflicts:     perl-Net-DNS-SEC < 1.14
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Net::DNS - Perl interface to the DNS resolver.
+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 - interfejs do resolvera DNS.
+%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
+%{__perl} Makefile.PL </dev/null \
+       --no-online-tests \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-gzip -9nf Changes README TODO
+# get rid of pod documentation
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Net/DNS/*.pod
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Net/DNS.pm
-%{perl_sitelib}/Net/DNS
-%{_mandir}/man3/*
+%doc Changes README
+%{perl_vendorlib}/Net/DNS.pm
+%{perl_vendorlib}/Net/DNS/*.pm
+%{perl_vendorlib}/Net/DNS/RR
+%{perl_vendorlib}/Net/DNS/Resolver
+%{_mandir}/man3/Net::DNS*.3pm*
 %{_examplesdir}/%{name}-%{version}
This page took 0.087114 seconds and 4 git commands to generate.