Files
perl-Dancer-Session-Cookie/perl-Dancer-Session-Cookie.spec
2025-08-12 18:12:58 +02:00

108 lines
3.8 KiB
RPMSpec

#
# spec file for package perl-Dancer-Session-Cookie
#
# 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 Dancer-Session-Cookie
Name: perl-Dancer-Session-Cookie
Version: 0.300.0
Release: 0
# 0.30 -> normalize -> 0.300.0
%define cpan_version 0.30
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Encrypted cookie-based session backend for Dancer
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YANICK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Crypt::CBC)
BuildRequires: perl(Crypt::Rijndael)
BuildRequires: perl(Dancer) >= 1.311.300
BuildRequires: perl(Dancer::Cookie)
BuildRequires: perl(Dancer::Cookies)
BuildRequires: perl(Dancer::ModuleLoader)
BuildRequires: perl(Dancer::Session::Abstract)
BuildRequires: perl(Dancer::Test)
BuildRequires: perl(HTTP::Cookies)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(PerlX::Maybe)
BuildRequires: perl(Plack) >= 1.0029
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Session::Storage::Secure) >= 0.10.0
BuildRequires: perl(String::CRC32)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Time::Duration::Parse)
BuildRequires: perl(parent)
Requires: perl(Crypt::CBC)
Requires: perl(Crypt::Rijndael)
Requires: perl(Dancer) >= 1.311.300
Requires: perl(Dancer::Cookie)
Requires: perl(Dancer::Cookies)
Requires: perl(Dancer::Session::Abstract)
Requires: perl(PerlX::Maybe)
Requires: perl(Session::Storage::Secure) >= 0.10.0
Requires: perl(String::CRC32)
Requires: perl(Time::Duration::Parse)
Requires: perl(parent)
Provides: perl(Dancer::Session::Cookie) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module implements a session engine for sessions stored entirely in
cookies. Usually only the *session id* is stored in cookies and the session
data itself is saved in some external storage, e.g. a database. This module
allows you to avoid using external storage at all.
Since a server cannot trust any data returned by clients in cookies, this
module uses cryptography to ensure integrity and also secrecy. The data
your application stores in sessions is completely protected from both
tampering and analysis on the client-side.
Do be aware that browsers limit the size of individual cookies, so this
method is not suitable if you wish to store a large amount of data.
Browsers typically limit the size of a cookie to 4KB, but that includes the
space taken to store the cookie's name, expiration and other attributes as
well as its content.
%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 CONTRIBUTING.md CONTRIBUTORS doap.xml README.mkdn
%license LICENSE
%changelog