Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
perl-Term-ReadKey
> perl-Term-ReadKey.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File perl-Term-ReadKey.spec of Package perl-Term-ReadKey
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define real_name TermReadKey Summary: Module for simple terminal control Name: perl-TermReadKey Version: 2.30 Release: 1 License: Artistic Group: Applications/CPAN URL: http://search.cpan.org/dist/TermReadKey/ Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl %if 0%{?fedora_version} >= 7 BuildRequires: perl-ExtUtils-MakeMaker %endif %description This module, ReadKey, provides ioctl control for terminals and Win32 consoles so the input modes can be changed (thus allowing reads of a single character at a time), and also provides non-blocking reads of stdin, as well as several other terminal related features, including retrieval/modification of the screen size, and retrieval/modification of the control characters. %prep %setup -n %{real_name}-%{version} %build CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" %{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" %install %__make DESTDIR=%{buildroot} install ### Clean up buildroot %{__rm} -rf %{buildroot}%{perl_archlib} \ %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* %files %defattr(-,root,root) %doc README %{perl_vendorarch}/Term/ReadKey.pm %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.bs %{perl_vendorarch}/auto/Term/ReadKey/ReadKey.so %{perl_vendorarch}/auto/Term/ReadKey/autosplit.ix %{_mandir}/man3/Term::ReadKey.3pm* %changelog * Sun Apr 02 2006 VHCS Packager <vhcs@j0ke.net> - initial release