# # spec file for package perl-Catalyst-Plugin-Authentication (Version 0.10016) # # Copyright (c) 2010 SUSE LINUX Products 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 http://bugs.opensuse.org/ # Name: perl-Catalyst-Plugin-Authentication Version: 0.10016 Release: 1 License: GPL+ or Artistic %define cpan_name Catalyst-Plugin-Authentication Summary: Infrastructure plugin for the Catalyst Url: http://search.cpan.org/dist/Catalyst-Plugin-Authentication/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/F/FL/FLORA/Catalyst-Plugin-Authentication-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 BuildRequires: perl(Catalyst::Plugin::Session) >= 0.10 BuildRequires: perl(Catalyst::Runtime) BuildRequires: perl(Class::Inspector) BuildRequires: perl(Class::MOP) BuildRequires: perl(Moose) BuildRequires: perl(MRO::Compat) BuildRequires: perl(Test::Exception) BuildRequires: perl BuildRequires: perl-macros Requires: perl(Catalyst::Plugin::Session) >= 0.10 Requires: perl(Catalyst::Runtime) Requires: perl(Class::Inspector) Requires: perl(MRO::Compat) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{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 the Catalyst::Plugin::Session manpage module. *NOTE* in version 0.10 of this module, the interface to this module changed. Please see the /COMPATIBILITY ROUTINES manpage for more information. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %doc Changes README %changelog