Files
perl-Catalyst-DispatchType-…/perl-Catalyst-DispatchType-Regex.spec
2025-08-12 18:12:07 +02:00

85 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Catalyst-DispatchType-Regex
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Catalyst-DispatchType-Regex
Name: perl-Catalyst-DispatchType-Regex
Version: 5.900.350
Release: 0
# 5.90035 -> normalize -> 5.900.350
%define cpan_version 5.90035
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Regex DispatchType
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MG/MGRIMES/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Catalyst::Runtime) >= 5.900.600
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Module::Build) >= 0.4004
BuildRequires: perl(Moose)
BuildRequires: perl(Text::SimpleTable)
BuildRequires: perl(namespace::autoclean)
Requires: perl(Catalyst::Runtime) >= 5.900.600
Requires: perl(Moose)
Requires: perl(Text::SimpleTable)
Provides: perl(Catalyst::DispatchType::LocalRegex)
Provides: perl(Catalyst::DispatchType::LocalRegexp)
Provides: perl(Catalyst::DispatchType::Regex) = %{version}
Provides: perl(Catalyst::DispatchType::Regexp)
%undefine __perllib_provides
%{perl_requires}
%description
*Status: Deprecated.* Regex dispatch types have been deprecated and removed
from Catalyst core. It is recommend that you use Chained methods or other
techniques instead. As part of the refactoring, the dispatch priority of
Regex vs Regexp vs LocalRegex vs LocalRegexp may have changed. Priority is
now influenced by when the dispatch type is first seen in your application.
When loaded, a warning about the deprecation will be printed to STDERR. To
suppress the warning set the CATALYST_NOWARN_DEPRECATE environment variable
to a true value.
Dispatch type managing path-matching behaviour using regexes. For more
information on dispatch types, see:
* * Catalyst::Manual::Intro for how they affect application authors
* * Catalyst::DispatchType for implementation information.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog