2011-07-05 12:03:10 +00:00
|
|
|
#
|
2011-08-26 08:23:16 +00:00
|
|
|
# spec file for package perl-AnyEvent
|
2011-07-05 12:03:10 +00:00
|
|
|
#
|
2012-02-10 23:01:57 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-05 12:03:10 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-08-26 08:23:16 +00:00
|
|
|
|
2010-03-16 16:43:45 +00:00
|
|
|
Name: perl-AnyEvent
|
2012-09-04 13:01:44 +00:00
|
|
|
Version: 7.02
|
2012-02-10 23:01:57 +00:00
|
|
|
Release: 0
|
2011-08-25 15:44:28 +00:00
|
|
|
%define cpan_name AnyEvent
|
- updated to 7.01
- fail with EPROTO in AnyEvent::Handle wqhen TLS is requested but
not available, instead of throwing an exception.
- use File::Spec to get the tmpdir in t/*, to avoid needless
failures on (most, not mine :) windows boxes.
- new handle read types: tls_detect and tls_autostart.
- child watchers are broken in POE 1.352 (also many earlier
versions) and there seems to be no way to work around it, as POE
itself is inherently racy. Document this regression and add a delay
in t/68_poe_03_child.t for the time being.
- new module AnyEvent::IO, that is a frontend to either a pure-perl
synchronous I/O implementation (AnyEvent::IO::Perl), or to the
asynchronous I/O extension IO::AIO (AnyEvent::IO::IOAIO).
- load /etc/hosts only when DNS has no answer.
- stat /etc/hosts on every access and reload it if it changed.
- load /etc/hosts via AnyEvent::IO - potentially asynchronous.
- fix a buggy croak in the dh parameter reading in AnyEvent::TLS.
- AnyEvent::Log log_to_file and log_to_path now use AnyEvent::IO. As
a side effect, they now use true appending as opposed to libc
appending, and the file might not have been opened when the function
returns.
- the default logging level was not properly documented in a variety of
places, this has hopefully been rectified.
- updated uts46data.pl for unicode 6.1.0.
- made log messages generated by AnyEvent submodules not
include the package name anymore, as it will be logged
by default already.
- upgrade to the trick used by common-sense 3.5 to work
around extra warning torture/breakage under perl 5.15.x.
- log messages by anyevent are now ucfirst, are usually full
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-AnyEvent?expand=0&rev=38
2012-05-25 03:24:48 +00:00
|
|
|
Summary: the DBI of event loop programming
|
2012-02-10 23:01:57 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2011-09-19 08:28:14 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-02-10 23:01:57 +00:00
|
|
|
Url: http://search.cpan.org/dist/AnyEvent/
|
2011-08-25 15:44:28 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
|
2011-07-05 12:03:10 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-25 15:44:28 +00:00
|
|
|
BuildRequires: perl
|
2010-03-16 16:43:45 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-09-19 08:28:14 +00:00
|
|
|
#BuildRequires: perl(AnyEvent)
|
- updated to 7.01
- fail with EPROTO in AnyEvent::Handle wqhen TLS is requested but
not available, instead of throwing an exception.
- use File::Spec to get the tmpdir in t/*, to avoid needless
failures on (most, not mine :) windows boxes.
- new handle read types: tls_detect and tls_autostart.
- child watchers are broken in POE 1.352 (also many earlier
versions) and there seems to be no way to work around it, as POE
itself is inherently racy. Document this regression and add a delay
in t/68_poe_03_child.t for the time being.
- new module AnyEvent::IO, that is a frontend to either a pure-perl
synchronous I/O implementation (AnyEvent::IO::Perl), or to the
asynchronous I/O extension IO::AIO (AnyEvent::IO::IOAIO).
- load /etc/hosts only when DNS has no answer.
- stat /etc/hosts on every access and reload it if it changed.
- load /etc/hosts via AnyEvent::IO - potentially asynchronous.
- fix a buggy croak in the dh parameter reading in AnyEvent::TLS.
- AnyEvent::Log log_to_file and log_to_path now use AnyEvent::IO. As
a side effect, they now use true appending as opposed to libc
appending, and the file might not have been opened when the function
returns.
- the default logging level was not properly documented in a variety of
places, this has hopefully been rectified.
- updated uts46data.pl for unicode 6.1.0.
- made log messages generated by AnyEvent submodules not
include the package name anymore, as it will be logged
by default already.
- upgrade to the trick used by common-sense 3.5 to work
around extra warning torture/breakage under perl 5.15.x.
- log messages by anyevent are now ucfirst, are usually full
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-AnyEvent?expand=0&rev=38
2012-05-25 03:24:48 +00:00
|
|
|
#BuildRequires: perl(AnyEvent::AIO)
|
2011-09-19 08:28:14 +00:00
|
|
|
#BuildRequires: perl(AnyEvent::Debug)
|
|
|
|
#BuildRequires: perl(AnyEvent::DNS)
|
|
|
|
#BuildRequires: perl(AnyEvent::Handle)
|
|
|
|
#BuildRequires: perl(AnyEvent::Impl::Perl)
|
|
|
|
#BuildRequires: perl(AnyEvent::Impl::Qt::Io)
|
|
|
|
#BuildRequires: perl(AnyEvent::Impl::Qt::Timer)
|
- updated to 7.01
- fail with EPROTO in AnyEvent::Handle wqhen TLS is requested but
not available, instead of throwing an exception.
- use File::Spec to get the tmpdir in t/*, to avoid needless
failures on (most, not mine :) windows boxes.
- new handle read types: tls_detect and tls_autostart.
- child watchers are broken in POE 1.352 (also many earlier
versions) and there seems to be no way to work around it, as POE
itself is inherently racy. Document this regression and add a delay
in t/68_poe_03_child.t for the time being.
- new module AnyEvent::IO, that is a frontend to either a pure-perl
synchronous I/O implementation (AnyEvent::IO::Perl), or to the
asynchronous I/O extension IO::AIO (AnyEvent::IO::IOAIO).
- load /etc/hosts only when DNS has no answer.
- stat /etc/hosts on every access and reload it if it changed.
- load /etc/hosts via AnyEvent::IO - potentially asynchronous.
- fix a buggy croak in the dh parameter reading in AnyEvent::TLS.
- AnyEvent::Log log_to_file and log_to_path now use AnyEvent::IO. As
a side effect, they now use true appending as opposed to libc
appending, and the file might not have been opened when the function
returns.
- the default logging level was not properly documented in a variety of
places, this has hopefully been rectified.
- updated uts46data.pl for unicode 6.1.0.
- made log messages generated by AnyEvent submodules not
include the package name anymore, as it will be logged
by default already.
- upgrade to the trick used by common-sense 3.5 to work
around extra warning torture/breakage under perl 5.15.x.
- log messages by anyevent are now ucfirst, are usually full
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-AnyEvent?expand=0&rev=38
2012-05-25 03:24:48 +00:00
|
|
|
#BuildRequires: perl(AnyEvent::IO)
|
|
|
|
#BuildRequires: perl(AnyEvent::IO::IOAIO)
|
|
|
|
#BuildRequires: perl(AnyEvent::IO::Perl)
|
2011-09-19 08:28:14 +00:00
|
|
|
#BuildRequires: perl(AnyEvent::Log)
|
|
|
|
#BuildRequires: perl(AnyEvent::Loop)
|
|
|
|
#BuildRequires: perl(AnyEvent::Socket)
|
|
|
|
#BuildRequires: perl(AnyEvent::Strict)
|
|
|
|
#BuildRequires: perl(AnyEvent::TLS)
|
|
|
|
#BuildRequires: perl(AnyEvent::Util)
|
|
|
|
#BuildRequires: perl(Cocoa::EventLoop)
|
|
|
|
#BuildRequires: perl(EV) >= 4.00
|
|
|
|
#BuildRequires: perl(Event)
|
|
|
|
#BuildRequires: perl(Event::Lib)
|
|
|
|
#BuildRequires: perl(FLTK) >= 0.532
|
|
|
|
#BuildRequires: perl(Glib) >= 1.210
|
|
|
|
#BuildRequires: perl(Guard)
|
- updated to 7.01
- fail with EPROTO in AnyEvent::Handle wqhen TLS is requested but
not available, instead of throwing an exception.
- use File::Spec to get the tmpdir in t/*, to avoid needless
failures on (most, not mine :) windows boxes.
- new handle read types: tls_detect and tls_autostart.
- child watchers are broken in POE 1.352 (also many earlier
versions) and there seems to be no way to work around it, as POE
itself is inherently racy. Document this regression and add a delay
in t/68_poe_03_child.t for the time being.
- new module AnyEvent::IO, that is a frontend to either a pure-perl
synchronous I/O implementation (AnyEvent::IO::Perl), or to the
asynchronous I/O extension IO::AIO (AnyEvent::IO::IOAIO).
- load /etc/hosts only when DNS has no answer.
- stat /etc/hosts on every access and reload it if it changed.
- load /etc/hosts via AnyEvent::IO - potentially asynchronous.
- fix a buggy croak in the dh parameter reading in AnyEvent::TLS.
- AnyEvent::Log log_to_file and log_to_path now use AnyEvent::IO. As
a side effect, they now use true appending as opposed to libc
appending, and the file might not have been opened when the function
returns.
- the default logging level was not properly documented in a variety of
places, this has hopefully been rectified.
- updated uts46data.pl for unicode 6.1.0.
- made log messages generated by AnyEvent submodules not
include the package name anymore, as it will be logged
by default already.
- upgrade to the trick used by common-sense 3.5 to work
around extra warning torture/breakage under perl 5.15.x.
- log messages by anyevent are now ucfirst, are usually full
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-AnyEvent?expand=0&rev=38
2012-05-25 03:24:48 +00:00
|
|
|
#BuildRequires: perl(IO::AIO) >= 4.13
|
2011-09-19 08:28:14 +00:00
|
|
|
#BuildRequires: perl(IO::Async::Loop) >= 0.33
|
|
|
|
#BuildRequires: perl(Irssi)
|
|
|
|
#BuildRequires: perl(JSON)
|
|
|
|
#BuildRequires: perl(JSON::XS)
|
|
|
|
#BuildRequires: perl(Net::DNS::Resolver)
|
|
|
|
#BuildRequires: perl(Net::SSLeay)
|
|
|
|
#BuildRequires: perl(POE)
|
|
|
|
#BuildRequires: perl(Qt)
|
|
|
|
#BuildRequires: perl(Qt::isa)
|
|
|
|
#BuildRequires: perl(Qt::slots)
|
|
|
|
#BuildRequires: perl(Socket6)
|
|
|
|
#BuildRequires: perl(Tk)
|
2010-07-19 13:09:53 +00:00
|
|
|
Recommends: perl(Async::Interrupt) >= 1
|
2011-09-19 08:28:14 +00:00
|
|
|
Recommends: perl(EV) >= 4
|
2010-07-19 13:09:53 +00:00
|
|
|
Recommends: perl(Guard) >= 1.02
|
2010-03-16 16:43:45 +00:00
|
|
|
Recommends: perl(JSON) >= 2.09
|
|
|
|
Recommends: perl(JSON::XS) >= 2.2
|
2010-07-19 13:09:53 +00:00
|
|
|
Recommends: perl(Net::SSLeay) >= 1.33
|
2011-09-19 08:28:14 +00:00
|
|
|
Recommends: perl(Task::Weaken)
|
|
|
|
%{perl_requires}
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%description
|
2011-08-25 15:44:28 +00:00
|
|
|
the AnyEvent manpage provides a uniform interface to various event loops.
|
|
|
|
This allows module authors to use event loop functionality without forcing
|
|
|
|
module users to use a specific event loop implementation (since more than
|
|
|
|
one event loop cannot coexist peacefully).
|
|
|
|
|
|
|
|
The interface itself is vaguely similar, but not identical to the the Event
|
|
|
|
manpage module.
|
2010-03-16 16:43:45 +00:00
|
|
|
|
2011-09-19 08:28:14 +00:00
|
|
|
During the first call of any watcher-creation method, the module tries to
|
|
|
|
detect the currently loaded event loop by probing whether one of the
|
|
|
|
following modules is already loaded: the EV manpage, the AnyEvent::Loop
|
|
|
|
manpage, the Event manpage, the Glib manpage, the Tk manpage, the
|
|
|
|
Event::Lib manpage, the Qt manpage, the POE manpage. The first one found is
|
|
|
|
used. If none are detected, the module tries to load the first four modules
|
|
|
|
in the order given; but note that if the EV manpage is not available, the
|
|
|
|
pure-perl the AnyEvent::Loop manpage should always work, so the other two
|
|
|
|
are not normally tried.
|
|
|
|
|
|
|
|
Because AnyEvent first checks for modules that are already loaded, loading
|
|
|
|
an event model explicitly before first using AnyEvent will likely make that
|
|
|
|
model the default. For example:
|
|
|
|
|
|
|
|
use Tk;
|
|
|
|
use AnyEvent;
|
|
|
|
|
|
|
|
# .. AnyEvent will likely default to Tk
|
|
|
|
|
|
|
|
The _likely_ means that, if any module loads another event model and starts
|
|
|
|
using it, all bets are off - this case should be very rare though, as very
|
|
|
|
few modules hardcode event loops without announcing this very loudly.
|
|
|
|
|
|
|
|
The pure-perl implementation of AnyEvent is called 'AnyEvent::Loop'. Like
|
|
|
|
other event modules you can load it explicitly and enjoy the high
|
|
|
|
availability of that event loop :)
|
|
|
|
|
2010-03-16 16:43:45 +00:00
|
|
|
%prep
|
2011-08-25 15:44:28 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%build
|
2011-08-25 15:44:28 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%install
|
2010-07-19 13:09:53 +00:00
|
|
|
%perl_make_install
|
2011-06-11 22:05:46 +00:00
|
|
|
%perl_process_packlist
|
2011-08-25 15:44:28 +00:00
|
|
|
%perl_gen_filelist
|
2010-03-16 16:43:45 +00:00
|
|
|
|
2011-08-25 15:44:28 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2011-09-19 08:28:14 +00:00
|
|
|
%doc Changes COPYING mktest README util
|
2010-03-16 16:43:45 +00:00
|
|
|
|
2011-07-05 12:03:10 +00:00
|
|
|
%changelog
|