You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.0 KiB
64 lines
2.0 KiB
12 years ago
|
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 <jplesnik@redhat.com> - 0.004300-1
|
||
|
- 0.004300 bump
|
||
|
- Update BRs.
|
||
|
- Replace PERL_INSTALL_ROOT with DESTDIR.
|
||
|
|
||
|
* Tue Jul 24 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.004201-1
|
||
|
- Specfile autogenerated by cpanspec 1.78.
|