File perl-Mojo-IOLoop-ReadWriteProcess.spec of Package perl-Mojo-IOLoop-ReadWriteProcess

# spec file for package perl-Mojo-IOLoop-ReadWriteProcess
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%define cpan_name Mojo-IOLoop-ReadWriteProcess

%if %suse_version >= 1730
%ifarch x86_64
%bcond_without tests
%bcond_with tests
%bcond_with tests

Name:           perl-Mojo-IOLoop-ReadWriteProcess
Version:        0.11
Release:        0
Summary:        Mojo::IOLoop::ReadWriteProcess Perl module
License:        GPL-1.0+ OR Artistic-1.0
Group:          Development/Libraries/Perl
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Mojolicious)
BuildRequires:  perl(Test::More) >= 0.98
Requires:       perl(Mojolicious)
BuildArch:      noarch

Execute external programs or internal code blocks as separate process.
Mojo::IOLoop::ReadWriteProcess is yet another process manager, with the
aim to provide easy bi-directional IPC for background tasks.

%setup -q -n %{cpan_name}-%{version}

perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

./Build test

./Build install --destdir=%{buildroot} --create_packlist=0

%files -f %{name}.files
%doc Changes LICENSE minil.toml

openSUSE Build Service is sponsored by