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