1 |
%define upstream_name Net-DNS |
2 |
%define upstream_version 0.72 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 3 |
7 |
|
8 |
Summary: Perl interface to the DNS resolver |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Digest::HMAC_MD5) >= 1.0.0 |
15 |
BuildRequires: perl(Digest::MD5) >= 2.120.0 |
16 |
BuildRequires: perl(Digest::SHA) >= 5.230.0 |
17 |
BuildRequires: perl(ExtUtils::MakeMaker) |
18 |
BuildRequires: perl(IO::Socket) |
19 |
BuildRequires: perl(MIME::Base64) >= 2.110.0 |
20 |
BuildRequires: perl(Test::More) >= 0.180.0 |
21 |
BuildRequires: perl-devel |
22 |
%description |
23 |
Net::DNS is a collection of Perl modules that act as a Domain Name System (DNS) |
24 |
resolver. It allows the programmer to perform DNS queries that are beyond the |
25 |
capabilities of gethostbyname and gethostbyaddr. |
26 |
|
27 |
The programmer should be somewhat familiar with the format of a DNS packet and |
28 |
its various sections. See RFC 1035 or DNS and BIND (Albitz & Liu) for details. |
29 |
|
30 |
%prep |
31 |
%setup -q -n %{upstream_name}-%{upstream_version} |
32 |
|
33 |
%build |
34 |
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null |
35 |
%make |
36 |
|
37 |
%check |
38 |
%{__make} test |
39 |
|
40 |
%install |
41 |
%makeinstall_std |
42 |
|
43 |
%files |
44 |
%doc Changes META.yml MYMETA.yml README TODO demo |
45 |
%{_mandir}/*/* |
46 |
%{perl_vendorarch}/auto/Net |
47 |
%{perl_vendorarch}/Net |