Files
perl-Catalyst-Plugin-Authen…/perl-Catalyst-Plugin-Authentication.spec

97 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Catalyst-Plugin-Authentication
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: perl-Catalyst-Plugin-Authentication
Version: 0.10023
Release: 0
%define cpan_name Catalyst-Plugin-Authentication
Summary: Infrastructure plugin for the Catalyst authentication framework
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Catalyst::Plugin::Session) >= 0.10
BuildRequires: perl(Catalyst::Runtime)
BuildRequires: perl(Class::Inspector)
BuildRequires: perl(Class::MOP)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::autoclean)
Requires: perl(Catalyst::Plugin::Session) >= 0.10
Requires: perl(Catalyst::Runtime)
Requires: perl(Class::Inspector)
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)
%{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
%setup -q -n %{cpan_name}-%{version}
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog