From 1c278c8a802d3596e7084161ac16aea18c31741fcfe409bc8b1a0a918414b4e2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 17 Apr 2015 07:32:17 +0000 Subject: [PATCH] Accepting request 297468 from devel:languages:perl:autoupdate automatic update OBS-URL: https://build.opensuse.org/request/show/297468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-Model?expand=0&rev=4 --- Config-Model-2.064.tar.gz | 3 -- Config-Model-2.068.tar.gz | 3 ++ cpanspec.yml | 20 +++++++++ perl-Config-Model.changes | 50 +++++++++++++++++++++++ perl-Config-Model.spec | 86 +++++++++++++++++---------------------- 5 files changed, 110 insertions(+), 52 deletions(-) delete mode 100644 Config-Model-2.064.tar.gz create mode 100644 Config-Model-2.068.tar.gz create mode 100644 cpanspec.yml diff --git a/Config-Model-2.064.tar.gz b/Config-Model-2.064.tar.gz deleted file mode 100644 index 6e50eef..0000000 --- a/Config-Model-2.064.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf61f70f8f1a0105ed6448d8cdfefc291b13f52535b3adbf252f0c273597dfac -size 324462 diff --git a/Config-Model-2.068.tar.gz b/Config-Model-2.068.tar.gz new file mode 100644 index 0000000..db799b8 --- /dev/null +++ b/Config-Model-2.068.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a7e462a58304a643f21cd65edb5cbe0adfedd209bf903f91aeb3a5f4a6f390d +size 327859 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b320f5 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Config-Model.changes b/perl-Config-Model.changes index 4bf1a69..c61f1ab 100644 --- a/perl-Config-Model.changes +++ b/perl-Config-Model.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Thu Apr 16 21:32:08 UTC 2015 - coolo@suse.com + +- updated to 2.068 + see /usr/share/doc/packages/perl-Config-Model/Changes + + 2.068 2015-03-29 + + Small improvements: + * Value: request configuration save when initial load + detects problem like duplicated or mismatched values in config file + * Loader: raise an exception when ':' action is used with a value element + + New features: + * C::M::Anything::grab: type param can also be an array ref + * Instance: added 'update' method + + 2.067 2015-03-01 + + Bug fix release: + * SimpleUI: fix 'll' command (failed without argument) + * C::M::Backend::Any: + + added show_message method (delegated to node) + * added missing doc for node attribute + * C::M::Instance: callback attributes are now rw + (should fix test failures of Config::Model::Itself) + * C::M::AnyThing: delegates show_message to instance + + 2.066 2015-02-15 + + * C::M::Instance: + + added on_message_cb and show_message parameters + * C::M::GenClassPod: + * added missing doc for gen_class_pod parameters + * generate doc in a reproducible way by using "sort keys". This should + fix Debian problem with unreproducible build found on libconfig-model-dpkg-perl + and libconfig-model-itself-perl + * dist.ini: use free.fr address instead of cpan.org to avoid problems with + automated release e-mail + + 2.065 2015-01-06 + + Bug fixes: + * Value: avoid undef warning when creating error message + * Node: Must load override class to be able to use it... + + New (small) feature: + * Value: warning or error message defined in a model can contain + a $_ to show the bad value to user + ------------------------------------------------------------------- Mon Dec 29 13:31:32 UTC 2014 - lars@linux-schulserver.de diff --git a/perl-Config-Model.spec b/perl-Config-Model.spec index 07300ea..ef086e3 100644 --- a/perl-Config-Model.spec +++ b/perl-Config-Model.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Config-Model # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,91 +17,65 @@ Name: perl-Config-Model -Version: 2.064 +Version: 2.068 Release: 0 -%define cpan_name Config-Model +%define cpan_name Config-Model Summary: Create tools to validate, migrate and edit configuration files -License: LGPL-2.0+ +License: LGPL-2.1+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Config-Model/ -#Source: http://www.cpan.org/authors/id/D/DD/DDUMONT/Config-Model-%%{version}.tar.gz -Source0: %{cpan_name}-%{version}.tar.gz +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(AnyEvent) -BuildRequires: perl(Carp) BuildRequires: perl(Carp::Assert::More) BuildRequires: perl(Config::Model::Tester) >= 2.046 -BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exception::Class) -BuildRequires: perl(Fcntl) -BuildRequires: perl(File::Copy) BuildRequires: perl(File::HomeDir) -BuildRequires: perl(File::Path) -BuildRequires: perl(File::Slurp) -BuildRequires: perl(Fuse) BuildRequires: perl(Hash::Merge) >= 0.12 -BuildRequires: perl(IO::File) BuildRequires: perl(JSON) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Log::Log4perl) >= 1.11 -BuildRequires: perl(Module::Build) +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(POSIX) BuildRequires: perl(Parse::RecDescent) >= v1.90.0 BuildRequires: perl(Path::Tiny) BuildRequires: perl(Pod::POM) -BuildRequires: perl(Probe::Perl) -BuildRequires: perl(Scalar::Util) BuildRequires: perl(Term::ReadLine::Gnu) BuildRequires: perl(Term::ReadLine::Perl) -BuildRequires: perl(Term::ReadLine::Perl) -BuildRequires: perl(Test::Command) >= 0.08 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::Wrap) -BuildRequires: perl(YAML::Any) >= 0.30 -BuildRequires: perl(namespace::autoclean) -BuildRequires: perl(warnings::register) -Requires: perl(AnyEvent) -Requires: perl(Carp) +BuildRequires: perl(YAML) Requires: perl(Carp::Assert::More) -Requires: perl(Data::Dumper) Requires: perl(Exception::Class) -Requires: perl(Fcntl) -Requires: perl(File::Copy) Requires: perl(File::HomeDir) -Requires: perl(File::Path) -Requires: perl(Fuse) Requires: perl(Hash::Merge) >= 0.12 -Requires: perl(IO::File) 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(POSIX) Requires: perl(Parse::RecDescent) >= v1.90.0 Requires: perl(Path::Tiny) Requires: perl(Pod::POM) -Requires: perl(Scalar::Util) Requires: perl(Text::Diff) -Requires: perl(Text::Wrap) -Requires: perl(YAML::Any) >= 0.30 -Requires: perl(namespace::autoclean) -Requires: perl(warnings::register) -Recommends: perl(Term::ReadLine::Perl) -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +Recommends: perl(Fuse) +Recommends: perl(YAML) %{perl_requires} %description @@ -109,10 +83,14 @@ 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: -* Describe the structure and constraints of his project's configuration +* * + + Describe the structure and constraints of his project's configuration (fear not, a GUI is available) -* Find a way to read and write configuration data using read/write backend +* * + + Find a way to read and write configuration data using read/write backend provided by Config::Model or other Perl modules. With the elements above, Config::Model will generate interactive @@ -120,6 +98,19 @@ configuration editors (with integrated help and data validation). These editors can be graphical (with the Config::Model::TkUI manpage), curses based (with the Config::Model::CursesUI manpage) 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} @@ -134,11 +125,8 @@ based (with the Config::Model::CursesUI manpage) or based on ReadLine. ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root) -%doc Changes contrib LICENSE MODELS script TODO weaver.ini +%defattr(-,root,root,755) +%doc Changes contrib examples LICENSE MODELS script TODO %changelog