2024-07-19 21:06:55 +00:00
committed by Git OBS Bridge
parent b6f6969ba4
commit 3cc9ed18ce

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Catalyst-Plugin-CustomErrorMessage (Version 0.06)
# spec file for package perl-Catalyst-Plugin-CustomErrorMessage
#
# Copyright (c) 2011 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,34 +12,36 @@
# 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-Catalyst-Plugin-CustomErrorMessage
Version: 0.06
Release: 1
License: GPL+ or Artistic
%define cpan_name Catalyst-Plugin-CustomErrorMessage
Name: perl-Catalyst-Plugin-CustomErrorMessage
Version: 0.60.0
Release: 0
# 0.06 -> normalize -> 0.60.0
%define cpan_version 0.06
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Catalyst plugin to have more "cute" error message
Url: http://search.cpan.org/dist/Catalyst-Plugin-CustomErrorMessage/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/J/JK/JKUTEJ/Catalyst-Plugin-CustomErrorMessage-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JK/JKUTEJ/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Module::Build) >= 0.36
BuildRequires: perl(URI::Escape)
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
Requires: perl(Class::Data::Inheritable)
Requires: perl(HTML::Entities)
Requires: perl(MRO::Compat)
Requires: perl(URI::Escape)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: perl(Catalyst::Plugin::CustomErrorMessage) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -58,24 +60,20 @@ What it does is that it inherites finalize_error to $c object.
See finalize_error() function.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog