commit 6cdd69532dfa475969b7c6060ced5cef7c959a14 Author: Mathieu Bridon <boche...@fedoraproject.org> Date: Mon Jan 7 14:10:14 2013 +0800
Initial package for Fedora This was submitted for review on Mon Jan 07 2013: https://bugzilla.redhat.com/show_bug.cgi?id=892433#c0 perl-ParseUtil-Domain.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) --- diff --git a/perl-ParseUtil-Domain.spec b/perl-ParseUtil-Domain.spec new file mode 100644 index 0000000..318f362 --- /dev/null +++ b/perl-ParseUtil-Domain.spec @@ -0,0 +1,72 @@ +Name: perl-ParseUtil-Domain +Summary: Utility for parsing a domain name into its components +Version: 2.22 +Release: 1%{?dist} + +# - ParseUtil::Domain is GPL+ or Artistic (the "Perl" license) +# - data/effective_tld_names.txt is MPLv2.0 +# - ParseUtil::Domain::ConfigData is automatically generated during the build, +# based on the contents of data/effective_tld_names.txt +License: (GPL+ or Artistic) and MPLv2.0 + +URL: http://search.cpan.org/dist/ParseUtil-Domain/ +Source0: http://www.cpan.org/authors/id/H/HE/HEYTRAV/ParseUtil-Domain-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: perl(Module::Build) +BuildRequires: perl(namespace::autoclean) +BuildRequires: perl(Net::IDN::Encode) >= 2.003 +BuildRequires: perl(Net::IDN::Nameprep) >= 1.101 +BuildRequires: perl(Perl6::Export::Attrs) +BuildRequires: perl(Perl::Critic) +BuildRequires: perl(Regexp::Assemble::Compressed) +BuildRequires: perl(Smart::Comments) +BuildRequires: perl(Test::Class) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Perl::Critic) +BuildRequires: perl(Test::Routine) +BuildRequires: perl(Unicode::CharName) >= 1.07 +BuildRequires: perl(YAML) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +A tool for parsing domain names. This module makes use of the data provided +by the Public Suffix List (http://publicsuffix.org/list/) to parse tlds. + + +%prep +%setup -q -n ParseUtil-Domain-%{version} + + +%build +%{__perl} Build.PL installdirs=vendor +./Build + + +%install +./Build install destdir=%{buildroot} create_packlist=0 + +%{_fixperms} %{buildroot}/* + + +%check +./Build test + + +%files +%doc data/effective_tld_names.txt README +%{_bindir}/punyconvert +%{_mandir}/man1/punyconvert.1* +%{_mandir}/man3/ParseUtil::Domain*3pm* +%{perl_vendorlib}/ParseUtil* + + +%changelog +* Wed Jan 02 2013 Mathieu Bridon <boche...@fedoraproject.org> - 2.22-1 +- Initial package for Fedora, with help from cpanspec. -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel