Files
perl-Config-Model-OpenSsh/perl-Config-Model-OpenSsh.spec
2025-08-12 18:12:38 +02:00

96 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Config-Model-OpenSsh
#
# Copyright (c) 2025 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Config-Model-OpenSsh
Name: perl-Config-Model-OpenSsh
Version: 2.9.9.1
Release: 0
License: LGPL-2.1-or-later
Summary: OpenSSH config editor
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
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Config::Model) >= 2.146
BuildRequires: perl(Config::Model::Backend::Any)
BuildRequires: perl(Config::Model::BackendMgr)
BuildRequires: perl(Config::Model::Tester) >= 4.1.0
BuildRequires: perl(Config::Model::Tester::Setup)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(Log::Log4perl) >= 1.11
BuildRequires: perl(Module::Build) >= 0.34
BuildRequires: perl(Mouse)
BuildRequires: perl(Mouse::Role)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Warn)
Requires: perl(Config::Model) >= 2.146
Requires: perl(Config::Model::Backend::Any)
Requires: perl(File::HomeDir)
Requires: perl(Log::Log4perl) >= 1.11
Requires: perl(Mouse)
Requires: perl(Mouse::Role)
Recommends: perl(App::Cme)
Recommends: perl(Config::Model::TkUI)
%{perl_requires}
%description
This module provides a configuration editor (and models) for the
configuration files of OpenSSH. ('/etc/ssh/sshd_config',
'/etc/ssh/ssh_config' and '~/.ssh/config').
This module can also be used to modify safely the content of these
configuration files from a Perl program.
Once this module is installed, you can edit '/etc/ssh/sshd_config' with (as
root) :
# cme edit sshd
To edit _/etc/ssh/ssh_config_, run (as root):
# cme edit ssh
To edit _~/.ssh/config_, run as a normal user:
$ cme edit ssh
%prep
%autosetup -n %{cpan_name}-%{version} -p1
%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 Changes README-build-from-git.md
%license LICENSE
%changelog