]>
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 | |
51148474 | 9 | Summary: Term::ReadKey Perl module |
31a6b9fa ER |
10 | Summary(cs.UTF-8): Modul Term::ReadKey pro Perl |
11 | Summary(da.UTF-8): Perlmodul Term::ReadKey | |
12 | Summary(de.UTF-8): Term::ReadKey Perl Modul | |
13 | Summary(es.UTF-8): Módulo de Perl Term::ReadKey | |
14 | Summary(fr.UTF-8): Module Perl Term::ReadKey | |
15 | Summary(it.UTF-8): Modulo di Perl Term::ReadKey | |
16 | Summary(ja.UTF-8): Term::ReadKey Perl モジュール | |
17 | Summary(ko.UTF-8): Term::ReadKey 펄 모줄 | |
18 | Summary(nb.UTF-8): Perlmodul Term::ReadKey | |
19 | Summary(pl.UTF-8): Moduł Perla Term::ReadKey | |
20 | Summary(pt.UTF-8): Módulo de Perl Term::ReadKey | |
21 | Summary(pt_BR.UTF-8): Módulo Perl Term::ReadKey | |
22 | Summary(ru.UTF-8): Модуль для Perl Term::ReadKey | |
23 | Summary(sv.UTF-8): Term::ReadKey Perlmodul | |
24 | Summary(uk.UTF-8): Модуль для Perl Term::ReadKey | |
25 | Summary(zh_CN.UTF-8): Term::ReadKey Perl 模块 | |
52cfc731 | 26 | Name: perl-Term-ReadKey |
c5b30b13 | 27 | Version: 2.30 |
28 | Release: 1 | |
04acdc9a | 29 | License: BSD-like |
52cfc731 | 30 | Group: Development/Languages/Perl |
9d33104e | 31 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}%{pnam}-%{version}.tar.gz |
c5b30b13 | 32 | # Source0-md5: f0ef2cea8acfbcc58d865c05b0c7e1ff |
dbbdf548 | 33 | BuildRequires: perl-devel >= 1:5.8.0 |
83dcdbd2 | 34 | BuildRequires: rpm-perlprov >= 4.1-13 |
51148474 | 35 | Obsoletes: perl-%{pdir}%{pnam} |
4f82d50b | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52cfc731 | 37 | |
38 | %description | |
09a4a2d7 | 39 | This module, ReadKey, provides ioctl control for terminals so the |
40 | input modes can be changed (thus allowing reads of a single character | |
41 | at a time), and also provides non-blocking reads of stdin, as well as | |
42 | several other terminal related features, including | |
43 | retrieval/modification of the screen size, and retrieval/modification | |
44 | of the control characters. | |
52cfc731 | 45 | |
c6195809 JR |
46 | %description -l pl.UTF-8 |
47 | Moduł Perla Term::ReadKey. Moduł ten daje obsługę ioctl dla terminali, | |
48 | umożliwiając zmianę trybu wejścia (co pozwala na czytanie po jednym | |
49 | znaku) oraz nieblokujący odczyt z wejścia, a także inne funkcje | |
50 | związane z terminalem, w tym odczytywanie i modyfikowanie rozmiaru | |
51 | ekranu oraz odczytywanie i modyfikowanie znaków kontrolnych. | |
52cfc731 | 52 | |
c6195809 JR |
53 | %description -l pt_BR.UTF-8 |
54 | Este módulo fornece controle via ioctl para terminais, de tal forma | |
09a4a2d7 | 55 | que seus modos de entrada possam ser modificados (desta forma |
c6195809 JR |
56 | permitindo a leitura de um caracter somente por vez) e também fornece |
57 | leitura não bloqueantes da entrada padrão (stdin), bem como várias | |
58 | outras características relacionadas a terminais, entre elas a | |
59 | recuperação/modificação do tamanho da tela e dos caracteres de | |
09a4a2d7 | 60 | controle. |
61 | ||
52cfc731 | 62 | %prep |
63 | %setup -q -n TermReadKey-%{version} | |
64 | ||
65 | %build | |
83dcdbd2 | 66 | %{__perl} Makefile.PL \ |
08d8b9f1 | 67 | INSTALLDIRS=vendor |
2d67d248 | 68 | %{__make} \ |
69 | OPTIMIZE="%{rpmcflags}" | |
52cfc731 | 70 | |
4f82d50b | 71 | %{?with_tests:%{__make} test} |
51148474 | 72 | |
52cfc731 | 73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
52cfc731 | 75 | |
2d67d248 | 76 | %{__make} install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
52cfc731 | 78 | |
52cfc731 | 79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
7b36bdfc | 84 | %doc README |
83dcdbd2 | 85 | %{perl_vendorarch}/Term/ReadKey.pm |
86 | %dir %{perl_vendorarch}/auto/Term/ReadKey | |
51148474 | 87 | # empty autosplit.ix |
83dcdbd2 | 88 | #%%{perl_vendorarch}/auto/Term/ReadKey/autosplit.ix |
89 | %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.bs | |
90 | %attr(755,root,root) %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.so | |
52cfc731 | 91 | %{_mandir}/man3/* |