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 http://bugs.opensuse.org/
#


%define cpan_name Mojo-IOLoop-ReadWriteProcess


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

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
Url:            http://search.cpan.org/dist/Mojo-IOLoop-ReadWriteProcess/
Source0:        https://cpan.metacpan.org/authors/id/M/MU/MUDLER/%{cpan_name}-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Mojolicious)
BuildRequires:  perl(Test::More) >= 0.98
Requires:       perl(Mojolicious)
BuildArch:      noarch
%{perl_requires}

%description
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.

%prep
%setup -q -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 LICENSE minil.toml README.md

%changelog