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) 2015 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 http://bugs.opensuse.org/
#


Name:           perl-CGI-Session-Serialize-yaml
Version:        4.26
Release:        0
%define cpan_name CGI-Session-Serialize-yaml
Summary:        Serializer for Cgi::Session
License:        Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/CGI-Session-Serialize-yaml/
Source0:        http://www.cpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(CGI::Session) >= 4.3
BuildRequires:  perl(CGI::Session::ErrorHandler) >= 4.3
BuildRequires:  perl(Module::Build) >= 0.360000
BuildRequires:  perl(Test::Pod)
Requires:       perl(CGI::Session) >= 4.3
Requires:       perl(CGI::Session::ErrorHandler) >= 4.3
%{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
%setup -q -n %{cpan_name}-%{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
%defattr(-,root,root,755)
%doc CHANGES README

%changelog
openSUSE Build Service is sponsored by