# # spec file for package perl-Config-Model-Tester # # 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 Config-Model-Tester Name: perl-Config-Model-Tester Version: 4.7.0 Release: 0 # 4.007 -> normalize -> 4.7.0 %define cpan_version 4.007 License: LGPL-2.1-or-later Summary: Test framework for Config::Model URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DD/DDUMONT/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Copy::Recursive) BuildRequires: perl(Log::Log4perl) >= 1.11 BuildRequires: perl(Module::Build) >= 0.34 BuildRequires: perl(Path::Tiny) BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::File::Contents) BuildRequires: perl(Test::Log::Log4perl) BuildRequires: perl(Test::Memory::Cycle) BuildRequires: perl(Test::Warn) Requires: perl(File::Copy::Recursive) Requires: perl(Log::Log4perl) >= 1.11 Requires: perl(Path::Tiny) Requires: perl(Test::Differences) Requires: perl(Test::Exception) Requires: perl(Test::File::Contents) Requires: perl(Test::Log::Log4perl) Requires: perl(Test::Memory::Cycle) Requires: perl(Test::Warn) Provides: perl(Config::Model::Tester) = %{version} Provides: perl(Config::Model::Tester::Setup) = %{version} %undefine __perllib_provides %{perl_requires} %description This class provides a way to test configuration models with tests files. This class was designed to tests several models and run several tests cases per model. A specific layout for test files must be followed. %prep %autosetup -n %{cpan_name}-%{cpan_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