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-Catalyst-Plugin-StackTrace?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Catalyst-Plugin-StackTrace
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX 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
|
||||
@@ -16,25 +16,28 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Catalyst-Plugin-StackTrace
|
||||
Version: 0.12
|
||||
Release: 0
|
||||
%define cpan_name Catalyst-Plugin-StackTrace
|
||||
Summary: Display a stack trace on the debug screen
|
||||
Name: perl-Catalyst-Plugin-StackTrace
|
||||
Version: 0.120.0
|
||||
Release: 0
|
||||
# 0.12 -> normalize -> 0.120.0
|
||||
%define cpan_version 0.12
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Display a stack trace on the debug screen
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Catalyst) >= 5.70
|
||||
BuildRequires: perl(Catalyst) >= 5.700.0
|
||||
BuildRequires: perl(Devel::StackTrace)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
||||
BuildRequires: perl(MRO::Compat) >= 0.10
|
||||
Requires: perl(Catalyst) >= 5.70
|
||||
Requires: perl(Catalyst) >= 5.700.0
|
||||
Requires: perl(Devel::StackTrace)
|
||||
Requires: perl(MRO::Compat) >= 0.10
|
||||
Provides: perl(Catalyst::Plugin::StackTrace) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -47,12 +50,13 @@ This plugin is only active in -Debug mode by default, but can be enabled by
|
||||
setting the 'enable' config option.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -63,7 +67,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user