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 http://bugs.opensuse.org/
#


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
Url:            http://search.cpan.org/dist/Net-DNS/
Source:         http://www.cpan.org/authors/id/N/NL/NLNETLABS/%{cpan_name}-%{version}.tar.gz
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
%{perl_requires}

%description
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
details.

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

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

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README TODO

%changelog
openSUSE Build Service is sponsored by