From ddfffd6e817c7c7ee360a6a7abf7330bcac20830 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 16:02:53 +0000 Subject: [PATCH] import UBI perl-constant-1.33-512.el10 --- .gitignore | 2 +- .perl-constant.metadata | 1 - SPECS/perl-constant.spec | 161 ----------- ...update.patch => constant-1.33-update.patch | 0 perl-constant.spec | 270 ++++++++++++++++++ sources | 1 + 6 files changed, 272 insertions(+), 163 deletions(-) delete mode 100644 .perl-constant.metadata delete mode 100644 SPECS/perl-constant.spec rename SOURCES/constant-1.33-update.patch => constant-1.33-update.patch (100%) create mode 100644 perl-constant.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index 4767a88..fc7e868 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/constant-1.27.tar.gz +constant-1.27.tar.gz diff --git a/.perl-constant.metadata b/.perl-constant.metadata deleted file mode 100644 index 467d697..0000000 --- a/.perl-constant.metadata +++ /dev/null @@ -1 +0,0 @@ -54223c06f492cd9fff118d8613b973c524df13f6 SOURCES/constant-1.27.tar.gz diff --git a/SPECS/perl-constant.spec b/SPECS/perl-constant.spec deleted file mode 100644 index 05979cf..0000000 --- a/SPECS/perl-constant.spec +++ /dev/null @@ -1,161 +0,0 @@ -# Run optional test -%if ! (0%{?rhel}) -%bcond_without perl_constant_enables_optional_test -%else -%bcond_with perl_constant_enables_optional_test -%endif - -%global cpan_version 1.27 - -Name: perl-constant -Version: 1.33 -Release: 1001%{?dist} -Summary: Perl pragma to declare constants -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/constant/ -Source0: http://www.cpan.org/authors/id/S/SA/SAPER/constant-%{cpan_version}.tar.gz -# Update to 1.33 -Patch0: constant-1.33-update.patch -BuildArch: noarch -BuildRequires: perl-interpreter -BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(strict) -# Run-time: -BuildRequires: perl(Carp) -BuildRequires: perl(vars) -BuildRequires: perl(warnings::register) -# Tests: -BuildRequires: perl(Test::More) -BuildRequires: perl(utf8) -BuildRequires: perl(warnings) -%if %{with perl_constant_enables_optional_test} && !%{defined perl_bootstrap} -# Optional tests: -BuildRequires: perl(Test::Pod) >= 1.14 -BuildRequires: perl(Test::Pod::Coverage) >= 1.04 -%endif -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: perl(Carp) - -%description -This pragma allows you to declare constants at compile-time: - -use constant PI => 4 * atan2(1, 1); - -When you declare a constant such as "PI" using the method shown above, -each machine your script runs upon can have as many digits of accuracy -as it can use. Also, your program will be easier to read, more likely -to be maintained (and maintained correctly), and far less likely to -send a space probe to the wrong planet because nobody noticed the one -equation in which you wrote 3.14195. - -When a constant is used in an expression, Perl replaces it with its -value at compile time, and may then optimize the expression further. -In particular, any code in an "if (CONSTANT)" block will be optimized -away if the constant is false. - -%prep -%setup -q -n constant-%{cpan_version} -%patch0 -p1 - -%build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} - -%install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -%{_fixperms} $RPM_BUILD_ROOT/* - -%check -make test - -%files -%doc Changes eg README -%{perl_vendorlib}/* -%{_mandir}/man3/* - -%changelog -* Fri Mar 29 2019 Jitka Plesnikova - 1.33-1001 -- Rebuild with enable hardening (bug #1636329) - -* Thu Aug 23 2018 Petr Pisar - 1.33-1000 -- Increase release not to clash with perl-bootstrap:5.24 subpackages - (bug #1620196) - -* Fri Apr 27 2018 Petr Pisar - 1.33-398 -- Increase release not to clash with perl-bootstrap:5.24 subpackages - -* Wed Mar 28 2018 Petr Pisar - 1.33-397 -- Increase release not to clash with perl-bootstrap:5.24 subpackages - -* Fri Feb 09 2018 Fedora Release Engineering - 1.33-396 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 1.33-395 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Wed Jun 07 2017 Jitka Plesnikova - 1.33-394 -- Perl 5.26 re-rebuild of bootstrapped packages - -* Sat Jun 03 2017 Jitka Plesnikova - 1.33-393 -- Perl 5.26 rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.33-368 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed May 18 2016 Jitka Plesnikova - 1.33-367 -- Perl 5.24 re-rebuild of bootstrapped packages - -* Sat May 14 2016 Jitka Plesnikova - 1.33-365 -- Increase release to favour standalone package - -* Thu Feb 04 2016 Fedora Release Engineering - 1.33-348 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 1.33-347 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Wed Jun 10 2015 Jitka Plesnikova - 1.33-346 -- Perl 5.22 re-rebuild of bootstrapped packages - -* Thu Jun 04 2015 Jitka Plesnikova - 1.33-345 -- Increase release to favour standalone package - -* Wed Jun 03 2015 Jitka Plesnikova - 1.33-336 -- Perl 5.22 rebuild - -* Mon May 04 2015 Jitka Plesnikova - 1.33-335 -- Patched to provide the version 1.33 which is bundled in Perl 5.22 - -* Tue Sep 09 2014 Jitka Plesnikova - 1.31-310 -- Patched to provide the version 1.31 which is bundled in Perl 5.20 - -* Mon Sep 08 2014 Jitka Plesnikova - 1.27-295 -- Perl 5.20 re-rebuild of bootstrapped packages - -* Wed Aug 27 2014 Jitka Plesnikova - 1.27-294 -- Perl 5.20 rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 1.27-293 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Wed Aug 14 2013 Jitka Plesnikova - 1.27-292 -- Perl 5.18 re-rebuild of bootstrapped packages - -* Sun Aug 04 2013 Fedora Release Engineering - 1.27-291 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Mon Jul 15 2013 Petr Pisar - 1.27-290 -- Increase release to favour standalone package - -* Fri Jul 12 2013 Petr Pisar - 1.27-3 -- Link minimal build-root packages against libperl.so explicitly - -* Fri Jul 12 2013 Petr Pisar - 1.27-2 -- Migrate to ExtUtils::MakeMaker -- Do not run optional tests at boot-strap - -* Thu Mar 21 2013 Petr Pisar - 1.27-1 -- Specfile autogenerated by cpanspec 1.78. diff --git a/SOURCES/constant-1.33-update.patch b/constant-1.33-update.patch similarity index 100% rename from SOURCES/constant-1.33-update.patch rename to constant-1.33-update.patch diff --git a/perl-constant.spec b/perl-constant.spec new file mode 100644 index 0000000..1be3bee --- /dev/null +++ b/perl-constant.spec @@ -0,0 +1,270 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_constant_enables_optional_test +%else +%bcond_with perl_constant_enables_optional_test +%endif + +%global cpan_version 1.27 + +Name: perl-constant +Version: 1.33 +Release: 512%{?dist} +Summary: Perl pragma to declare constants +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/constant +Source0: https://cpan.metacpan.org/authors/id/S/SA/SAPER/constant-%{cpan_version}.tar.gz +# Update to 1.33 +Patch0: constant-1.33-update.patch +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(vars) +BuildRequires: perl(warnings::register) +# Tests: +BuildRequires: perl(Test::More) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +%if %{with perl_constant_enables_optional_test} && !%{defined perl_bootstrap} +# Optional tests: +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif +Requires: perl(Carp) + +%description +This pragma allows you to declare constants at compile-time: + +use constant PI => 4 * atan2(1, 1); + +When you declare a constant such as "PI" using the method shown above, +each machine your script runs upon can have as many digits of accuracy +as it can use. Also, your program will be easier to read, more likely +to be maintained (and maintained correctly), and far less likely to +send a space probe to the wrong planet because nobody noticed the one +equation in which you wrote 3.14195. + +When a constant is used in an expression, Perl replaces it with its +value at compile time, and may then optimize the expression further. +In particular, any code in an "if (CONSTANT)" block will be optimized +away if the constant is false. + +%package tests +Summary: Tests for %{name} +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 constant-%{cpan_version} +%patch -P0 -p1 + +# Help generators to recognize Perl scripts +for F in t/*.t; 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 NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +# Remove author tests +rm %{buildroot}%{_libexecdir}/%{name}/t/more* +rm %{buildroot}%{_libexecdir}/%{name}/t/pod* +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 +make test + +%files +%doc Changes eg README +%{perl_vendorlib}/constant* +%{_mandir}/man3/constant* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Tue Oct 29 2024 Troy Dawson - 1.33-512 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Fri Aug 09 2024 Jitka Plesnikova - 1.33-511 +- Perl 5.40 re-rebuild of bootstrapped packages + +* Thu Jul 18 2024 Jitka Plesnikova - 1.33-510 +- Increase release to favour standalone package + +* Mon Jun 24 2024 Troy Dawson - 1.33-504 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.33-503 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.33-502 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.33-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Jitka Plesnikova - 1.33-500 +- Perl 5.38 re-rebuild of bootstrapped packages + +* Tue Jul 11 2023 Jitka Plesnikova - 1.33-499 +- Increase release to favour standalone package + +* Mon May 22 2023 Jitka Plesnikova - 1.33-492 +- Modernize spec +- Package tests + +* Fri Jan 20 2023 Fedora Release Engineering - 1.33-491 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.33-490 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 1.33-489 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 1.33-488 +- Increase release to favour standalone package + +* Fri Jan 21 2022 Fedora Release Engineering - 1.33-480 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.33-479 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 1.33-478 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 1.33-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 1.33-459 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.33-458 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 1.33-457 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Mon Jun 22 2020 Jitka Plesnikova - 1.33-456 +- Increase release to favour standalone package + +* Thu Jan 30 2020 Fedora Release Engineering - 1.33-441 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.33-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 1.33-439 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Thu May 30 2019 Jitka Plesnikova - 1.33-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 1.33-419 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.33-418 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 01 2018 Jitka Plesnikova - 1.33-417 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Tue Jun 26 2018 Jitka Plesnikova - 1.33-416 +- Increase release to favour standalone package + +* Fri Feb 09 2018 Fedora Release Engineering - 1.33-396 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.33-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 1.33-394 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Sat Jun 03 2017 Jitka Plesnikova - 1.33-393 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.33-368 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed May 18 2016 Jitka Plesnikova - 1.33-367 +- Perl 5.24 re-rebuild of bootstrapped packages + +* Sat May 14 2016 Jitka Plesnikova - 1.33-365 +- Increase release to favour standalone package + +* Thu Feb 04 2016 Fedora Release Engineering - 1.33-348 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.33-347 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 10 2015 Jitka Plesnikova - 1.33-346 +- Perl 5.22 re-rebuild of bootstrapped packages + +* Thu Jun 04 2015 Jitka Plesnikova - 1.33-345 +- Increase release to favour standalone package + +* Wed Jun 03 2015 Jitka Plesnikova - 1.33-336 +- Perl 5.22 rebuild + +* Mon May 04 2015 Jitka Plesnikova - 1.33-335 +- Patched to provide the version 1.33 which is bundled in Perl 5.22 + +* Tue Sep 09 2014 Jitka Plesnikova - 1.31-310 +- Patched to provide the version 1.31 which is bundled in Perl 5.20 + +* Mon Sep 08 2014 Jitka Plesnikova - 1.27-295 +- Perl 5.20 re-rebuild of bootstrapped packages + +* Wed Aug 27 2014 Jitka Plesnikova - 1.27-294 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.27-293 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Aug 14 2013 Jitka Plesnikova - 1.27-292 +- Perl 5.18 re-rebuild of bootstrapped packages + +* Sun Aug 04 2013 Fedora Release Engineering - 1.27-291 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 15 2013 Petr Pisar - 1.27-290 +- Increase release to favour standalone package + +* Fri Jul 12 2013 Petr Pisar - 1.27-3 +- Link minimal build-root packages against libperl.so explicitly + +* Fri Jul 12 2013 Petr Pisar - 1.27-2 +- Migrate to ExtUtils::MakeMaker +- Do not run optional tests at boot-strap + +* Thu Mar 21 2013 Petr Pisar - 1.27-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..3855e2e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (constant-1.27.tar.gz) = 5840abb036c40c1f0db7d920959c20b01761e2a9e8e8276a7c6fe5dbfec41840c6a4114a378cf8ad7480e310a4328ce876bdd05c11236492c69b8a715d5e0af8