perl-Sereal-Encoder/perl-Sereal-Encoder.spec

345 lines
12 KiB
RPMSpec
Raw Normal View History

2017-11-14 13:03:31 +00:00
# Run optional tests
2018-04-06 11:33:41 +00:00
%if ! (0%{?rhel})
2017-11-14 14:06:41 +00:00
%bcond_without perl_Sereal_Encoder_enables_optional_test
2018-04-06 11:33:41 +00:00
%else
%bcond_with perl_Sereal_Encoder_enables_optional_test
%endif
2017-11-14 13:03:31 +00:00
2014-10-30 06:42:57 +00:00
Name: perl-Sereal-Encoder
Version: 5.004
Release: 1%{?dist}
2019-04-26 07:38:29 +00:00
Summary: Perl serialization into Sereal format
2014-10-30 06:42:57 +00:00
# lib/Sereal/Encoder.pm: GPL+ or Artistic
2015-11-27 11:39:45 +00:00
# qsort.h: LGPLv2+ (borrowed from glibc)
2020-02-04 10:40:04 +00:00
## Unbundled
# miniz.c: MIT and Unlicense
# snappy: BSD
2020-06-15 15:20:28 +00:00
# zstd/decompress/zstd_decompress.c: GPLv2 or BSD
2014-10-30 06:42:57 +00:00
# See <https://github.com/Sereal/Sereal/issues/72>
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND LGPL-2.1-or-later
URL: https://metacpan.org/release/Sereal-Encoder
Source0: https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
# Build:
2017-11-14 13:03:31 +00:00
BuildRequires: coreutils
2014-10-30 06:42:57 +00:00
BuildRequires: csnappy-devel
2017-11-14 13:03:31 +00:00
BuildRequires: findutils
2015-11-16 10:04:38 +00:00
BuildRequires: gcc
2017-11-14 13:03:31 +00:00
BuildRequires: libzstd-devel
BuildRequires: make
2014-10-30 06:42:57 +00:00
BuildRequires: miniz-devel
2015-11-16 10:04:38 +00:00
BuildRequires: perl-devel
BuildRequires: perl-generators
2017-11-14 13:03:31 +00:00
BuildRequires: perl-interpreter
2014-10-30 06:42:57 +00:00
BuildRequires: perl(Config)
2015-11-27 11:39:45 +00:00
BuildRequires: perl(constant)
BuildRequires: perl(Devel::CheckLib) >= 1.16
2015-01-05 12:07:55 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
2017-11-14 13:03:31 +00:00
# File::Find not used
# File::Path not used in inc/Sereal/BuildTools.pm
# File::Spec not used in inc/Sereal/BuildTools.pm
2014-10-30 06:42:57 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(XSLoader)
# Tests:
# Benchmark not used
BuildRequires: perl(blib)
2015-11-27 11:39:45 +00:00
BuildRequires: perl(Cwd)
2014-10-30 06:42:57 +00:00
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::Peek)
BuildRequires: perl(Encode)
2017-11-14 13:03:31 +00:00
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
# Hash::Util is needed on perl >= 5.25. It's in an eval to proceed to
# num_buckets() definition with older perls.
BuildRequires: perl(Hash::Util)
2014-10-30 06:42:57 +00:00
BuildRequires: perl(integer)
BuildRequires: perl(lib)
BuildRequires: perl(List::Util)
BuildRequires: perl(overload)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sereal::Decoder) >= %{version}
2014-10-30 06:42:57 +00:00
BuildRequires: perl(Storable)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warn)
BuildRequires: perl(threads)
2015-11-27 11:39:45 +00:00
BuildRequires: perl(threads::shared)
2014-10-30 06:42:57 +00:00
BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Tie::Scalar)
# Time::HiRes not used
BuildRequires: perl(utf8)
2015-12-07 13:10:20 +00:00
BuildRequires: perl(version)
2017-11-14 13:03:31 +00:00
%if %{with perl_Sereal_Encoder_enables_optional_test}
2015-11-16 10:04:38 +00:00
# Optional tests:
BuildRequires: perl(Test::Deep) >= 0.110
BuildRequires: perl(Test::Deep::NoTest)
2017-11-14 13:03:31 +00:00
%endif
2014-10-30 06:42:57 +00:00
%description
This library implements an efficient, compact-output, and feature-rich
serializer using a binary protocol called Sereal.
%prep
%setup -q -n Sereal-Encoder-%{version}
# Remove bundled Perl modules
rm -r ./inc/Devel
2020-01-30 14:55:18 +00:00
perl -i -ne 'print $_ unless m{^inc/Devel/}' MANIFEST
2014-10-30 06:42:57 +00:00
# Remove bundled csnappy
rm -r ./snappy
2020-01-30 14:55:18 +00:00
perl -i -ne 'print $_ unless m{^snappy/}' MANIFEST
2014-10-30 06:42:57 +00:00
# Remove bundled miniz
rm miniz.*
2020-01-30 14:55:18 +00:00
perl -i -ne 'print $_ unless m{^miniz\.}' MANIFEST
2017-11-14 13:03:31 +00:00
# Remove bundled zstd
rm -r zstd
2020-01-30 14:55:18 +00:00
perl -i -ne 'print $_ unless m{^zstd/}' MANIFEST
2014-10-30 06:42:57 +00:00
%build
2017-11-14 13:03:31 +00:00
unset DEBUG SEREAL_USE_BUNDLED_LIBS SEREAL_USE_BUNDLED_CSNAPPY \
SEREAL_USE_BUNDLED_MINIZ SEREAL_USE_BUNDLED_ZSTD
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
2019-04-09 12:59:00 +00:00
%{make_build}
2014-10-30 06:42:57 +00:00
%install
2019-04-09 12:59:00 +00:00
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
2014-10-30 06:42:57 +00:00
%check
make test
%files
2014-10-30 06:43:18 +00:00
%doc Changes
%{perl_vendorarch}/auto/Sereal/
%{perl_vendorarch}/Sereal/
%{_mandir}/man3/Sereal::Encoder.3*
2014-10-30 06:42:57 +00:00
%changelog
* Wed Apr 19 2023 Paul Howarth <paul@city-fan.org> - 5.004-1
- Update to 5.004 (rhbz#2188043)
- Decoder fixes: fix thaw ordering for frozen objects - nested THAW
operations now happen in the documented LIFO order (GH#283, GH#285)
* Wed Feb 8 2023 Paul Howarth <paul@city-fan.org> - 5.003-1
- Update to 5.003 (rhbz#2168016)
- Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16
(note: this package uses the system versions of these)
- Assorted build fixes related to these updates
- OpenBSD build fixes
* Wed Feb 1 2023 Paul Howarth <paul@city-fan.org> - 5.002-1
- Update to 5.002 (rhbz#2166281)
- Fix up Decoder tests to run on perl 5.8, which has no defined-or
- Ensure that Encoder depends on the correct version of the Decoder
- 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
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.001-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2022-11-01 12:24:11 +00:00
* Tue Nov 01 2022 Petr Pisar <ppisar@redhat.com> - 5.001-2
- Rebuild against miniz-3.0.0 (bug #2137798)
* Sun Sep 4 2022 Paul Howarth <paul@city-fan.org> - 5.001-1
- Update to 5.001
- First official release of protocol 5
- Better support for non-standard NV types
- Support for the new Perl 5.36 bools
- Use SPDX-format license tag
* Thu Jul 28 2022 Paul Howarth <paul@city-fan.org> - 4.025-1
- Update to 4.025
- Changes to the FREEZE/THAW mechanism
- Remove the part that says that FREEZE cannot return a list; it can, and
we have supported it for a very long time, although I have not checked
how far back this support goes
- If you use the FREEZE/THAW API's you should upgrade to this version
- Test fixes for t/020_sort_keys.t hanging on some perls that do not come
bundled with Hash::Util
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.023-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-05-31 20:09:37 +00:00
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.023-2
- Perl 5.36 rebuild
* Sun Feb 20 2022 Paul Howarth <paul@city-fan.org> - 4.023-1
- Update to 4.023
- Make it possible to upgrade with passing tests when using
Sereal::Decoder 4.015-4.019 on threaded debugging perls
* Sat Feb 19 2022 Paul Howarth <paul@city-fan.org> - 4.022-1
- Update to 4.022
- Better logic to make it possible to upgrade with passing tests when using
Sereal::Decoder 4.019 on threaded debugging perls
* Fri Feb 18 2022 Paul Howarth <paul@city-fan.org> - 4.021-1
- Update to 4.021
- Make it possible to upgrade with passing tests when using
Sereal::Decoder 4.019 on threaded debugging perls
* Thu Feb 17 2022 Paul Howarth <paul@city-fan.org> - 4.020-1
- Update to 4.020
- Fix "panic: free from wrong pool" errors on threaded builds
* Mon Feb 7 2022 Paul Howarth <paul@city-fan.org> - 4.019-1
- Update to 4.019
- Fix build issue with latest perl
- Update bundled zstd to 1.5.1 (note: this package uses system zstd)
- Fix permissions verbosely
- Make %%files list more explicit
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-21 21:48:16 +00:00
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.018-3
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-08-04 08:17:08 +00:00
* Tue Aug 04 2020 Petr Pisar <ppisar@redhat.com> - 4.018-1
- 4.018 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.017-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-10 10:53:22 +00:00
* Fri Jul 10 2020 Petr Pisar <ppisar@redhat.com> - 4.017-1
- 4.017 bump
2020-07-08 08:32:31 +00:00
* Wed Jul 08 2020 Petr Pisar <ppisar@redhat.com> - 4.015-1
- 4.015 bump
2020-06-23 10:04:22 +00:00
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.014-2
- Perl 5.32 rebuild
2020-06-15 15:20:28 +00:00
* Mon Jun 15 2020 Petr Pisar <ppisar@redhat.com> - 4.014-1
- 4.014 bump
2020-06-11 08:13:51 +00:00
* Thu Jun 11 2020 Petr Pisar <ppisar@redhat.com> - 4.012-1
- 4.012 bump
2020-02-04 10:40:04 +00:00
* Tue Feb 04 2020 Petr Pisar <ppisar@redhat.com> - 4.011-1
- 4.011 bump
* Mon Feb 03 2020 Petr Pisar <ppisar@redhat.com> - 4.009-2
- Build-require Hash::Util needed for tests
2020-02-03 10:39:51 +00:00
* Mon Feb 03 2020 Petr Pisar <ppisar@redhat.com> - 4.009-1
- 4.009 bump
2020-01-30 14:55:18 +00:00
* Thu Jan 30 2020 Petr Pisar <ppisar@redhat.com> - 4.008-1
- 4.008 bump
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.007-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.007-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-05-31 14:38:12 +00:00
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.007-4
- Perl 5.30 rebuild
2019-05-22 13:56:38 +00:00
* Wed May 22 2019 Petr Pisar <ppisar@redhat.com> - 4.007-3
- Rebuild against miniz-2.1.0
2019-04-26 07:38:29 +00:00
* Fri Apr 26 2019 Petr Pisar <ppisar@redhat.com> - 4.007-2
- Correct a summary (bug #1703269)
2019-04-10 06:53:19 +00:00
* Wed Apr 10 2019 Petr Pisar <ppisar@redhat.com> - 4.007-1
- 4.007 bump
2019-04-09 12:59:00 +00:00
* Tue Apr 09 2019 Petr Pisar <ppisar@redhat.com> - 4.006-1
- 4.006 bump
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-29 14:39:16 +00:00
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.005-3
- Perl 5.28 rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-24 08:17:12 +00:00
* Wed Jan 24 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.005-1
- 4.005 bump
2017-11-14 13:03:31 +00:00
* Tue Nov 14 2017 Petr Pisar <ppisar@redhat.com> - 4.004-1
- 4.004 bump
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-05 10:58:04 +00:00
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.015-3
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.015-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-09-05 10:18:20 +00:00
* Mon Sep 05 2016 Petr Pisar <ppisar@redhat.com> - 3.015-1
- 3.015 bump
2016-05-16 03:53:05 +00:00
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.014-3
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.014-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-12-07 13:10:20 +00:00
* Mon Dec 07 2015 Petr Pisar <ppisar@redhat.com> - 3.014-1
- 3.014 bump
2015-12-02 13:04:14 +00:00
* Wed Dec 02 2015 Petr Pisar <ppisar@redhat.com> - 3.009-1
- 3.009 bump
2015-11-30 10:26:01 +00:00
* Mon Nov 30 2015 Petr Pisar <ppisar@redhat.com> - 3.008-1
- 3.008 bump
2015-11-27 11:39:45 +00:00
* Fri Nov 27 2015 Petr Pisar <ppisar@redhat.com> - 3.007-1
- 3.007 bump
- License changed to ((GPL+ or Artistic) and LGPLv2+)
* Tue Nov 24 2015 Petr Pisar <ppisar@redhat.com> - 3.006-2
- Sereal::Decoder is always needed for tests
2015-11-16 10:04:38 +00:00
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 3.006-1
- 3.006 bump
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.005-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.005-3
- Perl 5.22 re-rebuild of bootstrapped packages
2015-06-06 18:14:31 +00:00
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.005-2
- Perl 5.22 rebuild
2015-01-06 14:56:01 +00:00
* Tue Jan 06 2015 Petr Pisar <ppisar@redhat.com> - 3.005-1
- 3.005 bump
2015-01-05 12:07:55 +00:00
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 3.004-1
- 3.004 bump
2014-11-06 07:35:45 +00:00
* Thu Nov 06 2014 Petr Pisar <ppisar@redhat.com> - 3.003-2
- Finish Sereal bootstrap
2014-11-04 14:51:27 +00:00
* Tue Nov 04 2014 Petr Pisar <ppisar@redhat.com> - 3.003-1
- 3.003 bump
2014-10-30 06:42:57 +00:00
* Fri Oct 10 2014 Petr Pisar <ppisar@redhat.com> 3.002-1
- Specfile autogenerated by cpanspec 1.78.