57 lines
1.6 KiB
RPMSpec
57 lines
1.6 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Log-Any-Adapter-Log4perl
|
||
|
Version: 0.06
|
||
|
Release: 0
|
||
|
Summary: Adapter to use Log::Log4perl with Log::Any
|
||
|
Source: ftp://ftp.cpan.org/pub/CPAN/authors/id/J/JS/JSWARTZ/Log-Any-Adapter-Log4perl-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/Log-Any-Adapter-Log4perl
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(File::Temp) >= 0.20
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||
|
BuildRequires: perl(Log::Any::Adapter)
|
||
|
BuildRequires: perl(Log::Log4perl) >= 1.00
|
||
|
Requires: perl(Log::Any::Adapter)
|
||
|
Requires: perl(Log::Log4perl) >= 1.00
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
This Log::Any adapter uses Log::Log4perl for logging. log4perl must be
|
||
|
initialized before calling *set*. There are no parameters.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Log-Any-Adapter-Log4perl-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?jobs:-j%{jobs}}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc Changes README
|
||
|
%dir %{perl_vendorlib}/Log
|
||
|
%dir %{perl_vendorlib}/Log/Any
|
||
|
%dir %{perl_vendorlib}/Log/Any/Adapter
|
||
|
%{perl_vendorlib}/Log/Any/Adapter/Log4perl.pm
|
||
|
%doc %{perl_man3dir}/Log::Any::Adapter::Log4perl.%{perl_man3ext}%{ext_man}
|
||
|
|