# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Term %define pnam ReadKey Summary: Term::ReadKey Perl module Summary(cs): Modul Term::ReadKey pro Perl Summary(da): Perlmodul Term::ReadKey Summary(de): Term::ReadKey Perl Modul Summary(es): Módulo de Perl Term::ReadKey Summary(fr): Module Perl Term::ReadKey Summary(it): Modulo di Perl Term::ReadKey Summary(ja): Term::ReadKey Perl ¥â¥¸¥å¡¼¥ë Summary(ko): Term::ReadKey ÆÞ ¸ðÁÙ Summary(no): Perlmodul Term::ReadKey Summary(pl): Modu³ Perla Term::ReadKey Summary(pt): Módulo de Perl Term::ReadKey Summary(pt_BR): Módulo Perl Term::ReadKey Summary(ru): íÏÄÕÌØ ÄÌÑ Perl Term::ReadKey Summary(sv): Term::ReadKey Perlmodul Summary(uk): íÏÄÕÌØ ÄÌÑ Perl Term::ReadKey Summary(zh_CN): Term::ReadKey Perl Ä£¿é Name: perl-Term-ReadKey Version: 2.21 Release: 1 License: GPL Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6.1 BuildRequires: rpm-perlprov >= 3.0.3-16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: perl-%{pdir}%{pnam} %description This module, ReadKey, provides ioctl control for terminals so the input modes can be changed (thus allowing reads of a single character at a time), and also provides non-blocking reads of stdin, as well as several other terminal related features, including retrieval/modification of the screen size, and retrieval/modification of the control characters. %description -l pl Modu³ perla Term::ReadKey. Modu³ ten daje obs³ugê ioctl dla terminali, umo¿liwiaj±c zmianê trybu wej¶cia (co pozwala na czytanie po jednym znaku) oraz nieblokuj±cy odczyt z wej¶cia, a tak¿e inne funkcje zwi±zane z terminalem, w tym odczytywanie i modyfikowanie rozmiaru ekranu oraz odczytywanie i modyfikowanie znaków kontrolnych. %description -l pt_BR Este módulo fornece controle via ioctl para terminais, de tal forma que seus modos de entrada possam ser modificados (desta forma permitindo a leitura de um caracter somente por vez) e também fornece leitura não bloqueantes da entrada padrão (stdin), bem como várias outras características relacionadas a terminais, entre elas a recuperação/modificação do tamanho da tela e dos caracteres de controle. %prep %setup -q -n TermReadKey-%{version} %build perl Makefile.PL %{__make} OPTIMIZE="%{rpmcflags}" %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README %{perl_sitearch}/Term/ReadKey.pm %dir %{perl_sitearch}/auto/Term/ReadKey # empty autosplit.ix #%{perl_sitearch}/auto/Term/ReadKey/autosplit.ix %{perl_sitearch}/auto/Term/ReadKey/ReadKey.bs %attr(755,root,root) %{perl_sitearch}/auto/Term/ReadKey/ReadKey.so %{_mandir}/man3/*