86 lines
3.0 KiB
RPMSpec
86 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package perl-IPC-System-Options
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name IPC-System-Options
|
|
Name: perl-IPC-System-Options
|
|
Version: 0.341.0
|
|
Release: 0
|
|
# 0.341 -> normalize -> 0.341.0
|
|
%define cpan_version 0.341
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Perl's system(), readpipe()/qx, IPC::Run's run(), start() (with more options)
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Capture::Tiny)
|
|
BuildRequires: perl(File::Temp) >= 0.2307
|
|
BuildRequires: perl(IPC::Run)
|
|
BuildRequires: perl(Log::ger::Format) >= 0.18.0
|
|
BuildRequires: perl(Log::ger::Format::MultilevelLog)
|
|
BuildRequires: perl(Proc::ChildError)
|
|
BuildRequires: perl(String::ShellQuote)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::More) >= 0.98
|
|
Requires: perl(Capture::Tiny)
|
|
Requires: perl(IPC::Run)
|
|
Requires: perl(Log::ger::Format) >= 0.18.0
|
|
Requires: perl(Log::ger::Format::MultilevelLog)
|
|
Requires: perl(Proc::ChildError)
|
|
Requires: perl(String::ShellQuote)
|
|
Provides: perl(IPC::System::Options) = %{version}
|
|
%undefine __perllib_provides
|
|
Recommends: perl(Log::ger) >= 0.38.0
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module provides replacement (wrapper) for Perl's 'system()',
|
|
'readpipe()' (qx//, a.k.a. the backtick operator), as well as IPC::Run's
|
|
'start()' and 'run()'. The wrappers give you options like forcing/avoiding
|
|
use of shell (like what IPC::System::Simple offers you), logging the
|
|
arguments and/or output (using Log::ger), temporarily setting environment
|
|
variables, temporarily setting working directory, dying on non-zero exit
|
|
code, capturing (or tee-ing) output (stdout/stderr) (using Capture::Tiny),
|
|
and a few others. They are meant as a convenience so you can just call
|
|
'system()' (or the other wrapper target) instead of doing some additional
|
|
setup and cleanup yourself.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%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 Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|