2010-03-16 16:43:45 +00:00
|
|
|
#
|
2010-07-19 13:09:52 +00:00
|
|
|
# spec file for package perl-AnyEvent (Version 5.261)
|
2010-03-16 16:43:45 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-07-19 13:09:52 +00:00
|
|
|
|
2010-03-16 16:43:45 +00:00
|
|
|
Name: perl-AnyEvent
|
2010-07-19 13:09:52 +00:00
|
|
|
Summary: Provide framework for multiple event loops
|
|
|
|
Version: 5.261
|
2010-03-16 16:43:45 +00:00
|
|
|
Release: 1
|
|
|
|
License: Artistic License, GPL
|
|
|
|
Group: Development/Libraries/Perl
|
2010-07-19 13:09:52 +00:00
|
|
|
Url: http://search.cpan.org/perldoc?AnyEvent
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}.tar.bz2
|
2010-03-16 16:43:45 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Recommends: perl(JSON) >= 2.09
|
2010-07-19 13:09:52 +00:00
|
|
|
Recommends: perl(EV) >= 3.4
|
2010-03-16 16:43:45 +00:00
|
|
|
Recommends: perl(JSON::XS) >= 2.2
|
2010-07-19 13:09:52 +00:00
|
|
|
Recommends: perl(Async::Interrupt) >= 1.0
|
|
|
|
Recommends: perl(Net::SLeay) >= 1.33
|
|
|
|
Recommends: perl(Guard) >= 1.02
|
|
|
|
BuildArch: noarch
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%description
|
2010-07-19 13:09:52 +00:00
|
|
|
Glib, POE, IO::Async, Event... CPAN offers event models by the dozen nowadays. So what is different about AnyEvent?
|
|
|
|
|
|
|
|
Executive Summary: AnyEvent is compatible, AnyEvent is free of policy and AnyEvent is small and efficient.
|
2010-03-16 16:43:45 +00:00
|
|
|
|
2010-07-19 13:09:52 +00:00
|
|
|
First and foremost, AnyEvent is not an event model itself, it only interfaces
|
|
|
|
to whatever event model the main program happens to use, in a pragmatic way.
|
|
|
|
For event models and certain classes of immortals alike, the statement "there
|
|
|
|
can only be one" is a bitter reality: In general, only one event loop can be
|
|
|
|
active at the same time in a process. AnyEvent cannot change this, but it can
|
|
|
|
hide the differences between those event loops.
|
2010-03-16 16:43:45 +00:00
|
|
|
|
2010-07-19 13:09:52 +00:00
|
|
|
Author: Marc Lehmann <schmorp@schmorp.de>
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%prep
|
2010-07-19 13:09:52 +00:00
|
|
|
%setup -n AnyEvent-%{version}
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%build
|
2010-07-19 13:09:52 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{__make}
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
2010-07-19 13:09:52 +00:00
|
|
|
make pure_install DESTDIR="%{buildroot}"
|
|
|
|
find %{buildroot} -type f -name .packlist -print0 | xargs -0 --no-run-if-empty rm -f
|
|
|
|
find %{buildroot} -depth -type d -print0 | xargs -0 --no-run-if-empty rmdir 2>/dev/null || true
|
2010-03-16 16:43:45 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2010-07-19 13:09:52 +00:00
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc COPYING Changes README
|
2010-03-16 16:43:45 +00:00
|
|
|
|
|
|
|
%changelog
|