File perl-Net-DNS.spec of Package perl-Net-DNS

# spec file for package perl-Net-DNS
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           perl-Net-DNS
Version:        0.73
Release:        0
%define cpan_name Net-DNS
Summary:        Perl interface to the Domain Name System
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Patch:          fix_incorrectly_generated_algbyval_table.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Digest::HMAC) >= 1.01
BuildRequires:  perl(Digest::SHA) >= 5.23
Requires:       perl(Digest::HMAC) >= 1.01
Requires:       perl(Digest::SHA) >= 5.23

Net::DNS is a collection of Perl modules that act as a Domain Name System
(DNS) resolver. It allows the programmer to perform DNS queries that are
beyond the capabilities of 'gethostbyname' and 'gethostbyaddr'.

The programmer should be somewhat familiar with the format of a DNS packet
and its various sections. See RFC 1035 or _DNS and BIND_ (Albitz & Liu) for

%setup -q -n %{cpan_name}-%{version}
%patch -p1
find . -type f -print0 | xargs -0 chmod 644

%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%{__make} test


%files -f %{name}.files
%doc Changes README TODO

openSUSE Build Service is sponsored by