Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 08715dc7990a35b604b0ff3cd6984255 > files > 2

perl-IO-Prompt-0.997.2-2.mga3.src.rpm

%define upstream_name    IO-Prompt
%define upstream_version 0.997002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 2

Summary:    Interactively prompt for user input
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(POSIX)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Test::More)
BuildRequires: perl(Want)
BuildRequires: perl(version)
BuildArch:  noarch

%description
By default, this module exports a single function 'prompt'. It prompts the
user to enter some input, and returns an object that represents the user
input.

You may specify various flags to the function to affect its behaviour; most
notably, it defaults to automatically 'chomp' the input, unless the '-line'
flag is specified.

Two other functions are exported at request: 'hand_print', which simulates
hand-typing to the console; and 'get_input', which is the lower-level
function that actually prompts the user for a suitable input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# requires /dev/tty
rm t/01.dependencies.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml MYMETA.yml README examples
%{_mandir}/man3/*
%perl_vendorlib/IO

%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.997.2-2.mga3
+ Revision: 368530
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Nov 07 2012 jquelin <jquelin> 0.997.2-1.mga3
+ Revision: 315802
- update to 0.997002

* Sat Jan 22 2011 jquelin <jquelin> 0.997.1-1.mga1
+ Revision: 32088
- mageia rebuild
- imported package perl-IO-Prompt