diff --git a/.gitignore b/.gitignore index 67d9a7b..19aaff3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /IO-Pager-0.38.tgz /IO-Pager-0.39.tgz /IO-Pager-0.40.tgz +/IO-Pager-0.42.tgz diff --git a/perl-IO-Pager.spec b/perl-IO-Pager.spec index 6704087..9e558e7 100644 --- a/perl-IO-Pager.spec +++ b/perl-IO-Pager.spec @@ -1,12 +1,13 @@ Name: perl-IO-Pager -Version: 0.40 -Release: 2%{?dist} +Version: 0.42 +Release: 1%{?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 BuildArch: noarch +BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter @@ -16,6 +17,7 @@ BuildRequires: sed BuildRequires: perl(:VERSION) >= 5.8 BuildRequires: perl(base) BuildRequires: perl(bytes) +# Data::Dumper not used BuildRequires: perl(Env) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Which) @@ -26,6 +28,7 @@ BuildRequires: perl(POSIX) BuildRequires: perl(SelectSaver) BuildRequires: perl(strict) BuildRequires: perl(Symbol) +# Term::Pager 1.5 not packaged becuase of a bad license, CPAN RT#130460 BuildRequires: perl(Tie::Handle) # Tests: BuildRequires: perl(bignum) @@ -47,16 +50,22 @@ Requires: perl(POSIX) 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. +Please note that IO::Pager::Perl was removed due to a dependency on +Term::Pager that has a non-free license (CPAN RT#130460). + %prep -#%%setup -q -n IO-Pager-%%{version} -%setup -q -n IO-Pager-0.4 +%setup -q -n IO-Pager-%{version} +# Remove dependeny on Term::Pager. Term::Pager cannot be packaged becuase of +# a bad license, CPAN RT#130460. +rm lib/IO/Pager/Perl.pm +perl -i -pe 'print $_ unless m{\Alib/IO/Pager/Perl.pm\b}' MANIFEST %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -68,6 +77,11 @@ make test %{_mandir}/man3/* %changelog +* 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 Feb 01 2019 Fedora Release Engineering - 0.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 0ad7e65..adaa250 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (IO-Pager-0.40.tgz) = 7b2ef5c8a2a6b79030db2d7da8001b9dab64d9348a28dea29e8d6264385c2c73f1ba0d9a78ab60ef1d0ac6078e02bd917357c89ee4d002605acbe826a6b7faa8 +SHA512 (IO-Pager-0.42.tgz) = 7905911cf33eff5983611d179a5ab84e34e3544d18e877954ae0c6780eb3ba538e350effded5d9d5aaa141bba2667f50188c7fcf275381f714856c3e8faae1e6