01a58c
%global base_version 3.15
01a58c
Name:           perl-Storable
01a58c
Epoch:          1
01a58c
Version:        3.21
01a58c
Release:        460%{?dist}
01a58c
Summary:        Persistence for Perl data structures
01a58c
# Storable.pm:  GPL+ or Artistic
01a58c
License:        GPL+ or Artistic
01a58c
URL:            https://metacpan.org/release/Storable
01a58c
Source0:        https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Storable-%{base_version}.tar.gz
01a58c
# Fix deep cloning regular expression objects, RT#134179,
01a58c
# in Perl upstream after 5.31.0
01a58c
Patch0:         Storable-3.15-perl-134179-include-regexps-in-the-seen-objects-tabl.patch
01a58c
# Fix array length check in a store hook, in Perl upstream after 5.31.2
01a58c
Patch1:         Storable-3.16-Storable-make-count-large-enough.patch
01a58c
# Fix a buffer overflow when processing a vstring longer than 2^31-1,
01a58c
# Perl GH#17306, in perl upstream after 5.31.6
01a58c
Patch2:         perl-5.31.6-disallow-vstring-magic-strings-over-2GB-1.patch
01a58c
# Unbundled from perl 5.32.0
01a58c
Patch3:         Storable-3.15-Upgrade-to-3.21.patch
01a58c
BuildRequires:  gcc
01a58c
BuildRequires:  make
01a58c
BuildRequires:  perl-devel
01a58c
BuildRequires:  perl-generators
01a58c
BuildRequires:  perl-interpreter
01a58c
BuildRequires:  perl(Config)
01a58c
BuildRequires:  perl(Cwd)
01a58c
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
01a58c
BuildRequires:  perl(File::Copy)
01a58c
BuildRequires:  perl(File::Spec) >= 0.8
01a58c
BuildRequires:  perl(strict)
01a58c
BuildRequires:  perl(warnings)
01a58c
# Win32 not used on Linux
01a58c
# Win32API::File not used on Linux
01a58c
# Run-time:
01a58c
BuildRequires:  perl(Carp)
01a58c
BuildRequires:  perl(Exporter)
01a58c
# Fcntl is optional, but locking is good
01a58c
BuildRequires:  perl(Fcntl)
01a58c
BuildRequires:  perl(IO::File)
01a58c
# Log::Agent is optional
01a58c
BuildRequires:  perl(XSLoader)
01a58c
# Tests:
01a58c
BuildRequires:  perl(base)
01a58c
BuildRequires:  perl(bytes)
01a58c
BuildRequires:  perl(File::Temp)
01a58c
BuildRequires:  perl(integer)
01a58c
BuildRequires:  perl(overload)
01a58c
BuildRequires:  perl(utf8)
01a58c
BuildRequires:  perl(Test::More)
01a58c
BuildRequires:  perl(threads)
01a58c
BuildRequires:  perl(Safe)
01a58c
BuildRequires:  perl(Scalar::Util)
01a58c
BuildRequires:  perl(Tie::Array)
01a58c
# Optional tests:
01a58c
# gzip not used
01a58c
# Data::Dump not used
01a58c
# Data::Dumper not used
01a58c
BuildRequires:  perl(B::Deparse) >= 0.61
01a58c
BuildRequires:  perl(Digest::MD5)
01a58c
BuildRequires:  perl(Hash::Util)
01a58c
# Test::LeakTrace omitted because it's not a core module requried for building
01a58c
# core Storable.
01a58c
BuildRequires:  perl(Tie::Hash)
01a58c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
01a58c
Requires:       perl(Config)
01a58c
# Fcntl is optional, but locking is good
01a58c
Requires:       perl(Fcntl)
01a58c
Requires:       perl(IO::File)
01a58c
01a58c
%{?perl_default_filter}
01a58c
01a58c
%description
01a58c
The Storable package brings persistence to your Perl data structures
01a58c
containing scalar, array, hash or reference objects, i.e. anything that
01a58c
can be conveniently stored to disk and retrieved at a later time.
01a58c
01a58c
%prep
01a58c
%setup -q -n Storable-%{base_version}
01a58c
%patch0 -p3
01a58c
%patch1 -p3
01a58c
%patch2 -p3
01a58c
%patch3 -p1
01a58c
01a58c
%build
01a58c
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
01a58c
%{make_build}
01a58c
01a58c
%install
01a58c
%{make_install}
01a58c
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
01a58c
find $RPM_BUILD_ROOT -type f -name '*.3pm' -size 0 -delete
01a58c
%{_fixperms} $RPM_BUILD_ROOT/*
01a58c
01a58c
%check
01a58c
unset PERL_CORE PERL_TEST_MEMORY PERL_RUN_SLOW_TESTS
01a58c
make test
01a58c
01a58c
%files
01a58c
%doc ChangeLog README
01a58c
%{perl_vendorarch}/auto/*
01a58c
%{perl_vendorarch}/Storable*
01a58c
%{_mandir}/man3/*
01a58c
01a58c
%changelog
01a58c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.21-460
01a58c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
01a58c
  Related: rhbz#1991688
01a58c
01a58c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.21-459
01a58c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
01a58c
01a58c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.21-458
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
01a58c
01a58c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.21-457
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
01a58c
01a58c
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.21-456
01a58c
- Upgrade to 3.21 as provided in perl-5.32.0
01a58c
01a58c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.15-443
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
01a58c
01a58c
* Mon Nov 25 2019 Petr Pisar <ppisar@redhat.com> - 1:3.15-442
01a58c
- Fix a buffer overflow when processing a vstring longer than 2^31-1
01a58c
  (Perl GH#17306)
01a58c
01a58c
* Thu Aug 08 2019 Petr Pisar <ppisar@redhat.com> - 1:3.15-441
01a58c
- Fix array length check in a store hook
01a58c
01a58c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.15-440
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
01a58c
01a58c
* Tue Jun 11 2019 Petr Pisar <ppisar@redhat.com> - 1:3.15-439
01a58c
- Fix deep cloning regular expression objects (RT#134179)
01a58c
01a58c
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.15-438
01a58c
- Increase release to favour standalone package
01a58c
01a58c
* Wed Apr 24 2019 Petr Pisar <ppisar@redhat.com> - 1:3.15-1
01a58c
- 3.15 bump
01a58c
01a58c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11-7
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
01a58c
01a58c
* Mon Jan 07 2019 Petr Pisar <ppisar@redhat.com> - 1:3.11-6
01a58c
- Storable-3.11 source archive repackaged without a t/CVE-2015-1592.inc file
01a58c
  (RT#133706)
01a58c
01a58c
* Mon Aug 27 2018 Petr Pisar <ppisar@redhat.com> - 1:3.11-5
01a58c
- Fix recursion check (RT#133326)
01a58c
01a58c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11-4
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
01a58c
01a58c
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:3.11-3
01a58c
- Perl 5.28 rebuild
01a58c
01a58c
* Tue Jun 05 2018 Petr Pisar <ppisar@redhat.com> - 1:3.11-2
01a58c
- Do not package empty Storable::Limit(3pm) manual page
01a58c
01a58c
* Mon Apr 30 2018 Petr Pisar <ppisar@redhat.com> - 1:3.11-1
01a58c
- 3.11 bump
01a58c
01a58c
* Mon Apr 23 2018 Petr Pisar <ppisar@redhat.com> - 1:3.09-1
01a58c
- 3.09 bump
01a58c
01a58c
* Thu Apr 19 2018 Petr Pisar <ppisar@redhat.com> - 1:3.06-1
01a58c
- 3.06 bump
01a58c
01a58c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.62-396
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
01a58c
01a58c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.62-395
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
01a58c
01a58c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.62-394
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
01a58c
01a58c
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.62-393
01a58c
- Perl 5.26 rebuild
01a58c
01a58c
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 1:2.62-1
01a58c
- Upgrade to 2.62 as provided in perl-5.25.12
01a58c
01a58c
* Mon Feb 06 2017 Petr Pisar <ppisar@redhat.com> - 1:2.56-368
01a58c
- Fix a stack buffer overflow in deserialization of hooks (RT#130635)
01a58c
- Fix a memory leak of a class name from retrieve_hook() on an exception
01a58c
  (RT#130635)
01a58c
01a58c
* Tue Dec 20 2016 Petr Pisar <ppisar@redhat.com> - 1:2.56-367
01a58c
- Fix crash in Storable when deserializing malformed code reference
01a58c
  (RT#68348, RT#130098)
01a58c
01a58c
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.56-366
01a58c
- Avoid loading optional modules from default . (CVE-2016-1238)
01a58c
01a58c
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.56-365
01a58c
- Increase release to favour standalone package
01a58c
01a58c
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.56-1
01a58c
- 2.56 bump in order to dual-live with perl 5.24
01a58c
01a58c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.53-347
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
01a58c
01a58c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.53-346
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
01a58c
01a58c
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.53-345
01a58c
- Increase release to favour standalone package
01a58c
01a58c
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.53-2
01a58c
- Perl 5.22 rebuild
01a58c
01a58c
* Wed May 06 2015 Petr Pisar <ppisar@redhat.com> - 1:2.53-1
01a58c
- 2.53 bump in order to dual-live with perl 5.22
01a58c
01a58c
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.51-4
01a58c
- Increase Epoch to favour standalone package
01a58c
01a58c
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.51-3
01a58c
- Perl 5.20 rebuild
01a58c
01a58c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.51-2
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
01a58c
01a58c
* Mon Jul 07 2014 Petr Pisar <ppisar@redhat.com> - 2.51-1
01a58c
- 2.51 bump
01a58c
01a58c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.45-3
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
01a58c
01a58c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.45-2
01a58c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
01a58c
01a58c
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.45-1
01a58c
- 2.45 bump
01a58c
01a58c
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.39-3
01a58c
- Link minimal build-root packages against libperl.so explicitly
01a58c
01a58c
* Tue Jun 11 2013 Petr Pisar <ppisar@redhat.com> - 2.39-2
01a58c
- Do not export private libraries
01a58c
01a58c
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> 2.39-1
01a58c
- Specfile autogenerated by cpanspec 1.78.