109 lines
4.2 KiB
RPMSpec
109 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
|
|
Source100: README.md
|
|
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
|