automatic update OBS-URL: https://build.opensuse.org/request/show/707955 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-Model?expand=0&rev=45
132 lines
4.6 KiB
RPMSpec
132 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Config-Model
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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-Config-Model
|
|
Version: 2.135
|
|
Release: 0
|
|
%define cpan_name Config-Model
|
|
Summary: Create tools to validate, migrate and edit configuration files
|
|
License: LGPL-2.1-or-later
|
|
Group: Development/Libraries/Perl
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DD/DDUMONT/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Carp::Assert::More)
|
|
BuildRequires: perl(Config::Model::Tester) >= 4.002
|
|
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.340000
|
|
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) >= v1.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::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Warn) >= 0.11
|
|
BuildRequires: perl(Text::Levenshtein::Damerau)
|
|
BuildRequires: perl(YAML::Tiny)
|
|
BuildRequires: perl(boolean)
|
|
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) >= v1.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(parent)
|
|
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
|
|
%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 build-from-git.md Changes CONTRIBUTING.md MODELS README.md TODO
|
|
%license LICENSE
|
|
|
|
%changelog
|