diff options
author | Tim Orling <TicoTimo@gmail.com> | 2015-07-21 06:40:18 -0700 |
---|---|---|
committer | Tim Orling <TicoTimo@gmail.com> | 2015-07-21 06:40:18 -0700 |
commit | cc198943c85ec369e415a83ad784deb0e8582ed0 (patch) | |
tree | 973c21d713ae76a6a3959ecc7353c79124d9efb5 /perl-MooX-Log-Any.spec | |
download | perl-MooX-Log-Any-cc198943c85ec369e415a83ad784deb0e8582ed0.tar.gz perl-MooX-Log-Any-cc198943c85ec369e415a83ad784deb0e8582ed0.tar.xz perl-MooX-Log-Any-cc198943c85ec369e415a83ad784deb0e8582ed0.zip |
Original submittal 0.004001-1
Diffstat (limited to 'perl-MooX-Log-Any.spec')
-rw-r--r-- | perl-MooX-Log-Any.spec | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/perl-MooX-Log-Any.spec b/perl-MooX-Log-Any.spec new file mode 100644 index 0000000..7a1aefd --- /dev/null +++ b/perl-MooX-Log-Any.spec @@ -0,0 +1,61 @@ +Name: perl-MooX-Log-Any +Version: 0.004001 +Release: 1%{?dist} +Summary: Role to add Log::Any +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooX-Log-Any/ +Source0: http://www.cpan.org/authors/id/C/CA/CAZADOR/MooX-Log-Any-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Log::Any) +BuildRequires: perl(Log::Any::Adapter) +BuildRequires: perl(Log::Any::Test) +BuildRequires: perl(Moo) +BuildRequires: perl(Moo::Role) +BuildRequires: perl(Test::More) +Requires: perl(Log::Any) +Requires: perl(Log::Any::Adapter) +Requires: perl(Moo::Role) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +A logging role building a very lightweight wrapper to Log::Any for use with +your Moo or Moose classes. Connecting a Log::Any::Adapter should be +performed prior to logging the first log message, otherwise nothing will +happen, just like with Log::Any + +%prep +%setup -q -n MooX-Log-Any-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes dist.ini LICENSE META.json README README.md weaver.ini +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Apr 02 2015 Tim Orling 0.004001-1 +- Specfile autogenerated by cpanspec 1.78. |