547d6ed
Name:           perl-MetaCPAN-API
40f8d28
Version:        0.51
40f8d28
Release:        1%{?dist}
40f8d28
Summary:        A comprehensive, DWIM-featured API to MetaCPAN
547d6ed
License:        GPL+ or Artistic
547d6ed
URL:            http://search.cpan.org/dist/MetaCPAN-API/
40f8d28
Source0:        http://www.cpan.org/authors/id/H/HA/HAARG/MetaCPAN-API-%{version}.tar.gz
547d6ed
BuildArch:      noarch
95a2785
# Build
40f8d28
BuildRequires:  coreutils
40f8d28
BuildRequires:  findutils
40f8d28
BuildRequires:  make
0122a78
BuildRequires:  perl-interpreter
4ede7c6
BuildRequires:  perl-generators
95a2785
BuildRequires:  perl(ExtUtils::MakeMaker)
95a2785
# Module
547d6ed
BuildRequires:  perl(Carp)
40f8d28
BuildRequires:  perl(HTTP::Tiny) >= 0.014
40f8d28
BuildRequires:  perl(IO::Socket::SSL)
40f8d28
BuildRequires:  perl(JSON::MaybeXS) >= 1.001000
95a2785
BuildRequires:  perl(Moo) >= 1.000001
95a2785
BuildRequires:  perl(Moo::Role)
95a2785
BuildRequires:  perl(namespace::autoclean)
40f8d28
BuildRequires:  perl(strict)
95a2785
BuildRequires:  perl(Try::Tiny)
95a2785
BuildRequires:  perl(Types::Standard)
40f8d28
BuildRequires:  perl(warnings)
95a2785
# Test suite
40f8d28
BuildRequires:  perl(Exporter)
40f8d28
BuildRequires:  perl(lib)
547d6ed
BuildRequires:  perl(Test::Fatal)
547d6ed
BuildRequires:  perl(Test::More)
95a2785
BuildRequires:  perl(Test::RequiresInternet)
547d6ed
BuildRequires:  perl(Test::TinyMocker)
95a2785
# Runtime
95a2785
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
40f8d28
Requires:       perl(IO::Socket::SSL)
547d6ed
547d6ed
%description
547d6ed
This is a hopefully-complete API-compliant interface to MetaCPAN
40f8d28
(https://metacpan.org/) with DWIM capabilities, to make your life easier.
547d6ed
c72cb69
However, it has been completely rewritten to address a multitude of problems,
c72cb69
and is now available under the new official name: MetaCPAN::Client.
c72cb69
c72cb69
Please do not use this module.
c72cb69
547d6ed
%prep
547d6ed
%setup -q -n MetaCPAN-API-%{version}
547d6ed
547d6ed
%build
95a2785
perl Makefile.PL INSTALLDIRS=vendor
95a2785
make %{?_smp_mflags}
547d6ed
547d6ed
%install
95a2785
make pure_install DESTDIR=%{buildroot}
40f8d28
find %{buildroot} -type f -name .packlist -delete
40f8d28
%{_fixperms} -c %{buildroot}
547d6ed
547d6ed
%check
40f8d28
make test
cbee3ae
547d6ed
%files
95a2785
%license LICENSE
95a2785
%doc Changes README
cbee3ae
%{perl_vendorlib}/MetaCPAN/
40f8d28
%{_mandir}/man3/MetaCPAN::API.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Author.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Autocomplete.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Distribution.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Favorite.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::File.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Module.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Rating.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::POD.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Release.3*
40f8d28
%{_mandir}/man3/MetaCPAN::API::Source.3*
547d6ed
547d6ed
%changelog
40f8d28
* Sun Jun 18 2017 Paul Howarth <paul@city-fan.org> - 0.51-1
40f8d28
- Update to 0.51
40f8d28
  - Switch to v1 API
40f8d28
    - Old complex query forms may stop working with new API
40f8d28
  - Stop relying on . being in @INC
40f8d28
  - Drop URI::Escape prereq
40f8d28
  - Switch from JSON to JSON::MaybeXS
40f8d28
  - Test clean-ups
40f8d28
- This release by HAARG → update source URL
40f8d28
- Make %%files list more explicit
40f8d28
- Drop redundant Group: tag and %%{?perl_default_filter}
40f8d28
7d04cdc
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.50-7
7d04cdc
- Perl 5.26 rebuild
7d04cdc
a77962c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.50-6
a77962c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a77962c
9288b91
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.50-5
9288b91
- Perl 5.24 rebuild
9288b91
3e3fdb9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.50-4
3e3fdb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3e3fdb9
fdc8e70
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.50-3
fdc8e70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fdc8e70
43089b1
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.50-2
43089b1
- Perl 5.22 rebuild
43089b1
95a2785
* Mon Jan 26 2015 Paul Howarth <paul@city-fan.org> - 0.50-1
95a2785
- Update to 0.50
95a2785
  - Convert to Moo
95a2785
  - Use Types::Standard
95a2785
  - Remove Module::Build
95a2785
  - Deprecate using x_deprecate meta-data
95a2785
- Classify buildreqs by usage
95a2785
- Use %%license where possible
95a2785
- No longer need to avoid network tests as they're skipped automatically in
95a2785
  koji
95a2785
- Switch to ExtUtils::MakeMaker flow
95a2785
51a50a2
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.44-3
51a50a2
- Perl 5.20 rebuild
51a50a2
ab4eb52
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-2
ab4eb52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ab4eb52
c72cb69
* Mon Apr 28 2014 Paul Howarth <paul@city-fan.org> - 0.44-1
c72cb69
- Update to 0.44
c72cb69
  - This module is deprecated; please use MetaCPAN::Client instead
cbee3ae
- Account for new tests that require network access
c72cb69
9999e8f
* Sun Aug 04 2013 Petr Pisar <ppisar@redhat.com> - 0.43-6
9999e8f
- Perl 5.18 rebuild
9999e8f
53ec79b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.43-5
53ec79b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
53ec79b
5457d9c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.43-4
5457d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5457d9c
e4eb398
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.43-3
e4eb398
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e4eb398
1dbd5df
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 0.43-2
1dbd5df
- Perl 5.16 rebuild
1dbd5df
547d6ed
* Thu Apr 19 2012 Iain Arnell <iarnell@gmail.com> 0.43-1
547d6ed
- update to latest upstream version
547d6ed
- enable author/release tests
547d6ed
547d6ed
* Sun Apr 01 2012 Iain Arnell <iarnell@gmail.com> 0.42-1
547d6ed
- Specfile autogenerated by cpanspec 1.79.
547d6ed
- skip tests that require network access in koji