Name: perl-Log-Any-IfLOG Version: 0.07 Release: 1%{?dist} Summary: Load Log::Any only if "logging is enabled" License: GPL+ or Artistic URL: http://search.cpan.org/dist/Log-Any-IfLOG/ Source0: http://www.cpan.org/authors/id/P/PE/PERLANCAR/Log-Any-IfLOG-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: make BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Runtime # XXX: BuildRequires: perl(Log::Any) # Tests only BuildRequires: perl(File::Spec) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(Log::Any) # Object::Dumb is a private module # perl-generators don't pick it up but that may change in the future -- # better have a filter in place and be ready %global __provides_exclude ^perl\\(Object::Dumb\\)$ %description This module is a drop-in replacement/wrapper for Log::Any to be used from your modules. This is a quick-hack solution to avoid the cost of loading Log::Any under "normal condition". %prep %setup -q -n Log-Any-IfLOG-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} %{_fixperms} %{buildroot}/* %check make test %files %license LICENSE %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Aug 24 2015 Petr Ĺ abata 0.07-1 - Initial packaging