File perl-Net-DNS.spec of Package perl-Net-DNS
#
# spec file for package perl-Net-DNS
#
# Copyright (c) 2012 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.68
Release: 0
Summary: Perl interface to the DNS resolver
License: GPL-2.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://cpan.org/modules/by-module/Net/
Source: Net-DNS-%{version}.tar.gz
BuildRequires: perl-Digest-HMAC
BuildRequires: perl-Net-IP
BuildRequires: perl-macros
Requires: perl-Digest-HMAC
Requires: perl-Net-IP
Recommends: perl(IO::Socket::INET6)
Provides: perl_dns
Obsoletes: perl_dns
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.
%prep
%setup -q -n Net-DNS-%{version}
%build
find demo contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/@/usr/bin/@"
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changes README TODO demo contrib
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net
%changelog