# # spec file for package perl-CPANPLUS-Dist-Build # # 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 CPANPLUS-Dist-Build Name: perl-CPANPLUS-Dist-Build Version: 0.900.0 Release: 0 # 0.90 -> normalize -> 0.900.0 %define cpan_version 0.90 License: Artistic-1.0 OR GPL-1.0-or-later Summary: CPANPLUS plugin to install packages that use Build.PL URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CPANPLUS) >= 0.840.0 BuildRequires: perl(ExtUtils::Install) >= 1.42 BuildRequires: perl(IPC::Cmd) >= 0.42 BuildRequires: perl(Locale::Maketext::Simple) BuildRequires: perl(Module::Build) >= 0.32 BuildRequires: perl(Module::Load) >= 0.16 BuildRequires: perl(Module::Load::Conditional) >= 0.30 BuildRequires: perl(Params::Check) >= 0.26 BuildRequires: perl(Test::Harness) >= 3.16 Requires: perl(CPANPLUS) >= 0.840.0 Requires: perl(ExtUtils::Install) >= 1.42 Requires: perl(IPC::Cmd) >= 0.42 Requires: perl(Locale::Maketext::Simple) Requires: perl(Module::Build) >= 0.32 Requires: perl(Module::Load) >= 0.16 Requires: perl(Module::Load::Conditional) >= 0.30 Requires: perl(Params::Check) >= 0.26 Requires: perl(Test::Harness) >= 3.16 Provides: perl(CPANPLUS::Dist::Build) = %{version} Provides: perl(CPANPLUS::Dist::Build::Constants) = %{version} %undefine __perllib_provides %{perl_requires} %description 'CPANPLUS::Dist::Build' is a distribution class for 'Module::Build' related modules. Using this package, you can create, install and uninstall perl modules. It inherits from 'CPANPLUS::Dist'. Normal users won't have to worry about the interface to this module, as it functions transparently as a plug-in to 'CPANPLUS' and will just 'Do The Right Thing' when it's loaded. %prep %autosetup -n %{cpan_name}-%{cpan_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 Changes.old README %license LICENSE %changelog