%define upstream_name IO-Prompt-Hooked %define upstream_version 0.08 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Simple prompting with validation hooks 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(Capture::Tiny) BuildRequires: perl(English) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.620.0 BuildRequires: perl(IO::Prompt::Tiny) >= 0.1.0 BuildRequires: perl(Params::Smart) >= 0.80.0 BuildRequires: perl(Test::More) >= 0.980.0 BuildRequires: perl(parent) >= 0.225.0 BuildArch: noarch %description IO::Prompt::Tiny is a nice module to use for basic prompting. It properly detects interactive sessions, and since it's based on the 'prompt()' routine from the ExtUtils::MakeMaker manpage, it's highly portable. But the IO::Prompt::Tiny manpage is intentionally minimal. Often one begins wrapping it in logic to validate input, retry on invalid, limit number of attempts, and alert the user to invalid input. the IO::Prompt::Hooked manpage adds simple validation, attempt limiting, and error handling to IO::Prompt::Tiny's minimalism. It does this by allowing you to supply simple Regexp objects for validation, or subroutine callbacks if you need finer control. "But we already have the IO::Prompt manpage for non-trivial needs.", you might be thinking. And you're right. But have you read its POD? It's far from being simple, and is not as portable as this module. the IO::Prompt::Hooked manpage aims to provide the portability of IO::Tiny, and easy to use hooks for input validation. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %makeinstall_std %files %doc Changes META.json META.yml MYMETA.yml README examples %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.80.0-2.mga3 + Revision: 368531 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Nov 14 2012 jquelin <jquelin> 0.80.0-1.mga3 + Revision: 317677 - update to 0.08 * Tue Nov 06 2012 jquelin <jquelin> 0.60.0-1.mga3 + Revision: 315117 - update to 0.06 * Wed Oct 24 2012 jquelin <jquelin> 0.50.0-1.mga3 + Revision: 309615 - update to 0.05 * Wed Oct 17 2012 jquelin <jquelin> 0.30.0-1.mga3 + Revision: 307565 - update to 0.03 * Mon Oct 15 2012 jquelin <jquelin> 0.20.0-1.mga3 + Revision: 306221 - adding missing buildrequires: - update to 0.02 * Wed Oct 10 2012 jquelin <jquelin> 0.10.0-1.mga3 + Revision: 304274 - adding missing buildrequires: - adding missing buildrequires: - imported package perl-IO-Prompt-Hooked