[perl-MetaCPAN-API-Tiny] Initial import (perl-MetaCPAN-API-Tiny-1.131730-3)
Paul Howarth
pghmcfc at fedoraproject.org
Tue Feb 25 15:36:41 UTC 2014
commit aca9001118b49985a44d3c0e1dd9fd9ec4e6cf96
Author: Paul Howarth <paul at city-fan.org>
Date: Tue Feb 25 15:36:33 2014 +0000
Initial import (perl-MetaCPAN-API-Tiny-1.131730-3)
This is the Tiny version of MetaCPAN::API. It implements a compatible API with
a few notable exceptions:
Attributes are direct hash access
* The attributes defined using Mo(o|u)se are now accessed via the blessed hash
directly. There are no accessors defined to access this elements.
Exception handling
* Instead of using Try::Tiny, raw evals are used. This could potentially cause
issues, so just be aware.
Testing
* Test::Fatal was replaced with an eval implementation of exception().
Test::TinyMocker usage is retained, but may be absorbed since it is pure
perl.
.gitignore | 1 +
perl-MetaCPAN-API-Tiny.spec | 84 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05a0766 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MetaCPAN-API-Tiny-[0-9.]*.tar.gz
diff --git a/perl-MetaCPAN-API-Tiny.spec b/perl-MetaCPAN-API-Tiny.spec
new file mode 100644
index 0000000..3236ff2
--- /dev/null
+++ b/perl-MetaCPAN-API-Tiny.spec
@@ -0,0 +1,84 @@
+%bcond_with network_tests
+
+Name: perl-MetaCPAN-API-Tiny
+Version: 1.131730
+Release: 3%{?dist}
+Summary: A Tiny API client for MetaCPAN
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: https://metacpan.org/release/MetaCPAN-API-Tiny
+Source0: http://cpan.metacpan.org/authors/id/N/NP/NPEREZ/MetaCPAN-API-Tiny-%{version}.tar.gz
+BuildArch: noarch
+# Build
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
+# Module
+BuildRequires: perl(Carp)
+BuildRequires: perl(HTTP::Tiny) >= 0.017
+BuildRequires: perl(JSON::PP)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Test suite
+BuildRequires: perl(Exporter) >= 5.57
+BuildRequires: perl(Test::More)
+# Author/Release tests
+BuildRequires: perl(Test::Pod) >= 1.41
+# Runtime
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+This is the Tiny version of MetaCPAN::API. It implements a compatible API with
+a few notable exceptions:
+
+Attributes are direct hash access
+
+ * The attributes defined using Mo(o|u)se are now accessed via the blessed hash
+ directly. There are no accessors defined to access this elements.
+
+Exception handling
+
+ * Instead of using Try::Tiny, raw evals are used. This could potentially cause
+ issues, so just be aware.
+
+Testing
+
+ * Test::Fatal was replaced with an eval implementation of exception().
+ Test::TinyMocker usage is retained, but may be absorbed since it is pure
+ perl.
+
+%prep
+%setup -q -n MetaCPAN-API-Tiny-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
+
+%check
+%if !%{with network_tests}
+mv t/{author,module,pod,release,source}.t ./
+%endif
+
+make test RELEASE_TESTING=1
+
+%if !%{with network_tests}
+mv ./{author,module,pod,release,source}.t t/
+%endif
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/MetaCPAN/
+%{_mandir}/man3/MetaCPAN::API::Tiny.3pm*
+
+%changelog
+* Fri Feb 7 2014 Paul Howarth <paul at city-fan.org> - 1.131730-3
+- Don't run tests that require network access by default
+
+* Thu Feb 6 2014 Paul Howarth <paul at city-fan.org> - 1.131730-2
+- Sanitize for Fedora submission
+
+* Thu Feb 6 2014 Paul Howarth <paul at city-fan.org> - 1.131730-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..e0a03c0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a8d27b24f7a0f062415b4d87c8c1a971 MetaCPAN-API-Tiny-1.131730.tar.gz
More information about the scm-commits
mailing list