Specify all dependencies

This commit is contained in:
Petr Písař 2019-06-06 12:42:21 +02:00
parent 26f3c179c8
commit efc1982985

View File

@ -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 <ppisar@redhat.com> - 0.002-28
- Specify all dependencies
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.002-27
- Perl 5.30 rebuild