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

# spec file for package perl-Net-DNS (Version 0.66)
# Copyright (c) 2010 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

# norootforbuild

Name:           perl-Net-DNS
BuildRequires:  perl-Digest-HMAC perl-Net-IP
BuildRequires:  perl-macros
Version:        0.66
Release:        6
Provides:       perl_dns
Obsoletes:      perl_dns
Requires:       perl-Digest-HMAC
Requires:       perl-Net-IP
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic ; GPLv2+
Summary:        Perl interface to the DNS resolver
Source:         Net-DNS-%{version}.tar.bz2
Patch0:         fix-tests.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Net::DNS is a Perl interface to the DNS resolver.  It allows the
programmer to perform any type of DNS query from a Perl script. For
details and examples, please read the Net::DNS manual page.

    Michael Fuhr <>

%setup -q -n Net-DNS-%{version}
%patch0 -p1

find demo contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/@/usr/bin/@"
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}

make test



%doc Changes README TODO demo contrib
%doc %{_mandir}/man?/*

openSUSE Build Service is sponsored by