diff --git a/CPAN-Meta-2.150010.tar.gz b/CPAN-Meta-2.150010.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..95d3ac98a262f58435f33ccbd166b5f98d13542c Binary files /dev/null and b/CPAN-Meta-2.150010.tar.gz differ diff --git a/perl-CPAN-Meta.spec b/perl-CPAN-Meta.spec new file mode 100644 index 0000000000000000000000000000000000000000..8d2348a03528a8cda4239b99bf92d839685d31ef --- /dev/null +++ b/perl-CPAN-Meta.spec @@ -0,0 +1,107 @@ +%define anolis_release 1 +Name: perl-CPAN-Meta +Summary: Distribution metadata for a CPAN dist +Version: 2.150010 +Epoch: 1 +Release: %{anolis_release}%{?dist} +License: GPL+ or Artistic +URL: https://metacpan.org/release/CPAN-Meta +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 +# Module +BuildRequires: perl(Carp) +BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121 +BuildRequires: perl(CPAN::Meta::YAML) >= 0.011 +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) +BuildRequires: perl(JSON::PP) >= 2.27300 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(version) >= 0.88 +BuildRequires: perl(warnings) +# Main test suite +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) >= 0.20 +BuildRequires: perl(IO::Dir) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Storable) +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 +Requires: perl(version) >= 0.88 + +# Parse-CPAN-Meta merged into CPAN-Meta 2.150008 +# Provide not added in order to avoid either epoch bump or self-obsoletion +Obsoletes: perl-Parse-CPAN-Meta < 1:1.4422 + +# Avoid doc-file dependencies +%{?perl_default_filter} + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CPAN::Meta::Converter\\)$ +%global __requires_exclude %{__requires_exclude}|^perl\\(CPAN::Meta::Requirements\\)$ + +%description +Software distributions released to the CPAN include a META.json or, for older +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. + +%prep +%setup -q -n CPAN-Meta-%{version} + +# silence rpmlint warnings +perl -MConfig -pi -e 's,^#!.*perl,$Config{startperl},' t/*.t + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} UNINST=0 +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} %{buildroot} + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING.mkdn history README Todo t/ +%{perl_vendorlib}/CPAN/ +%{perl_vendorlib}/Parse/ +%{_mandir}/man3/CPAN::Meta.3* +%{_mandir}/man3/CPAN::Meta::Converter.3* +%{_mandir}/man3/CPAN::Meta::Feature.3* +%{_mandir}/man3/CPAN::Meta::History.3* +%{_mandir}/man3/CPAN::Meta::History::Meta_1_0.3* +%{_mandir}/man3/CPAN::Meta::History::Meta_1_1.3* +%{_mandir}/man3/CPAN::Meta::History::Meta_1_2.3* +%{_mandir}/man3/CPAN::Meta::History::Meta_1_3.3* +%{_mandir}/man3/CPAN::Meta::History::Meta_1_4.3* +%{_mandir}/man3/CPAN::Meta::Merge.3* +%{_mandir}/man3/CPAN::Meta::Prereqs.3* +%{_mandir}/man3/CPAN::Meta::Spec.3* +%{_mandir}/man3/CPAN::Meta::Validator.3* +%{_mandir}/man3/Parse::CPAN::Meta.3* + +%changelog +* Wed Apr 20 2022 Chunmei Xu - 1:2.150010-1 +- init from upstream