]> git.pld-linux.org Git - packages/perl-Term-ReadKey.git/blame - perl-Term-ReadKey.spec
Up to 2.37
[packages/perl-Term-ReadKey.git] / perl-Term-ReadKey.spec
CommitLineData
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
9Summary: Term::ReadKey - Perl module for simple terminal control
10Summary(pl.UTF-8): Term::ReadKey - moduł Perla do prostego sterowania terminalem
52cfc731 11Name: perl-Term-ReadKey
4a6602f0
MM
12Version: 2.37
13Release: 1
04acdc9a 14License: BSD-like
52cfc731 15Group: Development/Languages/Perl
dd5813c8 16Source0: http://www.cpan.org/modules/by-module/Term/%{pdir}%{pnam}-%{version}.tar.gz
4a6602f0 17# Source0-md5: e8ea15c16333ac4f8d146d702e83cc0c
dd5813c8 18URL: http://search.cpan.org/dist/TermReadKey/
ead9cdc1 19BuildRequires: perl-ExtUtils-MakeMaker >= 3.5
dbbdf548 20BuildRequires: perl-devel >= 1:5.8.0
83dcdbd2 21BuildRequires: rpm-perlprov >= 4.1-13
ead9cdc1 22Obsoletes: perl-TermReadKey
4f82d50b 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52cfc731 24
25%description
dd5813c8
JB
26This module, Term::ReadKey, provides ioctl control for terminals so
27the input modes can be changed (thus allowing reads of a single
28character at a time), and also provides non-blocking reads of stdin,
29as well as several other terminal related features, including
09a4a2d7 30retrieval/modification of the screen size, and retrieval/modification
31of the control characters.
52cfc731 32
c6195809 33%description -l pl.UTF-8
dd5813c8 34Moduł Perla Term::ReadKey udostępnia obsługę ioctl dla terminali,
c6195809
JR
35umożliwiając zmianę trybu wejścia (co pozwala na czytanie po jednym
36znaku) oraz nieblokujący odczyt z wejścia, a także inne funkcje
37związane z terminalem, w tym odczytywanie i modyfikowanie rozmiaru
38ekranu oraz odczytywanie i modyfikowanie znaków kontrolnych.
52cfc731 39
c6195809
JR
40%description -l pt_BR.UTF-8
41Este módulo fornece controle via ioctl para terminais, de tal forma
09a4a2d7 42que seus modos de entrada possam ser modificados (desta forma
c6195809
JR
43permitindo a leitura de um caracter somente por vez) e também fornece
44leitura não bloqueantes da entrada padrão (stdin), bem como várias
45outras características relacionadas a terminais, entre elas a
46recuperação/modificação do tamanho da tela e dos caracteres de
09a4a2d7 47controle.
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
62rm -rf $RPM_BUILD_ROOT
52cfc731 63
2d67d248 64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
52cfc731 66
52cfc731 67%clean
68rm -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*
This page took 0.119258 seconds and 4 git commands to generate.