From c6a802341ad577006f297a9426de6b67b9715c4d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 10 Jan 2024 03:08:43 +0300 Subject: [PATCH] import perl-Sereal-Decoder-4.018-1.el9 --- .gitignore | 1 + .perl-Sereal-Decoder.metadata | 1 + SOURCES/perl-Sereal-Decoder.rpmlintrc | 2 + SPECS/perl-Sereal-Decoder.spec | 261 ++++++++++++++++++++++++++ 4 files changed, 265 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Sereal-Decoder.metadata create mode 100644 SOURCES/perl-Sereal-Decoder.rpmlintrc create mode 100644 SPECS/perl-Sereal-Decoder.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b76d90d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Sereal-Decoder-4.018.tar.gz diff --git a/.perl-Sereal-Decoder.metadata b/.perl-Sereal-Decoder.metadata new file mode 100644 index 0000000..7b76484 --- /dev/null +++ b/.perl-Sereal-Decoder.metadata @@ -0,0 +1 @@ +a9bdb05594cb5fa48076237bb7028b1e720f5819 SOURCES/Sereal-Decoder-4.018.tar.gz diff --git a/SOURCES/perl-Sereal-Decoder.rpmlintrc b/SOURCES/perl-Sereal-Decoder.rpmlintrc new file mode 100644 index 0000000..2ec0276 --- /dev/null +++ b/SOURCES/perl-Sereal-Decoder.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (deserialization|deserializer)"); diff --git a/SPECS/perl-Sereal-Decoder.spec b/SPECS/perl-Sereal-Decoder.spec new file mode 100644 index 0000000..886e479 --- /dev/null +++ b/SPECS/perl-Sereal-Decoder.spec @@ -0,0 +1,261 @@ +# Perform optinal tests +%bcond_without perl_Sereal_Decoder_enables_optional_test + +Name: perl-Sereal-Decoder +Version: 4.018 +Release: 1%{?dist} +Summary: Perl deserialization for Sereal format +# lib/Sereal/Decoder.pm: GPL+ or Artistic +## Unbundled: +# miniz.c: MIT and Unlicense +# snappy: BSD +# zstd/decompress/zstd_decompress.c: GPLv2 or BSD +License: GPL+ or Artistic +URL: https://metacpan.org/release/Sereal-Decoder +Source0: https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-%{version}.tar.gz +BuildRequires: coreutils +BuildRequires: csnappy-devel +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: libzstd-devel +BuildRequires: make +BuildRequires: miniz-devel +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(constant) +BuildRequires: perl(Devel::CheckLib) +BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0 +# File::Find not used +# File::Path not used in inc/Sereal/BuildTools.pm +# File::Spec not used in inc/Sereal/BuildTools.pm +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(XSLoader) +# Tests: +# Benchmark not used +BuildRequires: perl(blib) +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Devel::Peek) +BuildRequires: perl(Encode) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(integer) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::LongString) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Warn) +BuildRequires: perl(threads) +# Time::HiRes not used +BuildRequires: perl(utf8) +%if %{with perl_Sereal_Decoder_enables_optional_test} +# Optional tests: +BuildRequires: perl(Test::MemoryGrowth) +%if !%{defined perl_bootstrap} +# Some tests require Sereal::Encoder 3.005003, but most of them do not require +# exact version. Thus do not constrain the version here. +BuildRequires: perl(Sereal::Encoder) +BuildRequires: perl(Tie::Array) +BuildRequires: perl(Tie::Hash) +BuildRequires: perl(Tie::Scalar) +%endif +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This library implements a deserializer for an efficient, compact-output, +and feature-rich binary protocol called Sereal. + +%prep +%setup -q -n Sereal-Decoder-%{version} +# Remove bundled Perl modules +rm -r ./inc/Devel +perl -i -ne 'print $_ unless m{^inc/Devel/}' MANIFEST +# Remove bundled csnappy +rm -r ./snappy +perl -i -ne 'print $_ unless m{^snappy/}' MANIFEST +# Remove bundled miniz +rm miniz.* +perl -i -ne 'print $_ unless m{^miniz\.}' MANIFEST +# Remove bundled zstd +rm -r zstd +perl -i -ne 'print $_ unless m{^zstd/}' MANIFEST + +%build +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="$RPM_OPT_FLAGS" +%{make_build} + +%install +%{make_install} +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Sereal* +%{_mandir}/man3/* + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 4.018-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Aug 04 2020 Petr Pisar - 4.018-1 +- 4.018 bump + +* Tue Jul 28 2020 Fedora Release Engineering - 4.017-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Petr Pisar - 4.017-1 +- 4.017 bump + +* Wed Jul 08 2020 Petr Pisar - 4.015-1 +- 4.015 bump + +* Fri Jun 26 2020 Jitka Plesnikova - 4.014-3 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Tue Jun 23 2020 Jitka Plesnikova - 4.014-2 +- Perl 5.32 rebuild + +* Mon Jun 15 2020 Petr Pisar - 4.014-1 +- 4.014 bump + +* Thu Jun 11 2020 Petr Pisar - 4.012-1 +- 4.012 bump + +* Tue Feb 04 2020 Petr Pisar - 4.011-1 +- 4.011 bump + +* Mon Feb 03 2020 Petr Pisar - 4.009-1 +- 4.009 bump + +* Thu Jan 30 2020 Petr Pisar - 4.008-1 +- 4.008 bump + +* Thu Jan 30 2020 Fedora Release Engineering - 4.007-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 4.007-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 4.007-5 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Fri May 31 2019 Jitka Plesnikova - 4.007-4 +- Perl 5.30 rebuild + +* Wed May 22 2019 Petr Pisar - 4.007-3 +- Finish a bootstrap cycle when rebuild against miniz-2.1.0 + +* Wed May 22 2019 Petr Pisar - 4.007-2 +- Rebuild against miniz-2.1.0 + +* Wed Apr 10 2019 Petr Pisar - 4.007-1 +- 4.007 bump + +* Tue Apr 09 2019 Petr Pisar - 4.006-1 +- 4.006 bump + +* Sat Feb 02 2019 Fedora Release Engineering - 4.005-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 4.005-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 30 2018 Jitka Plesnikova - 4.005-4 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Fri Jun 29 2018 Jitka Plesnikova - 4.005-3 +- Perl 5.28 rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 4.005-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Jitka Plesnikova - 4.005-1 +- 4.005 bump + +* Mon Nov 13 2017 Petr Pisar - 4.004-1 +- 4.004 bump + +* Thu Aug 03 2017 Fedora Release Engineering - 3.015-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.015-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 3.015-4 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Mon Jun 05 2017 Jitka Plesnikova - 3.015-3 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.015-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Sep 05 2016 Petr Pisar - 3.015-1 +- 3.015 bump + +* Wed May 18 2016 Jitka Plesnikova - 3.014-4 +- Perl 5.24 re-rebuild of bootstrapped packages + +* Mon May 16 2016 Jitka Plesnikova - 3.014-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 3.014-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Dec 07 2015 Petr Pisar - 3.014-1 +- 3.014 bump + +* Wed Dec 02 2015 Petr Pisar - 3.009-1 +- 3.009 bump + +* Mon Nov 30 2015 Petr Pisar - 3.008-1 +- 3.008 bump + +* Fri Nov 27 2015 Petr Pisar - 3.007-2 +- Do not constrain Sereal::Encoder version + +* Fri Nov 27 2015 Petr Pisar - 3.007-1 +- 3.007 bump + +* Mon Nov 16 2015 Petr Pisar - 3.006-1 +- 3.006 bump + +* Thu Jun 18 2015 Fedora Release Engineering - 3.005-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 10 2015 Jitka Plesnikova - 3.005-3 +- Perl 5.22 re-rebuild of bootstrapped packages + +* Sat Jun 06 2015 Jitka Plesnikova - 3.005-2 +- Perl 5.22 rebuild + +* Tue Jan 06 2015 Petr Pisar - 3.005-1 +- 3.005 bump + +* Mon Jan 05 2015 Petr Pisar - 3.004-1 +- 3.004 bump + +* Wed Nov 12 2014 Petr Pisar - 3.003-1 +- 3.003 bump + +* Thu Nov 06 2014 Petr Pisar - 3.002-2 +- Finish Sereal bootstrap + +* Fri Oct 10 2014 Petr Pisar 3.002-1 +- Specfile autogenerated by cpanspec 1.78.