# # spec file for package perl-App-perlbrew # # Copyright (c) 2025 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-perlbrew Name: perl-App-perlbrew Version: 1.10.0 Release: 0 # 1.01 -> normalize -> 1.10.0 %define cpan_version 1.01 License: MIT Summary: Manage perl installations in your $HOME URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/G/GU/GUGOD/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CPAN::Perl::Releases) >= 5.202.409.200 BuildRequires: perl(Capture::Tiny) >= 0.480 BuildRequires: perl(Devel::PatchPerl) >= 2.80 BuildRequires: perl(ExtUtils::MakeMaker) >= 7.22 BuildRequires: perl(File::Temp) >= 0.2304 BuildRequires: perl(File::Which) >= 1.210 BuildRequires: perl(JSON::PP) BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Tiny) >= 0.39 BuildRequires: perl(Path::Class) >= 0.330 BuildRequires: perl(Pod::Usage) >= 1.69 BuildRequires: perl(Test2::Plugin::IOEvents) >= 0.1.1 BuildRequires: perl(Test2::Plugin::NoWarnings) >= 0.100 BuildRequires: perl(Test2::V0) >= 0.000163 BuildRequires: perl(local::lib) >= 2.0.14 Requires: perl(CPAN::Perl::Releases) >= 5.202.409.200 Requires: perl(Capture::Tiny) >= 0.480 Requires: perl(Devel::PatchPerl) >= 2.80 Requires: perl(ExtUtils::MakeMaker) >= 7.22 Requires: perl(File::Temp) >= 0.2304 Requires: perl(JSON::PP) Requires: perl(Pod::Usage) >= 1.69 Requires: perl(local::lib) >= 2.0.14 Provides: perl(App::Perlbrew::HTTP) Provides: perl(App::Perlbrew::Path) Provides: perl(App::Perlbrew::Path::Installation) Provides: perl(App::Perlbrew::Path::Installations) Provides: perl(App::Perlbrew::Path::Root) Provides: perl(App::Perlbrew::Sys) Provides: perl(App::Perlbrew::Util) Provides: perl(App::perlbrew) = %{version} %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN BuildRequires: wget curl groff # MANUAL END %description perlbrew is a program to automate the building and installation of perl in an easy way. It provides multiple isolated perl environments, and a mechanism for you to switch between them. Everything are installed unter '~/perl5/perlbrew'. You then need to include a bashrc/cshrc provided by perlbrew to tweak the PATH for you. You then can benefit from not having to run 'sudo' commands to install cpan modules because those are installed inside your 'HOME' too. For the documentation of perlbrew usage see perlbrew command on at https://metacpan.org/, or by running 'perlbrew help', or by visiting at https://perlbrew.pl/. The following documentation features the API of 'App::perlbrew' module, and may not be remotely close to what your want to read. %prep %autosetup -n %{cpan_name}-%{cpan_version} -p1 # MANUAL BEGIN chmod a+x t/fake-bin/curl # MANUAL END %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 CONTRIBUTING.md README %license LICENSE %changelog