From 6c7e152003d73fa8c710092e5532d1d089cda10a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Tue, 7 Feb 2023 18:24:20 +0800 Subject: [PATCH] remove versioned MODULE_COMPAT_ requires --- perl-CPAN-Meta.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/perl-CPAN-Meta.spec b/perl-CPAN-Meta.spec index 2111a88..3d96db3 100644 --- a/perl-CPAN-Meta.spec +++ b/perl-CPAN-Meta.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Name: perl-CPAN-Meta Summary: Distribution metadata for a CPAN dist Version: 2.150010 @@ -41,7 +41,6 @@ BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(utf8) BuildRequires: perl(vars) # Runtime -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(CPAN::Meta::YAML) >= 0.011 Requires: perl(Encode) Requires: perl(JSON::PP) >= 2.27300 @@ -64,6 +63,14 @@ distributions, META.yml, which describes the distribution, its contents, and the requirements for building and installing the distribution. The data structure stored in the META.json file is described in CPAN::Meta::Spec. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n CPAN-Meta-%{version} @@ -84,7 +91,7 @@ make test %files %license LICENSE -%doc Changes CONTRIBUTING.mkdn history README Todo t/ +%doc t/ %{perl_vendorlib}/CPAN/ %{perl_vendorlib}/Parse/ %{_mandir}/man3/CPAN::Meta.3* @@ -102,7 +109,13 @@ make test %{_mandir}/man3/CPAN::Meta::Validator.3* %{_mandir}/man3/Parse::CPAN::Meta.3* +%files doc +%doc Changes CONTRIBUTING.mkdn history README Todo + %changelog +* Tue Feb 07 2023 mgb01105731 - 1:2.150010-3 +- remove versioned MODULE_COMPAT_ requires + * Mon Jan 30 2023 Chunmei Xu - 1:2.150010-2 - rebuild with perl 5.36.0 -- Gitee