From efc1982985272b6c04c899c35792127b15c78a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 6 Jun 2019 12:42:21 +0200 Subject: [PATCH] Specify all dependencies --- perl-Term-Size-Any.spec | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/perl-Term-Size-Any.spec b/perl-Term-Size-Any.spec index 1a443a1..17deecc 100644 --- a/perl-Term-Size-Any.spec +++ b/perl-Term-Size-Any.spec @@ -1,21 +1,35 @@ +# Perform optional tests +%bcond_without perl_Term_Size_Any_enabels_optional_test + Name: perl-Term-Size-Any Version: 0.002 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Retrieve terminal size License: GPL+ or Artistic URL: https://metacpan.org/release/Term-Size-Any Source0: https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Term-Size-Any-%{version}.tar.gz BuildArch: noarch +BuildRequires: make BuildRequires: perl-generators -BuildRequires: perl(Devel::Hide) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Module::Load::Conditional) +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: BuildRequires: perl(Term::Size::Perl) +# Term::Size::Win32 not used on Linux +BuildRequires: perl(vars) +# Tests: +BuildRequires: perl(Module::Load::Conditional) BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) +%if %{with perl_Term_Size_Any_enabels_optional_test} +# Optional tests: +BuildRequires: perl(Test::Pod) >= 1.18 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Term::Size::Perl) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} @@ -29,14 +43,11 @@ on behalf of Term::Size::Any. %setup -q -n Term-Size-Any-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; - +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -48,6 +59,9 @@ make test %{_mandir}/man3/* %changelog +* Thu Jun 06 2019 Petr Pisar - 0.002-28 +- Specify all dependencies + * Fri May 31 2019 Jitka Plesnikova - 0.002-27 - Perl 5.30 rebuild