%bcond_with network_tests Name: perl-MetaCPAN-API-Tiny Version: 1.150270 Release: 9%{?dist} Summary: A Tiny API client for MetaCPAN License: GPL+ or Artistic URL: https://metacpan.org/release/MetaCPAN-API-Tiny Source0: http://cpan.metacpan.org/authors/id/J/JL/JLUIS/MetaCPAN-API-Tiny-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) # 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 these 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 -delete %{_fixperms} -c %{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 %license LICENSE %doc Changes README %{perl_vendorlib}/MetaCPAN/ %{_mandir}/man3/MetaCPAN::API::Tiny.3* %changelog * Thu Feb 08 2018 Fedora Release Engineering - 1.150270-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.150270-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 1.150270-7 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.150270-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.150270-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.150270-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.150270-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 1.150270-2 - Perl 5.22 rebuild * Wed Jan 28 2015 Paul Howarth - 1.150270-1 - Update to 1.150270 - This module is now marked as deprecated (use MetaCPAN::Client instead) - This release by JLUIS → update source URL - Use %%license * Wed Aug 27 2014 Jitka Plesnikova - 1.131730-5 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.131730-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Feb 7 2014 Paul Howarth - 1.131730-3 - Don't run tests that require network access by default * Thu Feb 6 2014 Paul Howarth - 1.131730-2 - Sanitize for Fedora submission * Thu Feb 6 2014 Paul Howarth - 1.131730-1 - Initial RPM version