]>
Commit | Line | Data |
---|---|---|
40469145 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
6d06df72 | 4 | |
238d8d90 | 5 | %define pdir Term |
6 | %define pnam InKey | |
6d06df72 | 7 | %include /usr/lib/rpm/macros.perl |
40469145 | 8 | Summary: Term::InKey - Perl extension for clearing the screen and receiving a keystroke |
ec439a97 | 9 | Summary(pl.UTF-8): Term::InKey - rozszerzenie Perla do czyszczenia ekranu i odczytu klawisza |
40469145 | 10 | Name: perl-Term-InKey |
f3b1f7cb | 11 | Version: 1.04 |
a3969686 | 12 | Release: 2 |
40469145 | 13 | # same as perl |
4f1011ec | 14 | License: GPL v1+ or Artistic |
40469145 JB |
15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
f3b1f7cb | 17 | # Source0-md5: 2b31a6bb2f1b48123e6bc8f7a2f72147 |
6d06df72 | 18 | URL: http://search.cpan.org/dist/Term-InKey/ |
40469145 JB |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This module implements Clear() to clear screen and ReadKey() to | |
26 | receive a keystroke, on UNIX and Win32 platforms. As opposed to | |
27 | Term::ReadKey, it does not contain XSUB code. | |
28 | ||
eca4e905 JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł implementuje funkcję Clear() do czyszczenia ekranu i | |
40469145 | 31 | ReadKey() do odczytywania klawisza na platformach uniksowych i Win32. |
eca4e905 | 32 | W przeciwieństwie do Term::ReadKey nie zawiera kodu XSUB. |
40469145 JB |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40469145 JB |
40 | %{__make} |
41 | ||
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes README | |
56 | %{perl_vendorlib}/Term/InKey.pm | |
57 | %{_mandir}/man3/* |