From 114e03ae7ff2f617cfe52554f5778ae3d32371ad Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 15:18:45 +0000 Subject: [PATCH] import UBI perl-Clone-0.46-10.el10 --- .gitignore | 2 +- .perl-Clone.metadata | 1 - SPECS/perl-Clone.spec => perl-Clone.spec | 191 ++++++++++++++++++++--- sources | 1 + 4 files changed, 175 insertions(+), 20 deletions(-) delete mode 100644 .perl-Clone.metadata rename SPECS/perl-Clone.spec => perl-Clone.spec (50%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 5e1a628..b02a3ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Clone-0.39.tar.gz +Clone-0.46.tar.gz diff --git a/.perl-Clone.metadata b/.perl-Clone.metadata deleted file mode 100644 index 7de5df1..0000000 --- a/.perl-Clone.metadata +++ /dev/null @@ -1 +0,0 @@ -540d41ccd1fde1262fa7dde7a5ef830b25341f20 SOURCES/Clone-0.39.tar.gz diff --git a/SPECS/perl-Clone.spec b/perl-Clone.spec similarity index 50% rename from SPECS/perl-Clone.spec rename to perl-Clone.spec index 964c135..1055a0a 100644 --- a/SPECS/perl-Clone.spec +++ b/perl-Clone.spec @@ -1,39 +1,50 @@ +# Perform optional tests +%bcond_without perl_Clone_enables_optional_test + Name: perl-Clone -Version: 0.39 -Release: 5%{?dist} +Version: 0.46 +Release: 10%{?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 +License: GPL-1.0-or-later OR Artistic-1.0-Perl +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(Config) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(AutoLoader) -BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(strict) -BuildRequires: perl(vars) +BuildRequires: perl(XSLoader) # Tests: -BuildRequires: perl(Test::More) +BuildRequires: perl(B) +BuildRequires: perl(B::COW) >= 0.004 +BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(utf8) -BuildRequires: perl(warnings) +BuildRequires: perl(vars) +%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) -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +%endif +# Dependencies %{?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. @@ -41,9 +52,23 @@ clone() takes a scalar argument and an optional parameter that can be used to limit the depth of the copy. To duplicate lists, arrays or hashes, pass them in by reference. +%package tests +Summary: Tests for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n Clone-%{version} -find . -type f -exec chmod -c -x {} + +# Help generators to recognize Perl scripts +for F in t/*.t t/*.pl; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -52,19 +77,149 @@ 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} +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files -%doc Changes +%doc Changes README.md %{perl_vendorarch}/auto/Clone/ %{perl_vendorarch}/Clone.pm -%{_mandir}/man3/*.3* +%{_mandir}/man3/Clone.3* + +%files tests +%{_libexecdir}/%{name} %changelog +* Tue Oct 29 2024 Troy Dawson - 0.46-10 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Thu Aug 08 2024 Troy Dawson - 0.46-9 +- Bump release for Aug 2024 java mass rebuild + +* Thu Jun 27 2024 Jitka Plesnikova - 0.46-8 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 0.46-7 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.46-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.46-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.46-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 0.46-3 +- Perl 5.38 rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.46-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Oct 19 2022 Paul Howarth - 0.46-1 +- Update to 0.46 + - Fix backwards compatibility with older perls + - Bump MANIFEST to include extra tests +- Use SPDX-format license tag + +* Fri Jul 22 2022 Fedora Release Engineering - 0.45-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Jitka Plesnikova - 0.45-8 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.45-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.45-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.45-5 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.45-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.45-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 0.45-2 +- Perl 5.32 rebuild + +* Fri Apr 24 2020 Paul Howarth - 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 - 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 - 0.43-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jul 30 2019 Paul Howarth - 0.43-1 +- Update to 0.43 + - Fix an issue when cloning a NULL mg_ptr pointer + +* Fri Jul 26 2019 Fedora Release Engineering - 0.42-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jul 22 2019 Paul Howarth - 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 - 0.41-3 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.41-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 26 2018 Paul Howarth - 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 - 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 - 0.39-9 +- Remove non-free test files (bz1600131) + +* Fri Jul 13 2018 Fedora Release Engineering - 0.39-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 0.39-7 +- Perl 5.28 rebuild + +* Wed Mar 7 2018 Paul Howarth - 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 - 0.39-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..e122a41 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Clone-0.46.tar.gz) = f8bb1010364e94c7cc8bba25681cd9fd737ec2935a8be960ac53099359729fc679190a115dd082fccd239b35762dee2b3be3adbddce37e4ceae6fe934fbad545