2007-01-16 00:31:03 +01:00
|
|
|
#
|
2010-07-20 20:44:15 +02:00
|
|
|
# spec file for package perl-Log-Log4perl (Version 1.28)
|
2007-01-16 00:31:03 +01:00
|
|
|
#
|
2010-01-11 18:06:53 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:31:03 +01:00
|
|
|
#
|
2008-09-08 18:12:02 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:31:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-03-17 14:21:56 +01:00
|
|
|
|
2007-01-16 00:31:03 +01:00
|
|
|
Name: perl-Log-Log4perl
|
2010-07-20 20:44:15 +02:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2008-09-16 19:28:06 +02:00
|
|
|
Summary: Log4j implementation for Perl
|
2010-07-20 20:44:15 +02:00
|
|
|
Version: 1.28
|
|
|
|
Release: 2
|
|
|
|
License: Artistic License ..
|
2007-01-16 00:31:03 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2010-07-20 20:44:15 +02:00
|
|
|
Url: http://search.cpan.org/dist/Log-Log4perl
|
2010-04-06 19:04:13 +02:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-07-20 20:44:15 +02:00
|
|
|
# for running all tests:
|
2007-01-16 00:31:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-11 18:06:53 +01:00
|
|
|
BuildRequires: perl
|
2010-04-06 19:04:13 +02:00
|
|
|
%if 0%{?suse_version} < 1120
|
2010-01-11 18:06:53 +01:00
|
|
|
BuildRequires: perl-macros
|
2010-04-06 19:04:13 +02:00
|
|
|
%endif
|
2010-07-20 14:39:37 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.45
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
|
# other not perl || perl-base
|
2010-07-20 20:44:15 +02:00
|
|
|
BuildRequires: perl(DBI) >= 1.607
|
|
|
|
BuildRequires: perl(DBD::CSV) >= 0.22
|
|
|
|
BuildRequires: perl(IO::Socket::INET)
|
|
|
|
BuildRequires: perl(Log::Dispatch)
|
|
|
|
# fix build cycle, do not enable
|
|
|
|
#BuildRequires: perl(Log::Dispatch::FileRotate) >= 1.10
|
|
|
|
BuildRequires: perl(XML::DOM) > 1.29
|
|
|
|
BuildRequires: rrdtool
|
2010-03-17 14:21:56 +01:00
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(DBI) >= 1.607
|
|
|
|
Requires: perl(IO::Socket::INET)
|
|
|
|
Requires: perl(Log::Dispatch)
|
2010-07-20 20:44:15 +02:00
|
|
|
#Requires: perl(Log::Dispatch::FileRotate) >= 1.10
|
2010-03-17 14:21:56 +01:00
|
|
|
Requires: perl(XML::DOM) > 1.29
|
|
|
|
Requires: rrdtool
|
2007-01-16 00:31:03 +01:00
|
|
|
|
|
|
|
%description
|
2010-07-20 20:44:15 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2007-01-16 00:31:03 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mike Schilli <m@perlmeister.com>
|
|
|
|
Kevin Goess <cpan@goess.org>
|
|
|
|
|
|
|
|
%prep
|
2010-01-11 18:06:53 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-07-20 20:44:15 +02:00
|
|
|
find -type f -exec chmod 0644 {} \;
|
2007-01-16 00:31:03 +01:00
|
|
|
|
|
|
|
%build
|
2010-07-20 20:44:15 +02:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:31:03 +01:00
|
|
|
|
2008-09-16 19:28:06 +02:00
|
|
|
%check
|
2010-01-11 18:06:53 +01:00
|
|
|
%{__make} test
|
2008-09-16 19:28:06 +02:00
|
|
|
|
2007-01-16 00:31:03 +01:00
|
|
|
%install
|
2008-09-16 19:28:06 +02:00
|
|
|
%perl_make_install
|
2010-07-20 20:44:15 +02:00
|
|
|
%perl_process_packlist
|
2010-01-11 18:06:53 +01:00
|
|
|
%perl_gen_filelist
|
2010-07-20 20:44:15 +02:00
|
|
|
for file in eg/newsyslog-test eg/benchmarks/simple; do
|
|
|
|
sed -i "s|/usr/local/bin/perl|%_bindir/perl|g" $file
|
|
|
|
done
|
2007-01-16 00:31:03 +01:00
|
|
|
|
2010-01-11 18:06:53 +01:00
|
|
|
%clean
|
2010-07-20 20:44:15 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2010-01-11 18:06:53 +01:00
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README eg xml ldap
|
2007-01-16 00:31:03 +01:00
|
|
|
|
2007-07-16 18:16:13 +02:00
|
|
|
%changelog
|