8
0
Files
perl-Sereal-Encoder/perl-Sereal-Encoder.spec

85 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Sereal-Encoder
#
Accepting request 1066764 from devel:languages:perl:autoupdate - updated to 5.003 see /usr/share/doc/packages/perl-Sereal-Encoder/Changes 5.003 * Production release of 5.002_001 and 5.002_002 * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh for providing guidance and access to an OpenBSD box to use to debug and fix this. * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 * Assorted build fixes related to these updates. 5.002_002 * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh for providing guidance and access to an OpenBSD box to use to debug and fix this. 5.002_001 * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 * Assorted build fixes related to these updates. 5.002 * Fixup Decoder tests to run on perl 5.8 which has no defined-or. - Consolidated changes from 5.001_00x: * Ensure that Encoder depends on the correct version of the Decoder. Gracious thanks to Slaven Rezic for being so patient in helping me get this release working properly. * Test compatibility fixes when no perl is already installed. * Add t/195_backcompat.t to check if the latest decoder will seamlessly handle reading output from older versions. * Test compatibility fixes with version 3 and earlier. 5.001_003 * Ensure that Encoder depends on the correct version of the Decoder. Gracious thanks to Slaven Rezic for being so patient in helping me get 5.001_00x working properly. 5.001_002 * Test compatibility fixes when no perl is already installed. * Decoder: Add t/195_backcompat.t to check if the latest decoder will seamlessly handle reading output from older versions. 5.001_001 * Test compatibility fixes with version 3 and earlier. OBS-URL: https://build.opensuse.org/request/show/1066764 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sereal-Encoder?expand=0&rev=31
2023-02-20 14:05:37 +00:00
# Copyright (c) 2023 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 Sereal-Encoder
Name: perl-Sereal-Encoder
Version: 5.004
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Binary serialization module for Perl (encoder part)
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/Y/YV/YVES/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:17:02 +02:00
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
BuildRequires: perl(Sereal::Decoder) >= 5.004
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warn)
Requires: perl(Sereal::Decoder) >= 5.004
%{perl_requires}
%description
This library implements an efficient, compact-output, and feature-rich
serializer using a binary protocol called _Sereal_. Its sister module
Sereal::Decoder implements a decoder for this format. The two are released
separately to allow for independent and safer upgrading. If you care
greatly about performance, consider reading the Sereal::Performance
documentation after finishing this document.
The Sereal protocol version emitted by this encoder implementation is
currently protocol version 4 by default.
The protocol specification and many other bits of documentation can be
found in the github repository. Right now, the specification is at
https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod, there is a
discussion of the design objectives in
https://github.com/Sereal/Sereal/blob/master/README.pod, and the output of
our benchmarks can be seen at
https://github.com/Sereal/Sereal/wiki/Sereal-Comparison-Graphs. For more
information on getting the best performance out of Sereal, have a look at
the "PERFORMANCE" section below.
%prep
%autosetup -n %{cpan_name}-%{version}
Accepting request 1066764 from devel:languages:perl:autoupdate - updated to 5.003 see /usr/share/doc/packages/perl-Sereal-Encoder/Changes 5.003 * Production release of 5.002_001 and 5.002_002 * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh for providing guidance and access to an OpenBSD box to use to debug and fix this. * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 * Assorted build fixes related to these updates. 5.002_002 * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh for providing guidance and access to an OpenBSD box to use to debug and fix this. 5.002_001 * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 * Assorted build fixes related to these updates. 5.002 * Fixup Decoder tests to run on perl 5.8 which has no defined-or. - Consolidated changes from 5.001_00x: * Ensure that Encoder depends on the correct version of the Decoder. Gracious thanks to Slaven Rezic for being so patient in helping me get this release working properly. * Test compatibility fixes when no perl is already installed. * Add t/195_backcompat.t to check if the latest decoder will seamlessly handle reading output from older versions. * Test compatibility fixes with version 3 and earlier. 5.001_003 * Ensure that Encoder depends on the correct version of the Decoder. Gracious thanks to Slaven Rezic for being so patient in helping me get 5.001_00x working properly. 5.001_002 * Test compatibility fixes when no perl is already installed. * Decoder: Add t/195_backcompat.t to check if the latest decoder will seamlessly handle reading output from older versions. 5.001_001 * Test compatibility fixes with version 3 and earlier. OBS-URL: https://build.opensuse.org/request/show/1066764 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sereal-Encoder?expand=0&rev=31
2023-02-20 14:05:37 +00:00
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
# Don't build with smp_flags!
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes
%changelog