Files
perl-Catalyst-Plugin-Authen…/perl-Catalyst-Plugin-Authentication.spec
Tina Müller 5a3f4554c4 Accepting request 1235301 from devel:languages:perl:autoupdate
- updated to 0.100.240 (0.10024)
   see /usr/share/doc/packages/perl-Catalyst-Plugin-Authentication/Changes
  0.10024 - 2024-10-16
      - update to prefer modern Catalyst APIs
      - silence expected warnings in tests
      - move repository to GitHub
      - convert tests from Test::WWW::Mechanize::Catalyst to Catalyst::Test
      - don't load unneeded Tie::RefHash
      - switch from Digest::SHA1 to Digest::SHA
      - switch from Test::Exception to Test::Fatal
      - drop unused dependency Class::Inspector
      - Don't load password when password_type is 'none',
        for example when used for authorization

OBS-URL: https://build.opensuse.org/request/show/1235301
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-Plugin-Authentication?expand=0&rev=8
2025-01-09 16:22:16 +00:00

108 lines
4.2 KiB
RPMSpec

#
# spec file for package perl-Catalyst-Plugin-Authentication
#
# 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-Plugin-Authentication
Name: perl-Catalyst-Plugin-Authentication
Version: 0.100.240
Release: 0
# 0.10024 -> normalize -> 0.100.240
%define cpan_version 0.10024
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Infrastructure plugin for the Catalyst authentication framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Catalyst::Runtime)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::autoclean)
Requires: perl(Catalyst::Runtime)
Requires: perl(MRO::Compat)
Requires: perl(Moose)
Requires: perl(MooseX::Emulate::Class::Accessor::Fast)
Requires: perl(String::RewritePrefix)
Requires: perl(Try::Tiny)
Requires: perl(namespace::autoclean)
Provides: perl(Catalyst::Authentication::Credential::NoPassword)
Provides: perl(Catalyst::Authentication::Credential::Password)
Provides: perl(Catalyst::Authentication::Credential::Remote)
Provides: perl(Catalyst::Authentication::Realm)
Provides: perl(Catalyst::Authentication::Realm::Compatibility)
Provides: perl(Catalyst::Authentication::Realm::Progressive)
Provides: perl(Catalyst::Authentication::Store::Minimal)
Provides: perl(Catalyst::Authentication::Store::Null)
Provides: perl(Catalyst::Authentication::User)
Provides: perl(Catalyst::Authentication::User::Hash)
Provides: perl(Catalyst::Plugin::Authentication) = %{version}
Provides: perl(Catalyst::Plugin::Authentication::Credential::Password)
Provides: perl(Catalyst::Plugin::Authentication::Store::Minimal)
Provides: perl(Catalyst::Plugin::Authentication::User)
Provides: perl(Catalyst::Plugin::Authentication::User::Hash)
%undefine __perllib_provides
%{perl_requires}
%description
The authentication plugin provides generic user support for Catalyst apps.
It is the basis for both authentication (checking the user is who they
claim to be), and authorization (allowing the user to do what the system
authorises them to do).
Using authentication is split into two parts. A Store is used to actually
store the user information, and can store any amount of data related to the
user. Credentials are used to verify users, using information from the
store, given data from the frontend. A Credential and a Store are paired to
form a 'Realm'. A Catalyst application using the authentication framework
must have at least one realm, and may have several.
To implement authentication in a Catalyst application you need to add this
module, and specify at least one realm in the configuration.
Authentication data can also be stored in a session, if the application is
using the Catalyst::Plugin::Session module.
*NOTE* in version 0.10 of this module, the interface to this module
changed. Please see COMPATIBILITY ROUTINES for more information.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog