187 lines
7.7 KiB
RPMSpec
187 lines
7.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Config-Model
|
|
#
|
|
# 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
|
|
Name: perl-Config-Model
|
|
Version: 2.155.0
|
|
Release: 0
|
|
# 2.155 -> normalize -> 2.155.0
|
|
%define cpan_version 2.155
|
|
License: LGPL-2.1-or-later
|
|
Summary: Framework to validate, migrate and edit configuration files
|
|
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(Carp::Assert::More)
|
|
BuildRequires: perl(Config::Model::Tester) >= 4.2.0
|
|
BuildRequires: perl(Config::Model::Tester::Setup)
|
|
BuildRequires: perl(File::HomeDir)
|
|
BuildRequires: perl(Hash::Merge) >= 0.12
|
|
BuildRequires: perl(JSON)
|
|
BuildRequires: perl(List::MoreUtils)
|
|
BuildRequires: perl(Log::Log4perl) >= 1.11
|
|
BuildRequires: perl(Module::Build) >= 0.34
|
|
BuildRequires: perl(Mouse)
|
|
BuildRequires: perl(Mouse::Role)
|
|
BuildRequires: perl(Mouse::Util)
|
|
BuildRequires: perl(Mouse::Util::TypeConstraints)
|
|
BuildRequires: perl(MouseX::NativeTraits)
|
|
BuildRequires: perl(MouseX::StrictConstructor)
|
|
BuildRequires: perl(Parse::RecDescent) >= 1.90.0
|
|
BuildRequires: perl(Path::Tiny) >= 0.070
|
|
BuildRequires: perl(Pod::POM)
|
|
BuildRequires: perl(Pod::Simple) >= 3.23
|
|
BuildRequires: perl(Regexp::Common)
|
|
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::Perl::Critic)
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Synopsis::Expectation)
|
|
BuildRequires: perl(Test::Warn) >= 0.11
|
|
BuildRequires: perl(Text::Levenshtein::Damerau)
|
|
BuildRequires: perl(YAML::Tiny)
|
|
BuildRequires: perl(boolean)
|
|
BuildRequires: perl(feature)
|
|
BuildRequires: perl(parent)
|
|
Requires: perl(Carp::Assert::More)
|
|
Requires: perl(File::HomeDir)
|
|
Requires: perl(Hash::Merge) >= 0.12
|
|
Requires: perl(JSON)
|
|
Requires: perl(List::MoreUtils)
|
|
Requires: perl(Log::Log4perl) >= 1.11
|
|
Requires: perl(Mouse)
|
|
Requires: perl(Mouse::Role)
|
|
Requires: perl(Mouse::Util)
|
|
Requires: perl(Mouse::Util::TypeConstraints)
|
|
Requires: perl(MouseX::NativeTraits)
|
|
Requires: perl(MouseX::StrictConstructor)
|
|
Requires: perl(Parse::RecDescent) >= 1.90.0
|
|
Requires: perl(Path::Tiny) >= 0.070
|
|
Requires: perl(Pod::POM)
|
|
Requires: perl(Pod::Simple) >= 3.23
|
|
Requires: perl(Regexp::Common)
|
|
Requires: perl(Text::Levenshtein::Damerau)
|
|
Requires: perl(YAML::Tiny)
|
|
Requires: perl(feature)
|
|
Requires: perl(parent)
|
|
Provides: perl(Config::Model) = %{version}
|
|
Provides: perl(Config::Model::Annotation) = %{version}
|
|
Provides: perl(Config::Model::AnyId) = %{version}
|
|
Provides: perl(Config::Model::AnyThing) = %{version}
|
|
Provides: perl(Config::Model::Backend::Any) = %{version}
|
|
Provides: perl(Config::Model::Backend::CdsFile) = %{version}
|
|
Provides: perl(Config::Model::Backend::Fstab) = %{version}
|
|
Provides: perl(Config::Model::Backend::IniFile) = %{version}
|
|
Provides: perl(Config::Model::Backend::Json) = %{version}
|
|
Provides: perl(Config::Model::Backend::PerlFile) = %{version}
|
|
Provides: perl(Config::Model::Backend::PlainFile) = %{version}
|
|
Provides: perl(Config::Model::Backend::ShellVar) = %{version}
|
|
Provides: perl(Config::Model::BackendMgr) = %{version}
|
|
Provides: perl(Config::Model::BackendTrackOrder) = %{version}
|
|
Provides: perl(Config::Model::CheckList) = %{version}
|
|
Provides: perl(Config::Model::Describe) = %{version}
|
|
Provides: perl(Config::Model::DumpAsData) = %{version}
|
|
Provides: perl(Config::Model::Dumper) = %{version}
|
|
Provides: perl(Config::Model::Exception) = %{version}
|
|
Provides: perl(Config::Model::FuseUI) = %{version}
|
|
Provides: perl(Config::Model::HashId) = %{version}
|
|
Provides: perl(Config::Model::IdElementReference) = %{version}
|
|
Provides: perl(Config::Model::Instance) = %{version}
|
|
Provides: perl(Config::Model::Iterator) = %{version}
|
|
Provides: perl(Config::Model::ListId) = %{version}
|
|
Provides: perl(Config::Model::Lister) = %{version}
|
|
Provides: perl(Config::Model::Loader) = %{version}
|
|
Provides: perl(Config::Model::Node) = %{version}
|
|
Provides: perl(Config::Model::ObjTreeScanner) = %{version}
|
|
Provides: perl(Config::Model::Report) = %{version}
|
|
Provides: perl(Config::Model::Role::ComputeFunction) = %{version}
|
|
Provides: perl(Config::Model::Role::Constants) = %{version}
|
|
Provides: perl(Config::Model::Role::FileHandler) = %{version}
|
|
Provides: perl(Config::Model::Role::Grab) = %{version}
|
|
Provides: perl(Config::Model::Role::HelpAsText) = %{version}
|
|
Provides: perl(Config::Model::Role::NodeLoader) = %{version}
|
|
Provides: perl(Config::Model::Role::Utils) = %{version}
|
|
Provides: perl(Config::Model::Role::WarpMaster) = %{version}
|
|
Provides: perl(Config::Model::SearchElement) = %{version}
|
|
Provides: perl(Config::Model::SimpleUI) = %{version}
|
|
Provides: perl(Config::Model::TermUI) = %{version}
|
|
Provides: perl(Config::Model::TreeSearcher) = %{version}
|
|
Provides: perl(Config::Model::TypeConstraints) = %{version}
|
|
Provides: perl(Config::Model::Utils::GenClassPod) = %{version}
|
|
Provides: perl(Config::Model::Value) = %{version}
|
|
Provides: perl(Config::Model::Value::LayeredInclude) = %{version}
|
|
Provides: perl(Config::Model::ValueComputer) = %{version}
|
|
Provides: perl(Config::Model::WarpedNode) = %{version}
|
|
Provides: perl(Config::Model::Warper) = %{version}
|
|
%undefine __perllib_provides
|
|
Recommends: perl(Fuse)
|
|
Recommends: perl(Text::Levenshtein::Damerau)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Config::Model enables a project developer to provide an interactive
|
|
configuration editor (graphical, curses based or plain terminal) to users.
|
|
|
|
To provide these tools, Config::Model needs:
|
|
|
|
* A description of the structure and constraints of the project's
|
|
configuration (fear not, a GUI is available with App::Cme)
|
|
|
|
* A module to read and write configuration data (aka a backend class).
|
|
|
|
With the elements above, Config::Model generates interactive configuration
|
|
editors (with integrated help and data validation). These editors can be
|
|
graphical (with Config::Model::TkUI), curses based (with
|
|
Config::Model::CursesUI) or based on ReadLine.
|
|
|
|
Smaller models targeted for configuration upgrades can also be created:
|
|
|
|
* only upgrade and migration specifications are required
|
|
|
|
* unknown parameters can be accepted
|
|
|
|
A command line is provided to perform configuration upgrade with a single
|
|
command.
|
|
|
|
%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 build-from-git.md Changes CONTRIBUTING.md MODELS README.md TODO
|
|
%license LICENSE
|
|
|
|
%changelog
|