%define upstream_name Curses-Toolkit %define upstream_version 0.207 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: An about dialog window License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Curses/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Carp) BuildRequires: perl(Curses) BuildRequires: perl(Data::Dumper) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0 BuildRequires: perl(File::Find) BuildRequires: perl(File::Temp) BuildRequires: perl(HTML::Parser) BuildRequires: perl(IO::Pty::Easy) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(List::Util) BuildRequires: perl(Moose) >= 0.920.0 BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::FollowPBP) BuildRequires: perl(MooseX::Has::Sugar) BuildRequires: perl(POE) BuildRequires: perl(Params::Validate) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) >= 0.940.0 BuildRequires: perl(Tie::Array::Iterable) BuildRequires: perl(UNIVERSAL::require) >= 0.130.0 BuildRequires: perl(aliased) BuildRequires: perl(overload) BuildRequires: perl(parent) BuildRequires: perl(relative) BuildArch: noarch %description This module tries to be a modern curses toolkit, based on the Curses module, to build "semi-graphical" user interfaces easily. *WARNING* : This is still in "beta" version, not all the features are implemented, and the API may change. However, most of the components are there, and things should not change that much in the future... Still, don't use it in production, and don't consider it stable. the Curses::Toolkit manpage is meant to be used with a mainloop, which is not part of this module. I recommend you the POE::Component::Curses manpage, which is probably what you want. the POE::Component::Curses manpage uses Curses::Toolkit, but provides a mainloop and handles keyboard, mouse, timer and other events, whereas Curses::Toolkit is just the drawing library. See the example above. the 'spawn' method returns a the Curses::Toolkit manpage object, which you can call methods on. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %files %doc Changes LICENSE META.yml README examples %{_mandir}/man3/* %perl_vendorlib/* %changelog * Fri Jul 08 2011 jquelin <jquelin> 0.207.0-1.mga2 + Revision: 120462 - update to 0.207 * Wed Mar 09 2011 jquelin <jquelin> 0.206.0-1.mga1 + Revision: 67018 - update to 0.206 * Wed Feb 16 2011 jquelin <jquelin> 0.203.0-1.mga1 + Revision: 52188 - update to 0.203 * Fri Jan 28 2011 jquelin <jquelin> 0.100.680-1.mga1 + Revision: 42890 - mageia rebuild - imported package perl-Curses-Toolkit