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 Name: perl-Term-Size-Any
Version: 0.002 Version: 0.002
Release: 27%{?dist} Release: 28%{?dist}
Summary: Retrieve terminal size Summary: Retrieve terminal size
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Term-Size-Any URL: https://metacpan.org/release/Term-Size-Any
Source0: https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Term-Size-Any-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Term-Size-Any-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Devel::Hide) BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(Module::Load::Conditional) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Term::Size::Perl) 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::More)
BuildRequires: perl(Test::Pod) %if %{with perl_Term_Size_Any_enabels_optional_test}
BuildRequires: perl(Test::Pod::Coverage) # 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(Term::Size::Perl)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter} %{?perl_default_filter}
@ -29,14 +43,11 @@ on behalf of Term::Size::Any.
%setup -q -n Term-Size-Any-%{version} %setup -q -n Term-Size-Any-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
@ -48,6 +59,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %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 * Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.002-27
- Perl 5.30 rebuild - Perl 5.30 rebuild