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

# 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+
Url:            http://cpan.org/modules/by-module/Net/
Summary:        Perl interface to the DNS resolver
Source:         Net-DNS-%{version}.tar.bz2
Patch0:         fix-tests.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

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



Authors:
--------
    Michael Fuhr <mfuhr@dimensional.com>

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

%build
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}

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Changes README TODO demo contrib
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net

%changelog
openSUSE Build Service is sponsored by