2014-02-01 13:16:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Config-Model
|
|
|
|
#
|
2016-01-19 15:25:28 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-01 13:16:18 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Config-Model
|
2016-05-20 05:23:01 +00:00
|
|
|
Version: 2.083
|
2014-02-01 13:16:18 +00:00
|
|
|
Release: 0
|
2015-04-17 07:32:17 +00:00
|
|
|
%define cpan_name Config-Model
|
2014-02-01 13:16:18 +00:00
|
|
|
Summary: Create tools to validate, migrate and edit configuration files
|
2015-04-17 07:32:17 +00:00
|
|
|
License: LGPL-2.1+
|
2014-02-01 13:16:18 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Config-Model/
|
2015-04-17 07:32:17 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DD/DDUMONT/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-02-01 13:16:18 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Carp::Assert::More)
|
2016-04-06 06:51:21 +00:00
|
|
|
BuildRequires: perl(Config::Model::Tester) >= 2.053
|
2014-02-01 13:16:18 +00:00
|
|
|
BuildRequires: perl(File::HomeDir)
|
|
|
|
BuildRequires: perl(Hash::Merge) >= 0.12
|
|
|
|
BuildRequires: perl(JSON)
|
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
BuildRequires: perl(Log::Log4perl) >= 1.11
|
2015-04-17 07:32:17 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.340000
|
2014-02-01 13:16:18 +00:00
|
|
|
BuildRequires: perl(Mouse)
|
2015-04-17 07:32:17 +00:00
|
|
|
BuildRequires: perl(Mouse::Role)
|
|
|
|
BuildRequires: perl(Mouse::Util)
|
2014-02-01 13:16:18 +00:00
|
|
|
BuildRequires: perl(Mouse::Util::TypeConstraints)
|
|
|
|
BuildRequires: perl(MouseX::NativeTraits)
|
|
|
|
BuildRequires: perl(MouseX::StrictConstructor)
|
|
|
|
BuildRequires: perl(Parse::RecDescent) >= v1.90.0
|
2014-12-29 13:41:46 +00:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2014-02-01 13:16:18 +00:00
|
|
|
BuildRequires: perl(Pod::POM)
|
|
|
|
BuildRequires: perl(Term::ReadLine::Gnu)
|
|
|
|
BuildRequires: perl(Term::ReadLine::Perl)
|
|
|
|
BuildRequires: perl(Test::Differences)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Test::File::Contents)
|
|
|
|
BuildRequires: perl(Test::Memory::Cycle)
|
|
|
|
BuildRequires: perl(Test::Warn) >= 0.11
|
|
|
|
BuildRequires: perl(Text::Diff)
|
2015-09-21 04:53:37 +00:00
|
|
|
BuildRequires: perl(Text::Levenshtein::Damerau)
|
2015-04-17 07:32:17 +00:00
|
|
|
BuildRequires: perl(YAML)
|
2014-02-01 13:16:18 +00:00
|
|
|
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)
|
2015-04-17 07:32:17 +00:00
|
|
|
Requires: perl(Mouse::Role)
|
|
|
|
Requires: perl(Mouse::Util)
|
2014-02-01 13:16:18 +00:00
|
|
|
Requires: perl(Mouse::Util::TypeConstraints)
|
|
|
|
Requires: perl(MouseX::NativeTraits)
|
|
|
|
Requires: perl(MouseX::StrictConstructor)
|
|
|
|
Requires: perl(Parse::RecDescent) >= v1.90.0
|
2014-12-29 13:41:46 +00:00
|
|
|
Requires: perl(Path::Tiny)
|
2014-02-01 13:16:18 +00:00
|
|
|
Requires: perl(Pod::POM)
|
|
|
|
Requires: perl(Text::Diff)
|
2015-09-21 04:53:37 +00:00
|
|
|
Requires: perl(Text::Levenshtein::Damerau)
|
2015-04-17 07:32:17 +00:00
|
|
|
Recommends: perl(Fuse)
|
2015-09-21 04:53:37 +00:00
|
|
|
Recommends: perl(Text::Levenshtein::Damerau)
|
2015-04-17 07:32:17 +00:00
|
|
|
Recommends: perl(YAML)
|
2014-02-01 13:16:18 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Config::Model enables a project developer to provide an interactive
|
|
|
|
configuration editor (graphical, curses based or plain terminal) to his
|
|
|
|
users. For this he must:
|
|
|
|
|
2015-11-25 06:31:06 +00:00
|
|
|
* Describe the structure and constraints of his project's configuration (fear
|
|
|
|
not, a GUI is available)
|
2015-04-17 07:32:17 +00:00
|
|
|
|
2015-11-25 06:31:06 +00:00
|
|
|
* Find a way to read and write configuration data using read/write backend
|
|
|
|
provided by Config::Model or other Perl modules.
|
2014-02-01 13:16:18 +00:00
|
|
|
|
|
|
|
With the elements above, Config::Model will generate interactive
|
|
|
|
configuration editors (with integrated help and data validation). These
|
2015-11-25 06:31:06 +00:00
|
|
|
editors can be graphical (with Config::Model::TkUI), curses based (with
|
|
|
|
Config::Model::CursesUI) or based on ReadLine.
|
2014-02-01 13:16:18 +00:00
|
|
|
|
2015-04-17 07:32:17 +00:00
|
|
|
Smaller models targeted for configuration upgrades can also be created:
|
|
|
|
|
2015-11-25 06:31:06 +00:00
|
|
|
* only upgrade and migration specifications are required
|
2015-04-17 07:32:17 +00:00
|
|
|
|
2015-11-25 06:31:06 +00:00
|
|
|
* unknown parameters can be accepted
|
2015-04-17 07:32:17 +00:00
|
|
|
|
|
|
|
A command line is provided to perform configuration upgrade with a single
|
|
|
|
command.
|
|
|
|
|
2014-02-01 13:16:18 +00:00
|
|
|
%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
|
2015-04-17 07:32:17 +00:00
|
|
|
%defattr(-,root,root,755)
|
2015-09-21 04:53:37 +00:00
|
|
|
%doc Changes contrib examples LICENSE MODELS TODO
|
2014-02-01 13:16:18 +00:00
|
|
|
|
|
|
|
%changelog
|