|
|
|
@ -1,17 +1,21 @@
|
|
|
|
|
# Perform optional tests
|
|
|
|
|
%bcond_without perl_Clone_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-Clone
|
|
|
|
|
Version: 0.39
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.45
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Recursively copy perl data types
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Clone
|
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GARU/Clone-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/Clone
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Clone/Clone-%{version}.tar.gz
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(AutoLoader)
|
|
|
|
@ -20,20 +24,27 @@ BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
|
BuildRequires: perl(B::COW) >= 0.004
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
%if %{with perl_Clone_enables_optional_test}
|
|
|
|
|
# Optional tests:
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(Devel::Peek)
|
|
|
|
|
BuildRequires: perl(Hash::Util::FieldHash)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(Taint::Runtime)
|
|
|
|
|
%endif
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module provides a clone() method which makes recursive
|
|
|
|
|
This module provides a clone() method that makes recursive
|
|
|
|
|
copies of nested hash, array, scalar and reference types,
|
|
|
|
|
including tied variables and objects.
|
|
|
|
|
|
|
|
|
@ -43,7 +54,6 @@ arrays or hashes, pass them in by reference.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Clone-%{version}
|
|
|
|
|
find . -type f -exec chmod -c -x {} +
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
@ -52,21 +62,94 @@ make %{?_smp_mflags}
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes
|
|
|
|
|
%doc Changes README.md
|
|
|
|
|
%{perl_vendorarch}/auto/Clone/
|
|
|
|
|
%{perl_vendorarch}/Clone.pm
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
%{_mandir}/man3/Clone.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.39-5
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.45-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.45-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 24 2020 Paul Howarth <paul@city-fan.org> - 0.45-1
|
|
|
|
|
- Update to 0.45
|
|
|
|
|
- Bump B::COW requirement to fix big-endian issue
|
|
|
|
|
- Re-enable tests
|
|
|
|
|
|
|
|
|
|
* Tue Apr 21 2020 Tom Callaway <spot@fedoraproject.org> - 0.44-1
|
|
|
|
|
- Update to 0.44
|
|
|
|
|
- Support Perls with COW disabled
|
|
|
|
|
- Bump B::COW requirement for testing
|
|
|
|
|
- Disable tests until B::COW is packaged
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.43-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 30 2019 Paul Howarth <paul@city-fan.org> - 0.43-1
|
|
|
|
|
- Update to 0.43
|
|
|
|
|
- Fix an issue when cloning a NULL mg_ptr pointer
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.42-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 22 2019 Paul Howarth <paul@city-fan.org> - 0.42-1
|
|
|
|
|
- Update to 0.42
|
|
|
|
|
- Make handling of mg_ptr safer
|
|
|
|
|
- Change license wording on some test files to make the entire dist
|
|
|
|
|
released under the same terms as Perl itself (GH#20)
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.41-3
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Oct 26 2018 Paul Howarth <paul@city-fan.org> - 0.41-1
|
|
|
|
|
- Update to 0.41
|
|
|
|
|
- Check the CowREFCNT of a COWed PV; this should fix some issues people have
|
|
|
|
|
been having with 0.40 on DBD drives and DBIx::Class
|
|
|
|
|
- Make buildtools files not executable
|
|
|
|
|
|
|
|
|
|
* Wed Oct 24 2018 Paul Howarth <paul@city-fan.org> - 0.40-1
|
|
|
|
|
- Update to 0.40
|
|
|
|
|
- Reuse COWed PV when cloning (fixes CPAN RT#97535)
|
|
|
|
|
- Extra protection against potential infinite loop
|
|
|
|
|
- Improved tests
|
|
|
|
|
|
|
|
|
|
* Thu Oct 4 2018 Tom Callaway <spot@fedoraproject.org> - 0.39-9
|
|
|
|
|
- Remove non-free test files (bz1600131)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.39-7
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Mar 7 2018 Paul Howarth <paul@city-fan.org> - 0.39-6
|
|
|
|
|
- BR: gcc for build and perl(Storable) for optional test
|
|
|
|
|
- Simplify find command using -empty
|
|
|
|
|
- Drop legacy Group: tag
|
|
|
|
|
- Ship README file
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|