perl-Log-Log4perl/perl-Log-Log4perl.spec
OBS User autobuild 08c5d617b3 Accepting request 34953 from devel:languages:perl
Copy from devel:languages:perl/perl-Log-Log4perl based on submit request 34953 from user coolo

OBS-URL: https://build.opensuse.org/request/show/34953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Log4perl?expand=0&rev=11
2010-03-17 13:21:57 +00:00

93 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Log-Log4perl (Version 1.28)
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Log-Log4perl
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Log4j implementation for Perl
Version: 1.28
Release: 1
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Log-Log4perl
Source: %{cpan_name}-%{version}.tar.bz2
# for running all tests:
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
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)
BuildRequires: perl(Log::Dispatch)
BuildRequires: perl(Log::Dispatch::FileRotate) >= 1.10
BuildRequires: perl(XML::DOM) > 1.29
BuildRequires: rrdtool
Requires: perl = %{perl_version}
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
%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.
Authors:
--------
Mike Schilli <m@perlmeister.com>
Kevin Goess <cpan@goess.org>
%prep
%setup -q -n %{cpan_name}-%{version}
find -type f -exec chmod 0644 {} \;
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?jobs:-j%jobs}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
for file in eg/newsyslog-test eg/benchmarks/simple; do
sed -i "s|/usr/local/bin/perl|%_bindir/perl|g" $file
done
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes LICENSE README eg xml ldap
%changelog