File perl-IO-Event.spec of Package perl-IO-Event
#
# spec file for package perl-IO-Event
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: perl-IO-Event
Version: 0.813
Release: 0
%define cpan_name IO-Event
Summary: Tied Filehandles for Nonblocking IO with Object Callbacks
License: 2011-2013 Google, Inc. This module may be used/copied/etc on the same terms as Perl itself. This module is packaged for Fedora by Emmanuel Seyman <emmanuel@seyman.fr>
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MU/MUIR/modules/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(AnyEvent)
BuildRequires: perl(Event)
BuildRequires: perl(List::MoreUtils)
Requires: perl(List::MoreUtils)
%{perl_requires}
%description
IO::Event provides a object-based callback system for handling nonblocking
IO. The design goal is to provide a system that just does the right thing
w/o the user needing to think about it much.
All APIs are kept as simple as possible yet at the same time, all
functionality is accesible if needed. Simple things are easy. Hard things
are possible.
Most of the time file handling syntax will work fine: '<$filehandle>' and
'print $filehandle 'stuff''.
IO::Event provides automatic buffering of output (with a callback to
throttle). It provides automatic line-at-a-time input.
After initial setup, call 'IO::Event::loop()'.
IO::Event was originally written to use Event. IO::Event still defaults to
using Event but it can now use AnyEvent or its own event loop.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog