# # spec file for package perl-App-cpm # # Copyright (c) 2020 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/ # Name: perl-App-cpm Version: 0.995 Release: 0 %define cpan_name App-cpm Summary: Fast CPAN module installer License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CPAN::Common::Index) BuildRequires: perl(CPAN::DistnameInfo) BuildRequires: perl(CPAN::Meta) BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130000 BuildRequires: perl(CPAN::Meta::YAML) BuildRequires: perl(Class::Tiny) BuildRequires: perl(Command::Runner) >= 0.100 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(Parallel::Pipes) >= 0.004 BuildRequires: perl(local::lib) >= 2.000018 BuildRequires: perl(parent) BuildRequires: perl(version) >= 0.77 Requires: perl(CPAN::Common::Index) Requires: perl(CPAN::DistnameInfo) Requires: perl(CPAN::Meta) Requires: perl(CPAN::Meta::Requirements) >= 2.130000 Requires: perl(CPAN::Meta::YAML) Requires: perl(Class::Tiny) Requires: perl(Command::Runner) >= 0.100 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(Parallel::Pipes) >= 0.004 Requires: perl(local::lib) >= 2.000018 Requires: perl(parent) Requires: perl(version) >= 0.77 Recommends: perl(Carton) Recommends: perl(IO::Uncompress::Gunzip) %{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 %setup -q -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 %defattr(-,root,root,755) %doc Changes README %license LICENSE %changelog