2011-04-21 04:53:18 +00:00
|
|
|
#
|
2015-04-14 17:49:57 +00:00
|
|
|
# spec file for package perl-CGI-Application-Plugin-Session
|
2011-04-21 04:53:18 +00:00
|
|
|
#
|
2024-07-19 19:40:34 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-04-21 04:53:18 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-07-19 19:40:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-21 04:53:18 +00:00
|
|
|
#
|
|
|
|
|
2015-04-14 17:49:57 +00:00
|
|
|
|
2024-07-19 19:40:34 +00:00
|
|
|
%define cpan_name CGI-Application-Plugin-Session
|
2011-04-21 04:53:18 +00:00
|
|
|
Name: perl-CGI-Application-Plugin-Session
|
2025-01-09 16:25:44 +00:00
|
|
|
Version: 1.60.0
|
2015-04-14 17:49:57 +00:00
|
|
|
Release: 0
|
2025-01-09 16:25:44 +00:00
|
|
|
# 1.06 -> normalize -> 1.60.0
|
|
|
|
%define cpan_version 1.06
|
2024-07-19 19:40:34 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2015-04-14 17:49:57 +00:00
|
|
|
Summary: Plugin that adds session support to CGI::Application
|
2024-07-19 19:40:34 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-09 16:25:44 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/W/WE/WESM/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:12:15 +02:00
|
|
|
Source100: README.md
|
2011-04-21 04:53:18 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(CGI::Application) >= 3.21
|
2015-04-14 17:49:57 +00:00
|
|
|
BuildRequires: perl(CGI::Session) >= 4.48
|
|
|
|
BuildRequires: perl(Test::More) >= 1.001002
|
2011-04-21 04:53:18 +00:00
|
|
|
Requires: perl(CGI::Application) >= 3.21
|
2015-04-14 17:49:57 +00:00
|
|
|
Requires: perl(CGI::Session) >= 4.48
|
2024-07-19 19:40:34 +00:00
|
|
|
Provides: perl(CGI::Application::Plugin::Session) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-04-21 04:53:18 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
CGI::Application::Plugin::Session seamlessly adds session support to your
|
2024-07-19 19:40:34 +00:00
|
|
|
CGI::Application modules by providing a CGI::Session object that is
|
|
|
|
accessible from anywhere in the application.
|
2011-04-21 04:53:18 +00:00
|
|
|
|
|
|
|
Lazy loading is used to prevent expensive file system or database calls
|
|
|
|
from being made if the session is not needed during this request. In other
|
|
|
|
words, the Session object is not created until it is actually needed. Also,
|
|
|
|
the Session object will act as a singleton by always returning the same
|
|
|
|
Session object for the duration of the request.
|
|
|
|
|
|
|
|
This module aims to be as simple and non obtrusive as possible. By not
|
|
|
|
requiring any changes to the inheritance tree of your modules, it can be
|
|
|
|
easily added to existing applications. Think of it as a plugin module that
|
|
|
|
adds a couple of new methods directly into the CGI::Application namespace
|
|
|
|
simply by loading the module.
|
|
|
|
|
|
|
|
%prep
|
2024-07-19 19:40:34 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-04-21 04:53:18 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-19 19:40:34 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-04-21 04:53:18 +00:00
|
|
|
|
|
|
|
%check
|
2024-07-19 19:40:34 +00:00
|
|
|
make test
|
2011-04-21 04:53:18 +00:00
|
|
|
|
|
|
|
%install
|
2015-04-14 17:49:57 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-21 04:53:18 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-07-19 19:40:34 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-04-21 04:53:18 +00:00
|
|
|
|
|
|
|
%changelog
|