diff --git a/perl-MetaCPAN-Client.spec b/perl-MetaCPAN-Client.spec index 16b93d1..c66f290 100644 --- a/perl-MetaCPAN-Client.spec +++ b/perl-MetaCPAN-Client.spec @@ -4,7 +4,7 @@ Name: perl-MetaCPAN-Client Version: 2.027000 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A comprehensive, DWIM-featured client to the MetaCPAN API License: GPL+ or Artistic URL: https://github.com/CPAN-API/metacpan-client @@ -63,6 +63,9 @@ This is a hopefully-complete API-compliant interface to MetaCPAN %prep %setup -q -n MetaCPAN-Client-%{version} +# Avoid doc-file dependencies +chmod -c -x fav.pl + %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} @@ -71,6 +74,9 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_install} %{_fixperms} -c %{buildroot} +# Packaging fav.pl as documentation +rm %{buildroot}%{perl_vendorlib}/MetaCPAN/fav.pl + %check %if !%{with network_tests} mv t/api/[a-z]*.t t/result_custom.t t/scroll.t ./ @@ -85,7 +91,7 @@ mv ./[a-z]*.t t/api/ %files %license LICENSE -%doc Changes examples/ README +%doc Changes examples/ fav.pl README %{perl_vendorlib}/MetaCPAN/ %{_mandir}/man3/MetaCPAN::Client.3* %{_mandir}/man3/MetaCPAN::Client::Author.3* @@ -109,6 +115,9 @@ mv ./[a-z]*.t t/api/ %{_mandir}/man3/MetaCPAN::Client::Types.3* %changelog +* Wed Aug 12 2020 Paul Howarth - 2.027000-2 +- Package fav.pl as documentation rather than as a module + * Tue Aug 11 2020 Paul Howarth - 2.027000-1 - Update to 2.027000 - Run Travis tests with more Perls (GH#102)