# Use File::Which for locating the pager executables %bcond_without perl_IO_Pager_enables_File_Which # Use Text::Wrap for wrapping the long lines %bcond_without perl_IO_Pager_enables_wrap Name: perl-IO-Pager Version: 2.10 Release: 10%{?dist} Summary: Select a pager and pipe text to it if destination is a TTY # The license is something home-made or "the same terms as Perl itself". License: GPL+ or Artistic URL: https://metacpan.org/release/IO-Pager Source0: https://cpan.metacpan.org/authors/id/J/JP/JPIERCE/IO-Pager-%{version}.tgz # Do not use /usr/local/bin for executing perl Patch0: IO-Pager-1.02-perl-is-in-usr-bin.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(:VERSION) >= 5.8 # B not used at tests BuildRequires: perl(base) BuildRequires: perl(bytes) # Data::Dumper not used at tests BuildRequires: perl(Env) BuildRequires: perl(File::Spec) # Getopt::Long not used at tests BuildRequires: perl(IO::Handle) BuildRequires: perl(overload) BuildRequires: perl(PerlIO) BuildRequires: perl(SelectSaver) BuildRequires: perl(strict) BuildRequires: perl(Symbol) # Term::Cap not used at tests # Term::ReadKey not used at tests BuildRequires: perl(Tie::Handle) BuildRequires: perl(warnings) # Optional run-time: %if %{with perl_IO_Pager_enables_File_Which} BuildRequires: perl(File::Which) %endif # POSIX not used at tests # Text::Wrap not used at tests # Win32::Console::ANSI not used on Linux # Tests: BuildRequires: perl(bignum) BuildRequires: perl(blib) BuildRequires: perl(Config) BuildRequires: perl(Exporter) BuildRequires: perl(File::Temp) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(utf8) # Optional tests: # PerlIO::Util not used Requires: perl(Data::Dumper) %if %{with perl_IO_Pager_enables_File_Which} Recommends: perl(File::Which) %endif Requires: perl(IO::Handle) Recommends: perl(POSIX) %if %{with perl_IO_Pager_enables_wrap} Recommends: perl(Text::Wrap) %endif %description IO::Pager is used to locate an available pager and programmatically decide whether or not to pipe a file handle's output to the pager. %prep %setup -q -n IO-Pager-%{version} %patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} $RPM_BUILD_ROOT/* # Deduplicate tp script rm $RPM_BUILD_ROOT%{perl_vendorlib}/IO/Pager/tp ln -s %{_bindir}/tp $RPM_BUILD_ROOT%{perl_vendorlib}/IO/Pager/tp %check unset TPOPT make test %files %doc CHANGES README TODO %{_bindir}/tp %{perl_vendorlib}/* %{_mandir}/man1/* %{_mandir}/man3/* %changelog * Thu Jan 25 2024 Fedora Release Engineering - 2.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 2.10-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.10-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 2.10-6 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 2.10-3 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 06 2020 Petr Pisar - 2.10-1 - 2.10 bump * Tue Nov 03 2020 Petr Pisar - 2.01-1 - 2.01 bump * Tue Jul 28 2020 Fedora Release Engineering - 1.03-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.03-2 - Perl 5.32 rebuild * Mon Jun 15 2020 Petr Pisar - 1.03-1 - 1.03 bump * Mon Jun 08 2020 Petr Pisar - 1.02-1 - 1.02 bump * Thu Jan 30 2020 Fedora Release Engineering - 1.01-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 10 2019 Jitka Plesnikova - 1.01-1 - 1.01 bump * Tue Oct 08 2019 Jitka Plesnikova - 1.00-2 - Updated dependencies * Tue Oct 08 2019 Jitka Plesnikova - 1.00-1 - 1.00 bump * Mon Sep 30 2019 Petr Pisar - 0.44-1 - 0.44 bump * Mon Sep 30 2019 Petr Pisar - 0.43-1 - 0.43 bump * Fri Sep 06 2019 Petr Pisar - 0.42-1 - 0.42 bump - IO::Pager::Perl was removed due to a dependency on Term::Pager that has a non-free license (CPAN RT#130460) * Fri Jul 26 2019 Fedora Release Engineering - 0.40-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.40-3 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 11 2018 Jitka Plesnikova - 0.40-1 - 0.40 bump * Fri Jul 13 2018 Fedora Release Engineering - 0.39-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.39-5 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.39-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.39-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.39-2 - Perl 5.26 rebuild * Mon May 15 2017 Petr Pisar - 0.39-1 - 0.39 bump * Fri May 12 2017 Petr Pisar - 0.38-1 - 0.38 bump * Wed Apr 26 2017 Petr Pisar - 0.37-1 - 0.37 bump * Tue Mar 14 2017 Petr Pisar 0.36-1 - Specfile autogenerated by cpanspec 1.78.