File perl-Log-Log4perl.spec of Package perl-Log-Log4perl

# spec file for package perl-Log-Log4perl (Version 1.29)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

%bcond_with test

Name:           perl-Log-Log4perl
%define cpan_name Log-Log4perl
Summary:        Log4j implementation for Perl
Version:        1.29
Release:        2
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%if %{with test}
# fix build cycle, do not enable
BuildRequires:  perl(Log::Dispatch::FileRotate) >= 1.10
BuildRequires:  perl(Log::Dispatch)
BuildRequires:  perl(XML::DOM) > 1.29
BuildRequires:  rrdtool
BuildRequires:  perl(Test::More) >= 0.45
BuildRequires:  perl(File::Spec) >= 0.82
# other not perl || perl-base
#BuildRequires:  perl(DBI) >= 1.607
#BuildRequires:  perl(DBD::CSV) >= 0.22
#BuildRequires:  perl(IO::Socket::INET)
Requires:       perl(DBI) >= 1.607
Requires:       perl(IO::Socket::INET)
Requires:       perl(Log::Dispatch)
Requires:       perl(Log::Dispatch::FileRotate) >= 1.10
Requires:       perl(XML::DOM) > 1.29
Requires:       rrdtool

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.

    Mike Schilli <>
    Kevin Goess <>

%setup -q -n %{cpan_name}-%{version}
# rpmlint: script-without-shebang
find -name "*.pm" -exec chmod 0644 {} \;
pushd eg
# rpmlint: spurious-executable-perm
# rpmlint: wrong-script-interpreter
for f in $(find -type f); do
  %{__chmod} 0644 "$f"
  %{__sed} -i -e "s@/usr/local/bin/perl@%{__perl}@" "$f"

%{__perl} Makefile.PL INSTALLDIRS=vendor

%{__make} %{?_smp_mflags}

%{__make} test

# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib

%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc Changes LICENSE README eg xml ldap

openSUSE Build Service is sponsored by