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