From e0f48fe351b05d910fdf05bbe4e6f796136bd62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com> Date: Thu, 27 Aug 2015 17:27:32 +0200 Subject: Initial import (#1256344)
diff --git a/.gitignore b/.gitignore index e69de29..d7c765b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Log-Any-IfLOG-0.07.tar.gz diff --git a/perl-Log-Any-IfLOG.spec b/perl-Log-Any-IfLOG.spec new file mode 100644 index 0000000..68ce4f3 --- /dev/null +++ b/perl-Log-Any-IfLOG.spec @@ -0,0 +1,57 @@ +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 <con...@redhat.com> 0.07-1 +- Initial packaging diff --git a/sources b/sources index e69de29..74f1b17 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c250d9b576ff4f9769e68bc1939e31ca Log-Any-IfLOG-0.07.tar.gz -- cgit v0.10.2 http://pkgs.fedoraproject.org/cgit/perl-Log-Any-IfLOG.git/commit/?h=f23&id=e0f48fe351b05d910fdf05bbe4e6f796136bd62b -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel