# # spec file for package perl-CPAN-Meta # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name CPAN-Meta Name: perl-CPAN-Meta Version: 2.150010 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: The distribution metadata for a CPAN dist URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121 BuildRequires: perl(CPAN::Meta::YAML) >= 0.011 BuildRequires: perl(File::Temp) >= 0.20 BuildRequires: perl(JSON::PP) >= 2.27 BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(version) >= 0.88 Requires: perl(CPAN::Meta::Requirements) >= 2.121 Requires: perl(CPAN::Meta::YAML) >= 0.011 Requires: perl(JSON::PP) >= 2.27 Requires: perl(version) >= 0.88 %{perl_requires} %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. CPAN::Meta provides a simple class to represent this distribution metadata (or _distmeta_), along with some helpful methods for interrogating that data. The documentation below is only for the methods of the CPAN::Meta object. For information on the meaning of individual fields, consult the spec. %prep %autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes CONTRIBUTING.mkdn README Todo %license LICENSE %changelog