3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Term::InKey - Perl extension for clearing the screen and receiving a keystroke
9 Summary(pl.UTF-8): Term::InKey - rozszerzenie Perla do czyszczenia ekranu i odczytu klawisza
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 2b31a6bb2f1b48123e6bc8f7a2f72147
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module implements Clear() to clear screen and ReadKey() to
25 receive a keystroke, on UNIX and Win32 platforms. As opposed to
26 Term::ReadKey, it does not contain XSUB code.
28 %description -l pl.UTF-8
29 Ten moduł implementuje funkcję Clear() do czyszczenia ekranu i
30 ReadKey() do odczytywania klawisza na platformach uniksowych i Win32.
31 W przeciwieństwie do Term::ReadKey nie zawiera kodu XSUB.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Term/InKey.pm