Files
perl-Config-Model-OpenSsh/perl-Config-Model-OpenSsh.spec
Dirk Stoecker a22bf49f3f Accepting request 863101 from devel:languages:perl:autoupdate
- updated to 2.8.4.2
   see /usr/share/doc/packages/perl-Config-Model-OpenSsh/Changes
  2.8.4.2 2021-01-13
    Update:
      * Support for OpenSsh 8.4
      * update copyright year

OBS-URL: https://build.opensuse.org/request/show/863101
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-Model-OpenSsh?expand=0&rev=9
2021-01-14 14:30:35 +00:00

95 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Config-Model-OpenSsh
#
# Copyright (c) 2021 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.8.4.2
Release: 0
Summary: OpenSSH config editor
License: LGPL-2.1-or-later
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
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Config::Model) >= 2.134
BuildRequires: perl(Config::Model::Backend::Any)
BuildRequires: perl(Config::Model::BackendMgr)
BuildRequires: perl(Config::Model::Tester) >= 4.001
BuildRequires: perl(Config::Model::Tester::Setup)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(Log::Log4perl) >= 1.11
BuildRequires: perl(Module::Build) >= 0.340000
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.134
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 editors (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 programs.
Once this module is installed, you can edit '/etc/ssh/sshd_config' with run
(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}
%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