Files
perl-App-Cme/perl-App-Cme.spec

112 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-App-Cme
#
# 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.
Accepting request 640478 from devel:languages:perl:autoupdate - Fix autogenerated changes - updated to 1.029 see /usr/share/doc/packages/perl-App-Cme/Changes 1.029 2018-08-20 Bug fixes: * fix options diplayed by bash completion Smoke test fixes: * fix extra in output for perl < 5.18 - updated to 1.028 see /usr/share/doc/packages/perl-App-Cme/Changes 1.028 2018-06-20 Documentation improvements: * add bugs section in cme doc * improve doc of modify command Improve output of cme: * check and modify commands are now silent when no problem is found. * run and modify commands show detailed script actions on configuration data in verbose mode * dump command: indicate -format choices in usage output * check command: show progress messages only in verbose mode. * fix command: show "running fix" message only in verbose mode * common: remove using xxx model message Bash completion fixes: * remove obsolete -backend option * fix bash completion of run command Other: * requires Config::Model 2.124 * run: allow untracked files when committing * cme: Simplify verbose option - updated to 1.027 see /usr/share/doc/packages/perl-App-Cme/Changes 1.027 2018-04-05 Improve cme run script: * add error message when application param is missing * leave capture parameters alone * add syntax for multi-line instructions * replace_var sub accepts several variabless * fix error message when run is called without argument Other: * Using cme option '-file' with value '-' is deprecated * update copyright year in dist.ini - updated to 1.026 see /usr/share/doc/packages/perl-App-Cme/Changes 1.026 2017-12-18 New experimental feature: * By default, Shellvar backend from Config::Model 2.116 keeps parameter order when writing back configuration data. This broke cme test that check that data is written with canonical order * add -canonical option to let data be written back according to model order (i.e. the previous behavior of shellvar backend) * Fix test broken by new ShellVar behavior (using -canonical option) * Depends on Config::Model 2.116 (for -canonical option) On-going deprecation of obscure multi backend feature * cme: remove obsolete -backend option (since only one backend can now be available, there's no need to an option to choose an alternative backend) 1.025 2017-12-14 Some new features for the rather new 'run' subcommand: * add -cat option option to show the script * -doc option also shows commit message New feature for the older 'dump' subcommand * -format accepts yaml or yml * -format value is now case insensitive * accept -format cds (alias to cml) Misc: * improve doc of modify command 1.024 2017-10-22 Some new features for the rather new 'run' subcommand: * add --no-commit option (Debian #877986) * add --commit option * can now specify default value for script args Other bug fixes: * run: remove warning about Log4Perl initialisation * run: fix option description * cme: update Log4Perl init in doc 1.023 2017-09-10 Bug fixes: * add missing backup option to read/write commands (like cme edit, fix, modify ...) * die if both require_config_file and require_backend_argument are set in app file (in Config/Model/[system|user|application].d) OBS-URL: https://build.opensuse.org/request/show/640478 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Cme?expand=0&rev=20
2018-10-07 22:11:43 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name App-Cme
Name: perl-App-Cme
Version: 1.41.0
Release: 0
# 1.041 -> normalize -> 1.41.0
%define cpan_version 1.041
Accepting request 640478 from devel:languages:perl:autoupdate - Fix autogenerated changes - updated to 1.029 see /usr/share/doc/packages/perl-App-Cme/Changes 1.029 2018-08-20 Bug fixes: * fix options diplayed by bash completion Smoke test fixes: * fix extra in output for perl < 5.18 - updated to 1.028 see /usr/share/doc/packages/perl-App-Cme/Changes 1.028 2018-06-20 Documentation improvements: * add bugs section in cme doc * improve doc of modify command Improve output of cme: * check and modify commands are now silent when no problem is found. * run and modify commands show detailed script actions on configuration data in verbose mode * dump command: indicate -format choices in usage output * check command: show progress messages only in verbose mode. * fix command: show "running fix" message only in verbose mode * common: remove using xxx model message Bash completion fixes: * remove obsolete -backend option * fix bash completion of run command Other: * requires Config::Model 2.124 * run: allow untracked files when committing * cme: Simplify verbose option - updated to 1.027 see /usr/share/doc/packages/perl-App-Cme/Changes 1.027 2018-04-05 Improve cme run script: * add error message when application param is missing * leave capture parameters alone * add syntax for multi-line instructions * replace_var sub accepts several variabless * fix error message when run is called without argument Other: * Using cme option '-file' with value '-' is deprecated * update copyright year in dist.ini - updated to 1.026 see /usr/share/doc/packages/perl-App-Cme/Changes 1.026 2017-12-18 New experimental feature: * By default, Shellvar backend from Config::Model 2.116 keeps parameter order when writing back configuration data. This broke cme test that check that data is written with canonical order * add -canonical option to let data be written back according to model order (i.e. the previous behavior of shellvar backend) * Fix test broken by new ShellVar behavior (using -canonical option) * Depends on Config::Model 2.116 (for -canonical option) On-going deprecation of obscure multi backend feature * cme: remove obsolete -backend option (since only one backend can now be available, there's no need to an option to choose an alternative backend) 1.025 2017-12-14 Some new features for the rather new 'run' subcommand: * add -cat option option to show the script * -doc option also shows commit message New feature for the older 'dump' subcommand * -format accepts yaml or yml * -format value is now case insensitive * accept -format cds (alias to cml) Misc: * improve doc of modify command 1.024 2017-10-22 Some new features for the rather new 'run' subcommand: * add --no-commit option (Debian #877986) * add --commit option * can now specify default value for script args Other bug fixes: * run: remove warning about Log4Perl initialisation * run: fix option description * cme: update Log4Perl init in doc 1.023 2017-09-10 Bug fixes: * add missing backup option to read/write commands (like cme edit, fix, modify ...) * die if both require_config_file and require_backend_argument are set in app file (in Config/Model/[system|user|application].d) OBS-URL: https://build.opensuse.org/request/show/640478 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-Cme?expand=0&rev=20
2018-10-07 22:11:43 +00:00
License: LGPL-2.1-or-later
Summary: Configuration data checker or editor based on Config::Model
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
2025-08-12 18:11:44 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(App::Cmd::Setup)
BuildRequires: perl(App::Cmd::Tester)
BuildRequires: perl(Config::Model) >= 2.148
BuildRequires: perl(Config::Model::FuseUI)
BuildRequires: perl(Config::Model::Lister)
BuildRequires: perl(Config::Model::ObjTreeScanner)
BuildRequires: perl(Config::Model::SimpleUI)
BuildRequires: perl(Config::Model::TermUI)
BuildRequires: perl(Config::Model::Utils::GenClassPod)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(JSON)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Module::Build) >= 0.34
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Pod::POM)
BuildRequires: perl(Pod::POM::View::Text)
BuildRequires: perl(Term::ANSIColor) >= 2.01
BuildRequires: perl(Test::File::Contents)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(YAML::PP)
Requires: perl(App::Cmd::Setup)
Requires: perl(Config::Model) >= 2.148
Requires: perl(Config::Model::FuseUI)
Requires: perl(Config::Model::Lister)
Requires: perl(Config::Model::ObjTreeScanner)
Requires: perl(Config::Model::SimpleUI)
Requires: perl(Config::Model::TermUI)
Requires: perl(Config::Model::Utils::GenClassPod)
Requires: perl(File::HomeDir)
Requires: perl(JSON)
Requires: perl(Log::Log4perl)
Requires: perl(Path::Tiny)
Requires: perl(Pod::POM)
Requires: perl(Pod::POM::View::Text)
Requires: perl(YAML::PP)
Provides: perl(App::Cme) = %{version}
Provides: perl(App::Cme::Command::check) = %{version}
Provides: perl(App::Cme::Command::dump) = %{version}
Provides: perl(App::Cme::Command::edit) = %{version}
Provides: perl(App::Cme::Command::fix) = %{version}
Provides: perl(App::Cme::Command::fusefs) = %{version}
Provides: perl(App::Cme::Command::gen_class_pod) = %{version}
Provides: perl(App::Cme::Command::list) = %{version}
Provides: perl(App::Cme::Command::migrate) = %{version}
Provides: perl(App::Cme::Command::modify) = %{version}
Provides: perl(App::Cme::Command::run) = %{version}
Provides: perl(App::Cme::Command::search) = %{version}
Provides: perl(App::Cme::Command::shell) = %{version}
Provides: perl(App::Cme::Command::update) = %{version}
Provides: perl(App::Cme::Common) = %{version}
Provides: perl(App::Cme::Run::Var) = %{version}
%undefine __perllib_provides
Recommends: perl(Config::Model::TkUI) >= 1.370
%{perl_requires}
%description
Configuration data checker or editor based on Config::Model
%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
%license LICENSE
%changelog