commit afdba020cd96a485fabd13f2ea78551233bc7f47 Author: David Dick <ddick@xxxxxxxx> Date: Thu Nov 27 16:54:22 2014 +1100 Initial import (#1166984). .gitignore | 1 + perl-Net-Whois-Raw.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..49dae14 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Net-Whois-Raw-2.76.tar.gz diff --git a/perl-Net-Whois-Raw.spec b/perl-Net-Whois-Raw.spec new file mode 100644 index 0000000..cca44d7 --- /dev/null +++ b/perl-Net-Whois-Raw.spec @@ -0,0 +1,75 @@ +Name: perl-Net-Whois-Raw +Version: 2.76 +Release: 1%{?dist} +Summary: Get Whois information for domains +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Net-Whois-Raw/ +Source0: http://www.cpan.org/modules/by-module/Net/Net-Whois-Raw-%{version}.tar.gz +BuildArch: noarch +BuildRequires: %{_bindir}/iconv +BuildRequires: perl +BuildRequires: perl(Carp) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Encode) +BuildRequires: perl(File::Temp) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Regexp::IPv6) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +Requires: perl(Data::Dumper) +Requires: perl(HTTP::Headers) +Requires: perl(HTTP::Request) +Requires: perl(LWP::UserAgent) +Requires: perl(URI::URL) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Net::Whois::Raw queries WHOIS servers about domains. The module supports +recursive WHOIS queries. Also queries via HTTP is supported for some TLDs. + +%prep +%setup -q -n Net-Whois-Raw-%{version} +iconv --from=ISO-8859-1 --to=UTF-8 Changes > Changes.new +touch -r Changes.new Changes +mv Changes.new Changes + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes COPYRIGHT README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%package -n pwhois +Summary: Perl written whois client +Requires: perl(Getopt::Long) >= 2 +Requires: perl(Net::IDN::Punycode) >= 1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(Getopt::Long\\)$ +%global __requires_exclude %__requires_exclude|^perl\\(Net::IDN::Punycode\\)$ +%description -n pwhois +Command line whois client. Invoke with a domain name, optionally with a whois server name. + +%files -n pwhois +%doc README COPYRIGHT +%{_mandir}/man1/* +%{_bindir}/* + +%changelog +* Mon Jul 07 2014 David Dick <ddick@xxxxxxxx> - 2.76-1 +- Initial release diff --git a/sources b/sources index e69de29..eb7252e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9da32765f607b49330648a6750bda238 Net-Whois-Raw-2.76.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel