%global _empty_manifest_terminate_build 0
Name: perl-IO-Prompter
Version: 0.005003
Release: 1
Summary: Prompt for input, read it, clean it, return it
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/IO-Prompter/
Source0: https://www.cpan.org/authors/id/D/DC/DCONWAY/IO-Prompter-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(Contextual::Return) perl(match::smart)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(Contextual::Return)
Requires: perl(Test::More)
%description
IO::Prompter exports a single subroutine, prompt, that prints a prompt (but
only if the program's selected input and output streams are connected to a
terminal), then reads some input, then chomps it, and finally returns an
object representing that text.
%package help
Summary : Prompt for input, read it, clean it, return it
Provides: perl-IO-Prompter-doc
%description help
Man page for Perl-IO-Prompter
%prep
%setup -q -n IO-Prompter-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check || :
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Fri Sep 5 2025 wangxiaomeng <wangxiaomeng@kylinos.cn> - 0.005003-1
- Update to 0.005003
- Added sorting control for hash-based menus
* Wed Feb 19 2025 openeuler_bot <infra@openeuler.sh> - 0.005002-1
- Changes for version 0.005002 - 2025-02-07
- Worked around odd 'uninitialized' warning under timeouts (thanks Diab!)
* Wed Jan 22 2025 sqfu <dev01203@linx-info.com> - 0.005001-1
- update version to 0.005001
- removed all uses of continue.
* Thu Jul 21 2022 Perl_Bot <Perl_Bot@openeuler.org> 0.004015-1
- Specfile autogenerated by Perl_Bot