[perl-MetaCPAN-API] initial import (rhbz#808881)
Iain Arnell
iarnell at fedoraproject.org
Thu Apr 19 16:56:37 UTC 2012
commit 547d6edf8859591646d7c1857b3ef0cfdbb04b40
Author: Iain Arnell <iarnell at gmail.com>
Date: Thu Apr 19 10:56:28 2012 -0600
initial import (rhbz#808881)
.gitignore | 1 +
perl-MetaCPAN-API.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6342008 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MetaCPAN-API-0.43.tar.gz
diff --git a/perl-MetaCPAN-API.spec b/perl-MetaCPAN-API.spec
new file mode 100644
index 0000000..36db6c1
--- /dev/null
+++ b/perl-MetaCPAN-API.spec
@@ -0,0 +1,71 @@
+Name: perl-MetaCPAN-API
+Version: 0.43
+Release: 1%{?dist}
+Summary: Comprehensive, DWIM-featured API to MetaCPAN
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/MetaCPAN-API/
+Source0: http://www.cpan.org/authors/id/X/XS/XSAWYERX/MetaCPAN-API-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl(Any::Moose)
+BuildRequires: perl(Carp)
+BuildRequires: perl(English)
+BuildRequires: perl(File::Find)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(HTTP::Tiny)
+BuildRequires: perl(JSON)
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(Pod::Coverage::TrustPod)
+BuildRequires: perl(Test::Fatal)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Perl::Critic)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(Test::TinyMocker)
+BuildRequires: perl(Try::Tiny)
+BuildRequires: perl(URI::Escape)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+# skip tests that require network access in koji
+# rpmbuild --with network-tests to re-enable
+%bcond_with network_tests
+
+%description
+This is a hopefully-complete API-compliant interface to MetaCPAN
+(https://metacpan.org) with DWIM capabilities, to make your life easier.
+
+%prep
+%setup -q -n MetaCPAN-API-%{version}
+
+# remove tests that require network access in koji
+%if !%{with network_tests}
+rm -f t/author.t t/module.t t/pod.t t/release.t t/source.t
+%endif
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+
+%{_fixperms} %{buildroot}/*
+
+%check
+AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Apr 19 2012 Iain Arnell <iarnell at gmail.com> 0.43-1
+- update to latest upstream version
+- enable author/release tests
+
+* Sun Apr 01 2012 Iain Arnell <iarnell at gmail.com> 0.42-1
+- Specfile autogenerated by cpanspec 1.79.
+- skip tests that require network access in koji
diff --git a/sources b/sources
index e69de29..c2ecd72 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+763a80273900c32aa7ff3aad356463cb MetaCPAN-API-0.43.tar.gz
More information about the scm-commits
mailing list