|
|
@ -2,10 +2,10 @@
|
|
|
|
%bcond_without perl_Clone_enables_optional_test
|
|
|
|
%bcond_without perl_Clone_enables_optional_test
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Clone
|
|
|
|
Name: perl-Clone
|
|
|
|
Version: 0.45
|
|
|
|
Version: 0.46
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Release: 10%{?dist}
|
|
|
|
Summary: Recursively copy perl data types
|
|
|
|
Summary: Recursively copy perl data types
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
URL: https://metacpan.org/release/Clone
|
|
|
|
URL: https://metacpan.org/release/Clone
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Clone/Clone-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Clone/Clone-%{version}.tar.gz
|
|
|
|
# Build
|
|
|
|
# Build
|
|
|
@ -16,19 +16,20 @@ BuildRequires: make
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(AutoLoader)
|
|
|
|
BuildRequires: perl(AutoLoader)
|
|
|
|
BuildRequires: perl(DynaLoader)
|
|
|
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
# Tests:
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
BuildRequires: perl(B::COW) >= 0.004
|
|
|
|
BuildRequires: perl(B::COW) >= 0.004
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
%if %{with perl_Clone_enables_optional_test}
|
|
|
|
%if %{with perl_Clone_enables_optional_test}
|
|
|
|
# Optional tests:
|
|
|
|
# Optional tests:
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
@ -39,7 +40,6 @@ BuildRequires: perl(Storable)
|
|
|
|
BuildRequires: perl(Taint::Runtime)
|
|
|
|
BuildRequires: perl(Taint::Runtime)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Dependencies
|
|
|
|
# Dependencies
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
|
@ -52,8 +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,
|
|
|
|
can be used to limit the depth of the copy. To duplicate lists,
|
|
|
|
arrays or hashes, pass them in by reference.
|
|
|
|
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
|
|
|
|
%prep
|
|
|
|
%setup -q -n Clone-%{version}
|
|
|
|
%setup -q -n Clone-%{version}
|
|
|
|
|
|
|
|
# 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
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
@ -64,8 +79,17 @@ make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%{_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
|
|
|
|
%check
|
|
|
|
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -74,13 +98,61 @@ make test
|
|
|
|
%{perl_vendorarch}/Clone.pm
|
|
|
|
%{perl_vendorarch}/Clone.pm
|
|
|
|
%{_mandir}/man3/Clone.3*
|
|
|
|
%{_mandir}/man3/Clone.3*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.45-6
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.46-10
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.46-9
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 0.46-9
|
|
|
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 27 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.46-8
|
|
|
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.46-7
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.46-3
|
|
|
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 19 2022 Paul Howarth <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 0.45-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-8
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.45-5
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-5
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-4
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.45-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|