File perl-CGI-Session-Serialize-yaml.spec of Package perl-CGI-Session-Serialize-yaml
#
# spec file for package perl-CGI-Session-Serialize-yaml
#
# 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 CGI-Session-Serialize-yaml
Name: perl-CGI-Session-Serialize-yaml
Version: 4.260.0
Release: 0
# 4.26 -> normalize -> 4.260.0
%define cpan_version 4.26
License: Artistic-1.0
Summary: Add YAML and YAML::Syck support to CGI::Session's serializers
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{cpan_version}.tgz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CGI::Session) >= 4.3
BuildRequires: perl(CGI::Session::ErrorHandler) >= 4.3
BuildRequires: perl(Module::Build) >= 0.36
BuildRequires: perl(Test::Pod)
Requires: perl(CGI::Session) >= 4.3
Requires: perl(CGI::Session::ErrorHandler) >= 4.3
Provides: perl(CGI::Session::Serialize::yaml) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This library can be used by CGI::Session to serialize session data. It uses
'YAML', or the faster C implementation, 'YAML::Syck' if it is available.
YAML serializers exist not just for Perl but also other dynamic languages,
such as PHP, Python, and Ruby, so storing session data in this format makes
it easy to share session data across different languages.
YAML is made to be friendly for humans to parse as well as other computer
languages. It creates a format that is easier to read than the default
serializer.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGES README
%changelog