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