forked from perl/perl-EV
77 lines
2.6 KiB
RPMSpec
77 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-EV
|
|
#
|
|
# 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 EV
|
|
Name: perl-EV
|
|
Version: 4.330.0
|
|
Release: 0
|
|
# 4.33 -> normalize -> 4.330.0
|
|
%define cpan_version 4.33
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Perl interface to libev, a high performance full-featured event loop
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
Patch0: ev_iouring.diff
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Canary::Stability)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|
BuildRequires: perl(common::sense)
|
|
Requires: perl(common::sense)
|
|
Provides: perl(EV) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module provides an interface to libev
|
|
(http://software.schmorp.de/pkg/libev.html). While the documentation below
|
|
is comprehensive, one might also consult the documentation of libev itself
|
|
(http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod or _perldoc
|
|
EV::libev_) for more subtle details on watcher semantics or some discussion
|
|
on the available backends, or how to force a specific backend with
|
|
'LIBEV_FLAGS', or just about in any case because it has much more detailed
|
|
information.
|
|
|
|
This module is very fast and scalable. It is actually so fast that you can
|
|
use it through the AnyEvent module, stay portable to other event loops (if
|
|
you don't rely on any watcher types not available through it) and still be
|
|
faster than with any other event loop currently supported in Perl.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p0
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%license COPYING
|
|
|
|
%changelog
|