]> git.pld-linux.org Git - packages/perl-Term-ReadKey.git/blob - perl-Term-ReadKey.spec
- up to 2.32
[packages/perl-Term-ReadKey.git] / perl-Term-ReadKey.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4                         # requires terminal
5 #
6 %include        /usr/lib/rpm/macros.perl
7 %define         pdir    Term
8 %define         pnam    ReadKey
9 Summary:        Term::ReadKey - Perl module for simple terminal control
10 Summary(pl.UTF-8):      Term::ReadKey - moduł Perla do prostego sterowania terminalem
11 Name:           perl-Term-ReadKey
12 Version:        2.32
13 Release:        1
14 License:        BSD-like
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/Term/%{pdir}%{pnam}-%{version}.tar.gz
17 # Source0-md5:  c55420c3456b8e470a01d6557b1045a8
18 URL:            http://search.cpan.org/dist/TermReadKey/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 Obsoletes:      perl-%{pdir}%{pnam}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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
29 retrieval/modification of the screen size, and retrieval/modification
30 of the control characters.
31
32 %description -l pl.UTF-8
33 Moduł Perla Term::ReadKey udostępnia obsługę ioctl dla terminali,
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.
38
39 %description -l pt_BR.UTF-8
40 Este módulo fornece controle via ioctl para terminais, de tal forma
41 que seus modos de entrada possam ser modificados (desta forma
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
46 controle.
47
48 %prep
49 %setup -q -n TermReadKey-%{version}
50
51 %build
52 %{__perl} Makefile.PL \
53         INSTALLDIRS=vendor
54 %{__make} \
55         CC="%{__cc}" \
56         OPTIMIZE="%{rpmcflags}"
57
58 %{?with_tests:%{__make} test}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc README
72 %{perl_vendorarch}/Term/ReadKey.pm
73 %dir %{perl_vendorarch}/auto/Term/ReadKey
74 # empty autosplit.ix
75 #%%{perl_vendorarch}/auto/Term/ReadKey/autosplit.ix
76 %attr(755,root,root) %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.so
77 %{_mandir}/man3/*
This page took 0.059698 seconds and 3 git commands to generate.