]>
Commit | Line | Data |
---|---|---|
51148474 | 1 | # |
2 | # Conditional build: | |
4f82d50b | 3 | %bcond_with tests # perform "make test" |
04acdc9a | 4 | # requires terminal |
51148474 | 5 | # |
52cfc731 | 6 | %include /usr/lib/rpm/macros.perl |
7c72ccb6 | 7 | %define pdir Term |
8 | %define pnam ReadKey | |
dd5813c8 JB |
9 | Summary: Term::ReadKey - Perl module for simple terminal control |
10 | Summary(pl.UTF-8): Term::ReadKey - moduł Perla do prostego sterowania terminalem | |
52cfc731 | 11 | Name: perl-Term-ReadKey |
4a6602f0 MM |
12 | Version: 2.37 |
13 | Release: 1 | |
04acdc9a | 14 | License: BSD-like |
52cfc731 | 15 | Group: Development/Languages/Perl |
dd5813c8 | 16 | Source0: http://www.cpan.org/modules/by-module/Term/%{pdir}%{pnam}-%{version}.tar.gz |
4a6602f0 | 17 | # Source0-md5: e8ea15c16333ac4f8d146d702e83cc0c |
dd5813c8 | 18 | URL: http://search.cpan.org/dist/TermReadKey/ |
ead9cdc1 | 19 | BuildRequires: perl-ExtUtils-MakeMaker >= 3.5 |
dbbdf548 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
83dcdbd2 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
ead9cdc1 | 22 | Obsoletes: perl-TermReadKey |
4f82d50b | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52cfc731 | 24 | |
25 | %description | |
dd5813c8 JB |
26 | This module, Term::ReadKey, provides ioctl control for terminals so |
27 | the input modes can be changed (thus allowing reads of a single | |
28 | character at a time), and also provides non-blocking reads of stdin, | |
29 | as well as several other terminal related features, including | |
09a4a2d7 | 30 | retrieval/modification of the screen size, and retrieval/modification |
31 | of the control characters. | |
52cfc731 | 32 | |
c6195809 | 33 | %description -l pl.UTF-8 |
dd5813c8 | 34 | Moduł Perla Term::ReadKey udostępnia obsługę ioctl dla terminali, |
c6195809 JR |
35 | umożliwiając zmianę trybu wejścia (co pozwala na czytanie po jednym |
36 | znaku) oraz nieblokujący odczyt z wejścia, a także inne funkcje | |
37 | związane z terminalem, w tym odczytywanie i modyfikowanie rozmiaru | |
38 | ekranu oraz odczytywanie i modyfikowanie znaków kontrolnych. | |
52cfc731 | 39 | |
c6195809 JR |
40 | %description -l pt_BR.UTF-8 |
41 | Este módulo fornece controle via ioctl para terminais, de tal forma | |
09a4a2d7 | 42 | que seus modos de entrada possam ser modificados (desta forma |
c6195809 JR |
43 | permitindo a leitura de um caracter somente por vez) e também fornece |
44 | leitura não bloqueantes da entrada padrão (stdin), bem como várias | |
45 | outras características relacionadas a terminais, entre elas a | |
46 | recuperação/modificação do tamanho da tela e dos caracteres de | |
09a4a2d7 | 47 | controle. |
48 | ||
52cfc731 | 49 | %prep |
50 | %setup -q -n TermReadKey-%{version} | |
51 | ||
52 | %build | |
83dcdbd2 | 53 | %{__perl} Makefile.PL \ |
08d8b9f1 | 54 | INSTALLDIRS=vendor |
2d67d248 | 55 | %{__make} \ |
dd6d4985 | 56 | CC="%{__cc}" \ |
2d67d248 | 57 | OPTIMIZE="%{rpmcflags}" |
52cfc731 | 58 | |
4f82d50b | 59 | %{?with_tests:%{__make} test} |
51148474 | 60 | |
52cfc731 | 61 | %install |
62 | rm -rf $RPM_BUILD_ROOT | |
52cfc731 | 63 | |
2d67d248 | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
52cfc731 | 66 | |
52cfc731 | 67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
7b36bdfc | 72 | %doc README |
83dcdbd2 | 73 | %{perl_vendorarch}/Term/ReadKey.pm |
74 | %dir %{perl_vendorarch}/auto/Term/ReadKey | |
51148474 | 75 | # empty autosplit.ix |
83dcdbd2 | 76 | #%%{perl_vendorarch}/auto/Term/ReadKey/autosplit.ix |
83dcdbd2 | 77 | %attr(755,root,root) %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.so |
ead9cdc1 | 78 | %{_mandir}/man3/Term::ReadKey.3pm* |