2024-07-19 21:14:00 +00:00
committed by Git OBS Bridge
parent dfe9b6735c
commit 98667c6186

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Catalyst-Plugin-StackTrace # 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 # 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
@@ -16,25 +16,28 @@
# #
Name: perl-Catalyst-Plugin-StackTrace
Version: 0.12
Release: 0
%define cpan_name Catalyst-Plugin-StackTrace %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 License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Summary: Display a stack trace on the debug screen
Url: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{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(Catalyst) >= 5.70 BuildRequires: perl(Catalyst) >= 5.700.0
BuildRequires: perl(Devel::StackTrace) BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(MRO::Compat) >= 0.10 BuildRequires: perl(MRO::Compat) >= 0.10
Requires: perl(Catalyst) >= 5.70 Requires: perl(Catalyst) >= 5.700.0
Requires: perl(Devel::StackTrace) Requires: perl(Devel::StackTrace)
Requires: perl(MRO::Compat) >= 0.10 Requires: perl(MRO::Compat) >= 0.10
Provides: perl(Catalyst::Plugin::StackTrace) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %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. setting the 'enable' config option.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
PERL_USE_UNSAFE_INC=1 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
@@ -63,7 +67,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes %doc Changes
%changelog %changelog