Blame SPECS/perl-Storable.spec

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