8
0

Accepting request 28388 from devel:languages:perl

Copy from devel:languages:perl/perl-Log-Log4perl based on submit request 28388 from user coolo

OBS-URL: https://build.opensuse.org/request/show/28388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Log4perl?expand=0&rev=9
This commit is contained in:
OBS User autobuild
2010-01-11 17:06:53 +00:00
committed by Git OBS Bridge
parent 60a5c88ceb
commit 0a02930ced
4 changed files with 88 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Log-Log4perl (Version 1.24)
# spec file for package perl-Log-Log4perl (Version 1.26)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -17,20 +17,35 @@
# norootforbuild
Url: http://search.cpan.org/perldoc?Log::Log4perl
Name: perl-Log-Log4perl
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Log4j implementation for Perl
Version: 1.26
Release: 1
License: Artistic License ..
Group: Development/Libraries/Perl
AutoReqProv: on
Version: 1.24
Release: 1
Url: http://search.cpan.org/dist/Log-Log4perl
Source: %{cpan_name}-%{version}.tar.bz2
# for running all tests:
BuildRequires: perl-DBD-CSV perl-Log-Dispatch perl-XML-DOM
Requires: perl = %{perl_version}
Source: Log-Log4perl-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
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
@@ -45,33 +60,29 @@ Authors:
Kevin Goess <cpan@goess.org>
%prep
%setup q- -n Log-Log4perl-%{version}
# ---------------------------------------------------------------------------
%setup -q -n %{cpan_name}-%{version}
find -type f -exec chmod 0644 {} \;
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
# ---------------------------------------------------------------------------
%{__make} %{?jobs:-j%jobs}
%check
make test
%{__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
%files
%defattr(644,root,root,755)
%doc Changes LICENSE MANIFEST README eg xml
%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/Log
%{perl_vendorlib}/Log/*
%dir %{perl_vendorarch}/auto/Log
%dir %{perl_vendorarch}/auto/Log/Log4perl
%{perl_vendorarch}/auto/Log/Log4perl/.packlist
/var/adm/perl-modules/%{name}
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes LICENSE README eg xml ldap
%changelog