forked from pool/perl-Log-Log4perl
Accepting request 43500 from home:computersalat:devel:perl
Copy from home:computersalat:devel:perl/perl-Log-Log4perl via accept of submit request 43500 revision 2. Request was accepted with message: self accept OBS-URL: https://build.opensuse.org/request/show/43500 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Log4perl?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
181a3bc50d
commit
7971c2bc23
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl-Log-Log4perl (Version 1.28)
|
||||
# spec file for package perl-Log-Log4perl (Version 1.29)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -17,47 +17,49 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%bcond_with test
|
||||
|
||||
Name: perl-Log-Log4perl
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
%define cpan_name Log-Log4perl
|
||||
Summary: Log4j implementation for Perl
|
||||
Version: 1.28
|
||||
Release: 2
|
||||
License: Artistic License ..
|
||||
Version: 1.29
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Log-Log4perl
|
||||
Url: http://search.cpan.org/dist/Log-Log4perl/
|
||||
#Source: http://www.cpan.org/modules/by-module/Log/Log-Log4perl-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
# for running all tests:
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
%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
|
||||
%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)
|
||||
# fix build cycle, do not enable
|
||||
#BuildRequires: perl(Log::Dispatch::FileRotate) >= 1.10
|
||||
BuildRequires: perl(XML::DOM) > 1.29
|
||||
BuildRequires: rrdtool
|
||||
#BuildRequires: perl(DBI) >= 1.607
|
||||
#BuildRequires: perl(DBD::CSV) >= 0.22
|
||||
#BuildRequires: perl(IO::Socket::INET)
|
||||
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(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.
|
||||
|
||||
|
||||
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:
|
||||
--------
|
||||
@@ -66,25 +68,36 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find -type f -exec chmod 0644 {} \;
|
||||
# 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"
|
||||
done
|
||||
popd
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
# 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
|
||||
%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}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
|
Reference in New Issue
Block a user