rpms/perl-Log-Log4perl/devel Log-Log4perl-1.01-032JRollFile.t.patch, NONE, 1.1 Log-Log4perl-1.01-Watch.pm.patch, NONE, 1.1 perl-Log-Log4perl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Jose Pedro Oliveira (jpo)
fedora-extras-commits at redhat.com
Thu Feb 9 16:19:16 UTC 2006
Author: jpo
Update of /cvs/extras/rpms/perl-Log-Log4perl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6729/devel
Modified Files:
.cvsignore sources
Added Files:
Log-Log4perl-1.01-032JRollFile.t.patch
Log-Log4perl-1.01-Watch.pm.patch perl-Log-Log4perl.spec
Log Message:
auto-import perl-Log-Log4perl-1.03-1 on branch devel from perl-Log-Log4perl-1.03-1.src.rpm
Log-Log4perl-1.01-032JRollFile.t.patch:
--- NEW FILE Log-Log4perl-1.01-032JRollFile.t.patch ---
diff -ruN Log-Log4perl-1.01-orig/t/032JRollFile.t Log-Log4perl-1.01/t/032JRollFile.t
--- Log-Log4perl-1.01-orig/t/032JRollFile.t 2003-06-23 18:43:22.000000000 +0100
+++ Log-Log4perl-1.01/t/032JRollFile.t 2005-11-05 20:41:18.000000000 +0000
@@ -5,21 +5,21 @@
#
# We skip all tests for this module until it has stabilized.
#
-BEGIN {
- plan skip_all => "Log::Dispatch::FileRotate tests skipped";
-}
-
#BEGIN {
-# eval {
-# require Log::Dispatch::FileRotate;
-# };
-# if ($@ or $Log::Dispatch::FileRotate::VERSION < 1.10) {
-# plan skip_all => "only with Log::Dispatch::FileRotate 1.10";
-# } else {
-# plan tests => 2;
-# }
+# plan skip_all => "Log::Dispatch::FileRotate tests skipped";
#}
+BEGIN {
+ eval {
+ require Log::Dispatch::FileRotate;
+ };
+ if ($@ or $Log::Dispatch::FileRotate::VERSION < 1.10) {
+ plan skip_all => "only with Log::Dispatch::FileRotate 1.10";
+ } else {
+ plan tests => 2;
+ }
+}
+
my $WORK_DIR = "tmp";
if(-d "t") {
$WORK_DIR = File::Spec->catfile(qw(t tmp));
Log-Log4perl-1.01-Watch.pm.patch:
--- NEW FILE Log-Log4perl-1.01-Watch.pm.patch ---
diff -ruN Log-Log4perl-1.01-orig/lib/Log/Log4perl/Config/Watch.pm Log-Log4perl-1.01/lib/Log/Log4perl/Config/Watch.pm
--- Log-Log4perl-1.01-orig/lib/Log/Log4perl/Config/Watch.pm 2004-10-17 00:00:47.000000000 +0100
+++ Log-Log4perl-1.01/lib/Log/Log4perl/Config/Watch.pm 2005-12-17 19:51:37.000000000 +0000
@@ -1,8 +1,3 @@
-#!/usr/bin/perl
-###########################################
-use warnings;
-use strict;
-
package Log::Log4perl::Config::Watch;
use constant _INTERNAL_DEBUG => 0;
--- NEW FILE perl-Log-Log4perl.spec ---
#
# Rebuild options:
#
# --with filerotate # With perl(Log::Dispatch::FileRotate)
#
%define log_dispatch_filerotate 0
%{?_with_filerotate:%define log_dispatch_filerotate 1}
Name: perl-Log-Log4perl
Version: 1.03
Release: 1%{?dist}
Summary: Log4j implementation for Perl
Group: Development/Libraries
License: GPL or Artistic
URL: http://log4perl.sourceforge.net/
Source0: http://log4perl.sourceforge.net/releases/Log-Log4perl-%{version}.tar.gz
Patch0: Log-Log4perl-1.01-Watch.pm.patch
Patch1: Log-Log4perl-1.01-032JRollFile.t.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(IPC::Shareable)
BuildRequires: perl(Log::Dispatch)
%if %{log_dispatch_filerotate}
BuildRequires: perl(Log::Dispatch::FileRotate) >= 1.10
%endif
BuildRequires: perl(SQL::Statement)
BuildRequires: perl(DBD::CSV)
BuildRequires: perl(XML::DOM)
BuildRequires: rrdtool
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Log::Log4perl lets you remote-control and fine-tune the logging
behaviour of your system from the outside. It implements the widely
popular (Java-based) Log4j logging package in pure Perl.
%prep
%setup -q -n Log-Log4perl-%{version}
%patch0 -p1
%if %{log_dispatch_filerotate}
%patch1 -p1
%endif
find lib -name "*.pm" -exec chmod a-x {} ';'
chmod a-x eg/*
%if !%{log_dispatch_filerotate}
# Requirements list: exclude perl(Log::Dispatch::FileRotate) >= 1.10
cat <<__EOF__ > %{name}-perlreq
#!/bin/sh
/usr/lib/rpm/perl.req \$* | grep -v '^perl(Log::Dispatch::FileRotate)'
__EOF__
%define __perl_requires %{_builddir}/Log-Log4perl-%{version}/%{name}-perlreq
chmod +x %{__perl_requires}
%endif
%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 -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test L4P_ALL_TESTS=1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README eg/ ldap/
%{perl_vendorlib}/Log/
%{_mandir}/man3/*.3*
%changelog
* Tue Feb 7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
- Update to 1.03.
- Disable Log::Dispatch::FileRotate requirement.
* Mon Dec 19 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.02-1
- Update to 1.02.
* Sat Oct 22 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1
- Update to 1.01.
* Sun Sep 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.00-1
- First build.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Log-Log4perl/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 9 Feb 2006 16:18:30 -0000 1.1
+++ .cvsignore 9 Feb 2006 16:19:16 -0000 1.2
@@ -0,0 +1 @@
+Log-Log4perl-1.03.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Log-Log4perl/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 9 Feb 2006 16:18:30 -0000 1.1
+++ sources 9 Feb 2006 16:19:16 -0000 1.2
@@ -0,0 +1 @@
+2b471ec7e844a2b603239c3808155b56 Log-Log4perl-1.03.tar.gz
More information about the scm-commits
mailing list