diff --git a/.gitignore b/.gitignore index e69de29..c911494 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Log-Contextual-0.004300.tar.gz diff --git a/perl-Log-Contextual.spec b/perl-Log-Contextual.spec new file mode 100644 index 0000000..074355c --- /dev/null +++ b/perl-Log-Contextual.spec @@ -0,0 +1,63 @@ +Name: perl-Log-Contextual +Version: 0.004300 +Release: 1%{?dist} +Summary: Simple logging interface with a contextual log +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Log-Contextual/ +Source0: http://www.cpan.org/authors/id/F/FR/FREW/Log-Contextual-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(inc::Module::Install) >= 0.91 +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Data::Dumper::Concise) +BuildRequires: perl(Exporter::Declare) >= 0.105 +BuildRequires: perl(Exporter::Declare::Export::Generator) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(Log::Log4perl) >= 1.29 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) +Requires: perl(Exporter::Declare) >= 0.105 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Filter under-specified depenedencies +%global __requires_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Exporter::Declare\\)\\s*$ + +%description +This module is a simple interface to extensible logging. It is bundled with +a really basic logger, Log::Contextual::SimpleLogger, but in general you +should use a real logger instead of that. For something more serious but +not overly complicated, try Log::Dispatchouli. + +%prep +%setup -q -n Log-Contextual-%{version} +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 30 2013 Jitka Plesnikova - 0.004300-1 +- 0.004300 bump +- Update BRs. +- Replace PERL_INSTALL_ROOT with DESTDIR. + +* Tue Jul 24 2012 Jitka Plesnikova - 0.004201-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..6f01ef0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f31d346eec8f45d1de2289ae48ffeed2 Log-Contextual-0.004300.tar.gz