704df3
%global base_version 2.51
704df3
704df3
Name:           perl-Storable
704df3
Epoch:          1
704df3
Version:        2.56
704df3
Release:        369%{?dist}
704df3
Summary:        Persistence for Perl data structures
704df3
License:        GPL+ or Artistic
704df3
Group:          Development/Libraries
704df3
URL:            http://search.cpan.org/dist/Storable/
704df3
Source0:        http://www.cpan.org/authors/id/A/AM/AMS/Storable-%{base_version}.tar.gz
704df3
# Unbundled from perl 5.21.11
704df3
Patch0:         Storable-2.51-Upgrade-to-2.53.patch
704df3
# Unbundled from perl 5.24.0
704df3
Patch1:         Storable-2.53-Upgrade-to-2.56.patch
704df3
# Avoid loading optional modules from default . (CVE-2016-1238)
704df3
Patch2:         Storable-2.56-CVE-2016-1238-avoid-loading-optional-modules-from.patch
704df3
# Fix crash in Storable when deserializing malformed code reference, RT#68348,
704df3
# RT130098
704df3
Patch3:         perl-5.25.7-Fix-Storable-segfaults.patch
704df3
# Fix a stack buffer overflow in deserialization of hooks, RT#130635,
704df3
# fixed in perl after 5.25.9
704df3
Patch4:         Storable-2.56-Fix-stack-buffer-overflow-in-deserialization-of-hook.patch
704df3
# Fix a memory leak of a class name from retrieve_hook() on an exception,
704df3
# RT#130635, fixed in perl after 5.25.9
704df3
Patch5:         Storable-2.56-prevent-leak-of-class-name-from-retrieve_hook-on-an-.patch
704df3
BuildRequires:  coreutils
704df3
BuildRequires:  gcc
704df3
BuildRequires:  make
704df3
BuildRequires:  perl
704df3
BuildRequires:  perl-devel
704df3
BuildRequires:  perl-generators
704df3
BuildRequires:  perl(Config)
704df3
BuildRequires:  perl(ExtUtils::MakeMaker)
704df3
BuildRequires:  sed
704df3
# Run-time:
704df3
# Carp substitutes missing Log::Agent
704df3
BuildRequires:  perl(Carp)
704df3
BuildRequires:  perl(Exporter)
704df3
# Fcntl is optional, but locking is good
704df3
BuildRequires:  perl(Fcntl)
704df3
BuildRequires:  perl(IO::File)
704df3
# Log::Agent is optional
704df3
BuildRequires:  perl(vars)
704df3
BuildRequires:  perl(XSLoader)
704df3
# Tests:
704df3
BuildRequires:  perl(bytes)
704df3
BuildRequires:  perl(integer)
704df3
BuildRequires:  perl(overload)
704df3
BuildRequires:  perl(utf8)
704df3
BuildRequires:  perl(Test::More)
704df3
BuildRequires:  perl(threads)
704df3
BuildRequires:  perl(Safe)
704df3
BuildRequires:  perl(Scalar::Util)
704df3
BuildRequires:  perl(strict)
704df3
BuildRequires:  perl(warnings)
704df3
# Optional tests:
704df3
# Data::Dump not used
704df3
# Data::Dumper not used
704df3
BuildRequires:  perl(B::Deparse) >= 0.61
704df3
BuildRequires:  perl(Digest::MD5)
704df3
BuildRequires:  perl(File::Spec) >= 0.8
704df3
BuildRequires:  perl(Hash::Util)
704df3
BuildRequires:  perl(Tie::Hash)
704df3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
704df3
# Carp substitutes missing Log::Agent
704df3
Requires:       perl(Carp)
704df3
Requires:       perl(Config)
704df3
# Fcntl is optional, but locking is good
704df3
Requires:       perl(Fcntl)
704df3
Requires:       perl(IO::File)
704df3
704df3
%{?perl_default_filter}
704df3
704df3
%description
704df3
The Storable package brings persistence to your Perl data structures
704df3
containing scalar, array, hash or reference objects, i.e. anything that
704df3
can be conveniently stored to disk and retrieved at a later time.
704df3
704df3
%prep
704df3
%setup -q -n Storable-%{base_version}
704df3
%patch0 -p1
704df3
%patch1 -p1
704df3
%patch2 -p1
704df3
%patch3 -p3
704df3
%patch4 -p1
704df3
%patch5 -p1
704df3
# Remove bundled modules
704df3
rm -rf t/compat
704df3
sed -i -e '/^t\/compat\//d' MANIFEST
704df3
704df3
%build
704df3
# Be ware hints/linux.pl removes "-ON" from CFLAGS if N > 2 because it can
704df3
# break the code.
704df3
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
704df3
make %{?_smp_mflags}
704df3
704df3
%install
704df3
make pure_install DESTDIR=$RPM_BUILD_ROOT
704df3
find $RPM_BUILD_ROOT -type f -name .packlist -delete
704df3
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
704df3
%{_fixperms} $RPM_BUILD_ROOT/*
704df3
704df3
%check
704df3
make test
704df3
704df3
%files
704df3
%doc ChangeLog README
704df3
%{perl_vendorarch}/auto/*
704df3
%{perl_vendorarch}/Storable*
704df3
%{_mandir}/man3/*
704df3
704df3
%changelog
704df3
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.56-369
704df3
- Rebuild with enable hardening (bug #1636329)
704df3
704df3
* Mon Feb 06 2017 Petr Pisar <ppisar@redhat.com> - 1:2.56-368
704df3
- Fix a stack buffer overflow in deserialization of hooks (RT#130635)
704df3
- Fix a memory leak of a class name from retrieve_hook() on an exception
704df3
  (RT#130635)
704df3
704df3
* Tue Dec 20 2016 Petr Pisar <ppisar@redhat.com> - 1:2.56-367
704df3
- Fix crash in Storable when deserializing malformed code reference
704df3
  (RT#68348, RT#130098)
704df3
704df3
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.56-366
704df3
- Avoid loading optional modules from default . (CVE-2016-1238)
704df3
704df3
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.56-365
704df3
- Increase release to favour standalone package
704df3
704df3
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.56-1
704df3
- 2.56 bump in order to dual-live with perl 5.24
704df3
704df3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.53-347
704df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
704df3
704df3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.53-346
704df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
704df3
704df3
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.53-345
704df3
- Increase release to favour standalone package
704df3
704df3
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.53-2
704df3
- Perl 5.22 rebuild
704df3
704df3
* Wed May 06 2015 Petr Pisar <ppisar@redhat.com> - 1:2.53-1
704df3
- 2.53 bump in order to dual-live with perl 5.22
704df3
704df3
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.51-4
704df3
- Increase Epoch to favour standalone package
704df3
704df3
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.51-3
704df3
- Perl 5.20 rebuild
704df3
704df3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.51-2
704df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
704df3
704df3
* Mon Jul 07 2014 Petr Pisar <ppisar@redhat.com> - 2.51-1
704df3
- 2.51 bump
704df3
704df3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.45-3
704df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
704df3
704df3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.45-2
704df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
704df3
704df3
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.45-1
704df3
- 2.45 bump
704df3
704df3
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.39-3
704df3
- Link minimal build-root packages against libperl.so explicitly
704df3
704df3
* Tue Jun 11 2013 Petr Pisar <ppisar@redhat.com> - 2.39-2
704df3
- Do not export private libraries
704df3
704df3
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> 2.39-1
704df3
- Specfile autogenerated by cpanspec 1.78.