Files
perl-Config-Model/perl-Config-Model.spec

131 lines
4.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Config-Model
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: perl-Config-Model
Version: 2.097
Release: 0
%define cpan_name Config-Model
Summary: Create tools to validate, migrate and edit configuration files
License: LGPL-2.1+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Config-Model/
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
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp::Assert::More)
BuildRequires: perl(Config::Model::Tester) >= 2.053
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::Memory::Cycle)
BuildRequires: perl(Test::Warn) >= 0.11
BuildRequires: perl(Text::Diff)
BuildRequires: perl(Text::Levenshtein::Damerau)
BuildRequires: perl(YAML)
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::Diff)
Requires: perl(Text::Levenshtein::Damerau)
Requires: perl(parent)
Recommends: perl(Fuse)
Recommends: perl(Text::Levenshtein::Damerau)
Recommends: perl(YAML)
%{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. This can be one of the
read/write backends provided by Config::Model or a custom backend.
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 LICENSE MODELS README.md TODO
%changelog