# # spec file for package perl-Net-Nslookup # # Copyright (c) 2020 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: perl-Net-Nslookup Version: 2.04 Release: 2.59 %define cpan_name Net-Nslookup Summary: Provide nslookup(1)-like capabilities License: GPL-1.0-or-later Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DA/DARREN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Net::DNS) Requires: perl(Net::DNS) %{perl_requires} %description 'Net::Nslookup' provides the capabilities of the standard UNIX command line tool _nslookup(1)_. 'Net::DNS' is a wonderful and full featured module, but quite often, all you need is `nslookup $host`. This module provides that functionality. 'Net::Nslookup' exports a single function, called 'nslookup'. 'nslookup' can be used to retrieve A, PTR, CNAME, MX, NS, SOA, TXT, and SRV records. 'nslookup' takes a hash of options, one of which should be _term_, and performs a DNS lookup on that term. The type of lookup is determined by the _type_ argument. If _server_ is specified (it should be an IP address, or a reference to an array of IP addresses), that server(s) will be used for lookups. If only a single argument is passed in, the type defaults to _A_, that is, a normal A record lookup. If 'nslookup' is called in a list context, and there is more than one address, an array is returned. If 'nslookup' is called in a scalar context, and there is more than one address, 'nslookup' returns the first address. If there is only one address returned, then, naturally, it will be the only one returned, regardless of the calling context. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc README %license COPYING %changelog * Mon Apr 20 2020 lars@linux-schulserver.de initial package 2.04