2006-06-14 22:32:12 +00:00
|
|
|
Name: perl-POE
|
2007-06-02 18:17:03 +00:00
|
|
|
Version: 0.9989
|
2007-03-22 16:08:48 +00:00
|
|
|
Release: 1%{?dist}
|
2006-06-14 22:32:12 +00:00
|
|
|
Summary: POE - portable multitasking and networking framework for Perl
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
2006-06-14 22:35:17 +00:00
|
|
|
License: GPL or Artistic
|
2006-06-14 22:32:12 +00:00
|
|
|
URL: http://search.cpan.org/dist/POE/
|
2007-06-02 18:17:03 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-%{version}.tar.gz
|
2006-06-14 22:32:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-06-02 18:17:03 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
# core
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
# cpan
|
|
|
|
BuildRequires: perl(Compress::Zlib) >= 1.33
|
|
|
|
BuildRequires: perl(Curses) >= 1.08
|
|
|
|
BuildRequires: perl(IO::Poll) >= 0.01
|
|
|
|
BuildRequires: perl(IO::Pty)
|
|
|
|
BuildRequires: perl(Event) >= 1.00
|
|
|
|
BuildRequires: perl(IO::Pty) >= 1.02
|
|
|
|
BuildRequires: perl(LWP) >= 5.79
|
|
|
|
BuildRequires: perl(Socket6) >= 0.14
|
|
|
|
BuildRequires: perl(Term::Cap) >= 1.09
|
|
|
|
BuildRequires: perl(Term::ReadKey) >= 2.21
|
|
|
|
BuildRequires: perl(Tk) >= 800.027
|
|
|
|
BuildRequires: perl(URI) >= 1.30
|
2006-06-14 22:32:12 +00:00
|
|
|
# waiting for update BZ#194521
|
2007-06-02 18:17:03 +00:00
|
|
|
#BuildRequires: perl(Gtk) >= 0.7009
|
|
|
|
# test
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2006-08-11 04:22:27 +00:00
|
|
|
# not picked up automatically
|
2007-06-02 18:17:03 +00:00
|
|
|
Requires: perl(Compress::Zlib)
|
|
|
|
Requires: perl(Event)
|
|
|
|
Requires: perl(IO::Pty)
|
|
|
|
Requires: perl(Socket6)
|
2006-06-21 04:24:05 +00:00
|
|
|
|
2006-06-14 22:32:12 +00:00
|
|
|
%description
|
2007-06-02 18:17:03 +00:00
|
|
|
POE is a framework for cooperative, event driven multitasking in Perl.
|
|
|
|
Other languages have similar frameworks. Python has Twisted. TCL has "the
|
|
|
|
event loop".
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
POE originally was developed as the core of a persistent object server and
|
2007-06-02 18:17:03 +00:00
|
|
|
runtime environment. It has evolved into a general purpose multitasking
|
|
|
|
and networking framework, encompassing and providing a consistent interface
|
|
|
|
to other event loops such as Event and the Tk and Gtk toolkits.
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
POE is written in layers, each building upon the previous. It's therefore
|
|
|
|
possible to use POE at varying levels of abstraction.
|
|
|
|
|
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n POE-%{version}
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
# make rpmlint happy...
|
|
|
|
chmod -c -x examples/*
|
|
|
|
find t/ -type f -exec chmod -c -x {} +
|
|
|
|
find t/ -type f -name '*.t' -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} +
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
# Filter unwanted Provides:
|
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_provides} $* |\
|
|
|
|
sed -e '/perl(POE::Kernel)/d; /perl(POE::Loop::Tk)/d'
|
|
|
|
EOF
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
%define __perl_provides %{_builddir}/POE-%{version}/%{name}-prov
|
|
|
|
chmod +x %{__perl_provides}
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
# Filter unwanted Requires:
|
|
|
|
cat << \EOF > %{name}-req
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_requires} $* |\
|
|
|
|
sed -e '/perl(Tk)/d; /perl(Test::More)/d; /perl(lib)/d'
|
|
|
|
EOF
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
%define __perl_requires %{_builddir}/POE-%{version}/%{name}-req
|
|
|
|
chmod +x %{__perl_requires}
|
2006-06-14 22:32:12 +00:00
|
|
|
|
2006-06-15 19:25:20 +00:00
|
|
|
|
2006-06-14 22:32:12 +00:00
|
|
|
%build
|
2006-08-11 04:22:27 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor --default
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
# yah. don't do the network tests
|
2007-06-02 18:17:03 +00:00
|
|
|
%{?!_with_network_tests: rm run_network_tests }
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2007-03-22 16:08:48 +00:00
|
|
|
|
2006-06-14 22:32:12 +00:00
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
2007-06-02 18:17:03 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} +
|
2006-06-14 22:32:12 +00:00
|
|
|
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
2007-03-22 16:08:48 +00:00
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2007-06-02 18:17:03 +00:00
|
|
|
# these tests fails under plague. Not quite sure why....
|
2007-03-22 16:08:48 +00:00
|
|
|
mv t/90_regression/rt1648-tied-stderr.t .
|
2007-06-02 18:17:03 +00:00
|
|
|
mv t/30_loops/50_tk/wheel_run.t .
|
2007-03-22 16:08:48 +00:00
|
|
|
|
|
|
|
# enable POD tests
|
|
|
|
#export POE_TEST_POD=1
|
2006-06-21 04:24:05 +00:00
|
|
|
|
2006-06-14 22:32:12 +00:00
|
|
|
# note that there are currently a number of tests that throw errors, but do
|
|
|
|
# not fail nor cause the build/suite to fail. For now just please be aware
|
|
|
|
# that there will be some noisy output as the tests are run.
|
|
|
|
# Reported upstream at http://rt.cpan.org/Public/Bug/Display.html?id=19878
|
|
|
|
make test
|
|
|
|
|
2007-06-02 18:17:03 +00:00
|
|
|
mv rt1648-tied-stderr.t t/90_regression/
|
|
|
|
mv wheel_run.t t/30_loops/50_tk/
|
2006-06-14 22:32:12 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-06-02 18:17:03 +00:00
|
|
|
%doc CHANGES HISTORY README examples/ TODO t/
|
2006-06-14 22:32:12 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2007-06-02 18:17:03 +00:00
|
|
|
* Sat May 19 2007 Chris Weyl <cweyl@alumni.drew.edu>
|
|
|
|
- spec cleanups, tweaks
|
|
|
|
- add t/ to doc
|
|
|
|
- move away from macroized versioning system
|
|
|
|
- no rebuild at this point
|
|
|
|
|
2007-03-24 03:22:47 +00:00
|
|
|
* Fri Mar 23 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.9989-1
|
|
|
|
- update to 0.9989
|
|
|
|
|
2007-03-22 16:08:48 +00:00
|
|
|
* Wed Mar 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.9917-1
|
|
|
|
- update to 0.9917. 0.3800-1, below, was never built/released to the wild.
|
|
|
|
|
|
|
|
* Mon Sep 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3800-1
|
|
|
|
- update to 0.38. 0.37-1, below, was never built/released to the wild.
|
|
|
|
|
|
|
|
* Mon Sep 11 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3700-1
|
|
|
|
- update to 0.37
|
|
|
|
- samples/ is now examples/
|
|
|
|
- add additional br's: perl(IO::Pty), perl(Test::Pod),
|
|
|
|
perl(Test::Pod::Coverage)
|
|
|
|
|
2006-09-01 04:17:28 +00:00
|
|
|
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3601-2
|
|
|
|
- bump for mass rebuild
|
|
|
|
|
2006-08-14 01:25:07 +00:00
|
|
|
* Sun Aug 13 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3601-1
|
|
|
|
- update to cpan ver 0.3601
|
|
|
|
|
2006-08-11 04:22:27 +00:00
|
|
|
* Thu Aug 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3600-1
|
|
|
|
- update to cpan ver 0.36
|
|
|
|
|
2006-06-21 04:24:05 +00:00
|
|
|
* Tue Jun 20 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3502-1
|
|
|
|
- filter errant provides. Also translate POE::Provides::foo modules to
|
|
|
|
POE::Provide::foo
|
|
|
|
- Bump to latest version released
|
|
|
|
|
2006-06-15 19:25:20 +00:00
|
|
|
* Thu Jun 15 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3501-2
|
|
|
|
- Nix test that was causing build to fail in plague
|
|
|
|
|
2006-06-14 22:35:17 +00:00
|
|
|
* Wed Jun 14 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3501-1
|
|
|
|
- bump release, minor cleanups per review.
|
|
|
|
|
2006-06-14 22:32:12 +00:00
|
|
|
* Fri Jun 09 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.3501-0
|
|
|
|
- Initial spec file for F-E
|