File perl-Danga-Socket.spec of Package perl-Danga-Socket

#
# spec file for package perl-Danga-Socket (Version 1.59)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define tarname       Danga-Socket

Name:           perl-%{tarname} 
Version:        1.59
Release:        0
Requires:       perl = %{perl_version}
Group:          Development/Libraries/Perl
License:        Artistic License; GPL v2 or later
URL:            http://search.cpan.org/~msergeant/Danga-Socket-1.59/
Summary:        Event loop and event-driven async socket base class
Source:         %{tarname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  perl(Socket)
BuildRequires:  perl(IO::Poll)
BuildRequires:  perl(fields)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(Sys::Syscall)
Requires:  perl(Socket)
Requires:  perl(IO::Poll)
Requires:  perl(fields)
Requires:  perl(POSIX)
Requires:  perl(Test::More)
Requires:  perl(Time::HiRes)
Requires:  perl(Sys::Syscall)

%description
This is an abstract base class for objects backed by a socket which provides the basic framework for event-driven asynchronous IO, designed to be fast. Danga::Socket is both a base class for objects, and an event loop.

Callers subclass Danga::Socket. Danga::Socket's constructor registers itself with the Danga::Socket event loop, and invokes callbacks on the object for readability, writability, errors, and other conditions.

Because Danga::Socket uses the "fields" module, your subclasses must too.



Authors:
--------
    Brad Fitzpatrick <brad@danga.com> 
    Michael Granger <ged@danga.com>
    Mark Smith <junior@danga.com>
    Matt Sergeant <matt@sergeant.org>

%prep
%setup -q -n %{tarname}-%{version}

%build
perl Makefile.PL
make
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Danga
%{perl_vendorarch}/auto/Danga
/var/adm/perl-modules/*

%changelog
* Sun Aug  3 2008 pzb@novell.com
- New package

openSUSE Build Service is sponsored by