%define module Term-Screen %define version 1.03 %define name perl-%{module} %define release %mkrel 7 name: %{name} version: %{version} release: %{release} summary: A simple all-Perl Term::Cap based screen positioning module license: Artistic group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/Term/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif buildarch: noarch buildroot: %{_tmppath}/%{name}-%{version} %description Term::Screen is a very simple screen positioning module that should work wherever C<Term::Cap> does. It is set up for Unix using stty's but these dependences are isolated by evals in the C<new> constructor. Thus you may create a child module implementing Screen with MS-DOS, ioctl, or other means to get raw and unblocked input. This is not a replacement for Curses -- it has no memory. This was written so that it could be easily changed to fit nasty systems, and to be available first thing. The input functions getch, key_pressed, echo, and noecho are implemented so as to work under a fairly standard Unix system. They use 'stty' to set raw and no echo modes and turn on auto flush. All of these are 'eval'ed so that this class can be inherited for new definitions easily. Term::Screen was designed to be "required", then used with object syntax as shown above. One quirk (which the author was used to so he didn't care) is that for function key translation, no delay is set. So for many terminals to get an esc character, you have to hit another char after it, generally another esc. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check # tests seems to be interactive only #%make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{perl_vendorlib}/Term %_mandir/man3/* %changelog * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.03-7mdv2009.0 + Revision: 258509 - rebuild * Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.03-6mdv2009.0 + Revision: 246525 - rebuild * Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 1.03-4mdv2008.1 + Revision: 136360 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.03-4mdv2008.0 + Revision: 86966 - rebuild * Tue Aug 29 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.03-3mdv2007.0 - rewrite spec file * Fri Apr 28 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.03-2mdk - Fix SPEC according to Perl Policy - Source URL - URL - use mkrel * Sun May 29 2005 Lev Givon <lev@columbia.edu> 1.03-1mdk - Adapted cpan2rpm-generated spec for Mandrake.