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