8
0
forked from pool/perl-AnyEvent
Files
perl-AnyEvent/perl-AnyEvent.spec

80 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-AnyEvent (Version 5.261)
#
# 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
Name: perl-AnyEvent
Summary: Provide framework for multiple event loops
Version: 5.261
Release: 1
License: Artistic License, GPL
Group: Development/Libraries/Perl
Url: http://search.cpan.org/perldoc?AnyEvent
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl = %{perl_version}
Recommends: perl(JSON) >= 2.09
Recommends: perl(EV) >= 3.4
Recommends: perl(JSON::XS) >= 2.2
Recommends: perl(Async::Interrupt) >= 1.0
Recommends: perl(Net::SLeay) >= 1.33
Recommends: perl(Guard) >= 1.02
BuildArch: noarch
%description
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.
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.
Author: Marc Lehmann <schmorp@schmorp.de>
%prep
%setup -n AnyEvent-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make}
%check
%{__make} test
%install
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
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-, root, root, 0755)
%doc COPYING Changes README
%changelog