138 lines
4.7 KiB
RPMSpec
138 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Rex
|
|
#
|
|
# 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 Rex
|
|
Name: perl-Rex
|
|
Version: 1.16.1
|
|
Release: 0
|
|
License: Apache-2.0
|
|
Summary: Automation framework for local and remote execution
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/F/FE/FERKI/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(AWS::Signature4)
|
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
|
BuildRequires: perl(Data::Validate::IP)
|
|
BuildRequires: perl(Devel::Caller)
|
|
BuildRequires: perl(Digest::HMAC_SHA1)
|
|
BuildRequires: perl(autodie)
|
|
#BuildRequires: perl(ExtUtils::MakeMaker) >= 7.11
|
|
BuildRequires: perl(File::ShareDir::Install) >= 0.60
|
|
BuildRequires: perl(HTTP::Request)
|
|
BuildRequires: perl(HTTP::Request::Common)
|
|
BuildRequires: perl(Hash::Merge)
|
|
BuildRequires: perl(IO::Pty)
|
|
BuildRequires: perl(JSON::MaybeXS)
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
BuildRequires: perl(List::Util) >= 1.45
|
|
BuildRequires: perl(Module::Load::Conditional)
|
|
BuildRequires: perl(Module::Metadata)
|
|
BuildRequires: perl(Net::OpenSSH)
|
|
BuildRequires: perl(Net::OpenSSH::ShellQuoter)
|
|
BuildRequires: perl(Net::SFTP::Foreign)
|
|
BuildRequires: perl(Sort::Naturally)
|
|
BuildRequires: perl(String::Escape)
|
|
BuildRequires: perl(Sub::Override)
|
|
BuildRequires: perl(Term::ReadKey)
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::Output)
|
|
BuildRequires: perl(Test::UseAllModules)
|
|
BuildRequires: perl(Test::Warnings) >= 0.33
|
|
BuildRequires: perl(Text::Glob)
|
|
#BuildRequires: perl(Text::Wrap) >= >= 0, != 2023.0509
|
|
BuildRequires: perl(URI)
|
|
BuildRequires: perl(URI::QueryParam)
|
|
BuildRequires: perl(XML::Simple)
|
|
BuildRequires: perl(version)
|
|
#BuildRequires: perl(YAML) >= >= 0, != 1.25
|
|
Requires: perl(AWS::Signature4)
|
|
Requires: perl(Data::Validate::IP)
|
|
Requires: perl(Devel::Caller)
|
|
Requires: perl(Digest::HMAC_SHA1)
|
|
Requires: perl(HTTP::Request)
|
|
Requires: perl(HTTP::Request::Common)
|
|
Requires: perl(Hash::Merge)
|
|
Requires: perl(IO::Pty)
|
|
Requires: perl(JSON::MaybeXS)
|
|
Requires: perl(LWP::UserAgent)
|
|
Requires: perl(List::Util) >= 1.45
|
|
Requires: perl(Module::Load::Conditional)
|
|
Requires: perl(Net::OpenSSH)
|
|
Requires: perl(Net::OpenSSH::ShellQuoter)
|
|
Requires: perl(Net::SFTP::Foreign)
|
|
Requires: perl(Sort::Naturally)
|
|
Requires: perl(Term::ReadKey)
|
|
Requires: perl(Text::Glob)
|
|
#Requires: perl(Text::Wrap) >= >= 0, != 2023.0509
|
|
Requires: perl(URI)
|
|
Requires: perl(URI::QueryParam)
|
|
Requires: perl(XML::Simple)
|
|
Requires: perl(version)
|
|
#Requires: perl(YAML) >= >= 0, != 1.25
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: perl(ExtUtils::MakeMaker) > 7.12
|
|
BuildRequires: git-core
|
|
BuildRequires: perl(Text::Wrap) > 2023.0509
|
|
BuildRequires: perl(YAML) > 1.25
|
|
Requires: perl(Text::Wrap) > 2023.0509
|
|
Requires: perl(YAML) > 1.25
|
|
# MANUAL END
|
|
|
|
%description
|
|
Rex is an automation framework that is friendly to any combinations of
|
|
local and remote execution, push and pull style of management, or
|
|
imperative and declarative approach.
|
|
|
|
Its flexibility makes it a great fit for many different use cases, but most
|
|
commonly Rex is used to automate application deployment and data center
|
|
infrastructure management tasks.
|
|
|
|
See Rex::Commands for a starting point of available built-in commands.
|
|
|
|
See at https://metacpan.org/pod/distribution/Rex/bin/rex for more
|
|
information about how to use rex on the command line.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc ChangeLog CONTRIBUTING.md CONTRIBUTORS README
|
|
%license LICENSE
|
|
|
|
%changelog
|