# # spec file for package perl-App-cpm # # Copyright (c) 2023 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 App-cpm Name: perl-App-cpm Version: 0.997014 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Fast CPAN module installer URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CPAN::02Packages::Search) >= 0.100.0 BuildRequires: perl(CPAN::DistnameInfo) BuildRequires: perl(CPAN::Meta) BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130 BuildRequires: perl(CPAN::Meta::YAML) BuildRequires: perl(Command::Runner) >= 0.100 BuildRequires: perl(ExtUtils::Install) >= 2.20 BuildRequires: perl(ExtUtils::InstallPaths) >= 0.002 BuildRequires: perl(File::Copy::Recursive) BuildRequires: perl(File::pushd) BuildRequires: perl(HTTP::Tinyish) >= 0.12 BuildRequires: perl(JSON::PP) >= 2.27300 BuildRequires: perl(Menlo::CLI::Compat) >= 1.9021 BuildRequires: perl(Module::Build::Tiny) >= 0.034 BuildRequires: perl(Module::CPANfile) BuildRequires: perl(Module::Metadata) BuildRequires: perl(Module::cpmfile) >= 0.001 BuildRequires: perl(Parallel::Pipes::App) >= 0.100 BuildRequires: perl(Parse::PMFile) >= 0.43 BuildRequires: perl(Proc::ForkSafe) >= 0.1.0 BuildRequires: perl(local::lib) >= 2.000018 BuildRequires: perl(parent) BuildRequires: perl(version) >= 0.77 Requires: perl(CPAN::02Packages::Search) >= 0.100.0 Requires: perl(CPAN::DistnameInfo) Requires: perl(CPAN::Meta) Requires: perl(CPAN::Meta::Requirements) >= 2.130 Requires: perl(CPAN::Meta::YAML) Requires: perl(Command::Runner) >= 0.100 Requires: perl(ExtUtils::Install) >= 2.20 Requires: perl(ExtUtils::InstallPaths) >= 0.002 Requires: perl(File::Copy::Recursive) Requires: perl(File::pushd) Requires: perl(HTTP::Tinyish) >= 0.12 Requires: perl(JSON::PP) >= 2.27300 Requires: perl(Menlo::CLI::Compat) >= 1.9021 Requires: perl(Module::CPANfile) Requires: perl(Module::Metadata) Requires: perl(Module::cpmfile) >= 0.001 Requires: perl(Parallel::Pipes::App) >= 0.100 Requires: perl(Parse::PMFile) >= 0.43 Requires: perl(Proc::ForkSafe) >= 0.1.0 Requires: perl(local::lib) >= 2.000018 Requires: perl(parent) Requires: perl(version) >= 0.77 Recommends: perl(Carton) %{perl_requires} %description cpm is a fast CPAN module installer, which uses Menlo in parallel. Moreover cpm keeps the each builds of distributions in your home directory, and reuses them later. That is, if prebuilts are available, cpm never builds distributions again, just copies the prebuilts into an appropriate directory. This is (of course!) inspired by Carmel. For tutorial, check out App::cpm::Tutorial. %prep %autosetup -n %{cpan_name}-%{version} %build perl Build.PL --installdirs=vendor ./Build build --flags=%{?_smp_mflags} %check ./Build test %install ./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc Changes %license LICENSE %changelog