Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Log-Log4perl?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-Log-Log4perl
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
%define cpan_name Test-Log-Log4perl
|
||||||
Summary: test log4perl
|
Name: perl-Test-Log-Log4perl
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
Version: 0.320.0
|
||||||
Group: Development/Libraries/Perl
|
Release: 0
|
||||||
Url: http://search.cpan.org/dist/Test-Log-Log4perl/
|
# 0.32 -> normalize -> 0.320.0
|
||||||
Source: http://www.cpan.org/authors/id/C/CL/CLKAO/%{cpan_name}-%{version}.tar.gz
|
%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
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
||||||
BuildRequires: perl(Log::Log4perl)
|
BuildRequires: perl(Log::Log4perl)
|
||||||
BuildRequires: perl(Module::Install)
|
|
||||||
BuildRequires: perl(Test::Exception)
|
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(Log::Log4perl)
|
||||||
Requires: perl(Test::Exception)
|
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}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -88,14 +83,14 @@ the comparisons.
|
|||||||
Test::Log::Log4perl->end("test name");
|
Test::Log::Log4perl->end("test name");
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@@ -103,7 +98,6 @@ the comparisons.
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%doc Changes README
|
||||||
%doc Changes MYMETA.json MYMETA.yml README
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user