1 %include /usr/lib/rpm/macros.perl
2 Summary: Term-ReadKey perl module
3 Summary(pl): Modu³ perla Term-ReadKey
4 Name: perl-Term-ReadKey
8 Group: Development/Languages/Perl
9 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Term/TermReadKey-%{version}.tar.gz
10 BuildRequires: rpm-perlprov >= 3.0.3-16
11 BuildRequires: perl >= 5.6.1
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 Obsoletes: perl-TermReadKey
16 This module, ReadKey, provides ioctl control for terminals so the
17 input modes can be changed (thus allowing reads of a single character
18 at a time), and also provides non-blocking reads of stdin, as well as
19 several other terminal related features, including
20 retrieval/modification of the screen size, and retrieval/modification
21 of the control characters.
24 Modu³ perla Term-ReadKey.
27 Este módulo fornece controle via ioctl para terminais, de tal forma
28 que seus modos de entrada possam ser modificados (desta forma
29 permitindo a leitura de um caracter somente por vez) e também fornece
30 leitura não bloqueantes da entrada padrão (stdin), bem como várias
31 outras características relacionadas a terminais, entre elas a
32 recuperação/modificação do tamanho da tela e dos caracteres de
36 %setup -q -n TermReadKey-%{version}
40 %{__make} OPTIMIZE="%{rpmcflags}"
43 rm -rf $RPM_BUILD_ROOT
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_sitearch}/Term/ReadKey.pm
56 %dir %{perl_sitearch}/auto/Term/ReadKey
57 %{perl_sitearch}/auto/Term/ReadKey/autosplit.ix
58 %{perl_sitearch}/auto/Term/ReadKey/ReadKey.bs
59 %attr(755,root,root) %{perl_sitearch}/auto/Term/ReadKey/ReadKey.so