2024-08-02 20:59:53 +00:00
committed by Git OBS Bridge
parent b918b4e65e
commit ada1c4e87c

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Log-Log4perl
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,37 +12,32 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Test-Log-Log4perl
Version: 0.32
Release: 0
%define cpan_name Test-Log-Log4perl
Summary: test log4perl
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Log-Log4perl/
Source: http://www.cpan.org/authors/id/C/CL/CLKAO/%{cpan_name}-%{version}.tar.gz
Name: perl-Test-Log-Log4perl
Version: 0.320.0
Release: 0
# 0.32 -> normalize -> 0.320.0
%define cpan_version 0.32
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Test log4perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CL/CLKAO/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Module::Install)
BuildRequires: perl(Test::Exception)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(JSON)
#BuildRequires: perl(Log::Log4perl::Logger)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Test::Log::Log4perl)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(Log::Log4perl)
Requires: perl(Test::Exception)
Provides: perl(Log::Log4perl::Logger::IgnoreAll)
Provides: perl(Log::Log4perl::Logger::Interception)
Provides: perl(Test::Log::Log4perl) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -88,14 +83,14 @@ the comparisons.
Test::Log::Log4perl->end("test name");
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -103,7 +98,6 @@ the comparisons.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes MYMETA.json MYMETA.yml README
%doc Changes README
%changelog