From ce77dc4484ae1d5108b976978588cb72fd0944e4 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 18:03:26 +0300 Subject: [PATCH] import perl-Term-ANSIColor-5.01-511.el10 --- .gitignore | 1 + .perl-Term-ANSIColor.metadata | 1 + SPECS/perl-Term-ANSIColor.spec | 253 +++++++++++++++++++++++++++++++++ 3 files changed, 255 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Term-ANSIColor.metadata create mode 100644 SPECS/perl-Term-ANSIColor.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3bf7cdb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Term-ANSIColor-5.01.tar.gz diff --git a/.perl-Term-ANSIColor.metadata b/.perl-Term-ANSIColor.metadata new file mode 100644 index 0000000..5d91efa --- /dev/null +++ b/.perl-Term-ANSIColor.metadata @@ -0,0 +1 @@ +d76da2b01c70e4372ddd7810a15e170ecc693e25 SOURCES/Term-ANSIColor-5.01.tar.gz diff --git a/SPECS/perl-Term-ANSIColor.spec b/SPECS/perl-Term-ANSIColor.spec new file mode 100644 index 0000000..d203476 --- /dev/null +++ b/SPECS/perl-Term-ANSIColor.spec @@ -0,0 +1,253 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_Term_ANSIColor_enables_optional_test +%else +%bcond_with perl_Term_ANSIColor_enables_optional_test +%endif + +Name: perl-Term-ANSIColor +Version: 5.01 +Release: 511%{?dist} +Summary: Color screen output using ANSI escape sequences +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Term-ANSIColor +Source0: https://cpan.metacpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +# Tests +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Test::More) +# Optional tests +%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap} +BuildRequires: perl(IPC::System::Simple) +%endif + +# Filter modules bundled for tests +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::RRA.*\\) + +%description +This module has two interfaces, one through color() and colored() and the +other through constants. It also offers the utility functions uncolor(), +colorstrip(), colorvalid(), and coloralias(), which have to be explicitly +imported to be used. + +%package tests +Summary: Tests for %{name} +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND MIT AND FSFAP +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +# Optional tests +%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap} +Requires: perl(IPC::System::Simple) +%endif + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n Term-ANSIColor-%{version} +chmod -c -x examples/* + +# Help generators to recognize Perl scripts +for F in `find t -name *.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/release tests +rm -rf %{buildroot}%{_libexecdir}/%{name}/t/docs +rm -rf %{buildroot}%{_libexecdir}/%{name}/t/style +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -r -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 +%license LICENSE +%doc Changes examples README +%{perl_vendorlib}/Term* +%{_mandir}/man3/Term::ANSIColor* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 5.01-511 +- Rebuilt for MSVSphere 10 + +* Fri Aug 09 2024 Jitka Plesnikova - 5.01-511 +- Perl 5.40 re-rebuild of bootstrapped packages + +* Thu Jul 18 2024 Jitka Plesnikova - 5.01-510 +- Increase release to favour standalone package + +* Mon Jun 24 2024 Troy Dawson - 5.01-505 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 5.01-504 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 5.01-503 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Nov 24 2023 Jitka Plesnikova - 5.01-502 +- Package tests + +* Fri Jul 21 2023 Fedora Release Engineering - 5.01-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Jitka Plesnikova - 5.01-500 +- Perl 5.38 re-rebuild of bootstrapped packages + +* Tue Jul 11 2023 Jitka Plesnikova - 5.01-499 +- Increase release to favour standalone package + +* Fri Jan 20 2023 Fedora Release Engineering - 5.01-491 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 5.01-490 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 5.01-489 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 5.01-488 +- Increase release to favour standalone package + +* Fri Jan 21 2022 Fedora Release Engineering - 5.01-480 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 5.01-479 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 5.01-478 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 5.01-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 5.01-459 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 5.01-458 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 5.01-457 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Mon Jun 22 2020 Jitka Plesnikova - 5.01-456 +- Increase release to favour standalone package + +* Thu Jan 30 2020 Fedora Release Engineering - 5.01-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 21 2020 Jitka Plesnikova - 5.01-1 +- 5.01 bump + +* Thu Jan 09 2020 Jitka Plesnikova - 5.00-1 +- 5.00 bump + +* Fri Jul 26 2019 Fedora Release Engineering - 4.06-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 4.06-439 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Thu May 30 2019 Jitka Plesnikova - 4.06-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 4.06-419 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 4.06-418 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 01 2018 Jitka Plesnikova - 4.06-417 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Wed Jun 27 2018 Jitka Plesnikova - 4.06-416 +- Increase release to favour standalone package + +* Fri Feb 09 2018 Fedora Release Engineering - 4.06-396 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 4.06-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 4.06-394 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Sat Jun 03 2017 Jitka Plesnikova - 4.06-393 +- Perl 5.26 rebuild + +* Fri May 12 2017 Jitka Plesnikova - 4.06-3 +- Don't BR: perl(IPC::System::Simple) when bootstrapping + +* Sat Feb 11 2017 Fedora Release Engineering - 4.06-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 06 2016 Jitka Plesnikova - 4.06-1 +- 4.06 bump + +* Sat May 14 2016 Jitka Plesnikova - 4.05-2 +- Perl 5.24 rebuild + +* Fri Apr 01 2016 Jitka Plesnikova - 4.05-1 +- 4.05 bump + +* Fri Mar 11 2016 Jitka Plesnikova - 4.04-1 +- 4.04 bump + +* Thu Feb 04 2016 Fedora Release Engineering - 4.03-347 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 4.03-346 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 4.03-345 +- Increase release to favour standalone package + +* Thu Jun 04 2015 Jitka Plesnikova - 4.03-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 4.03-3 +- Perl 5.20 rebuild + +* Mon Aug 11 2014 David Dick - 4.03-2 +- Re-adding for master + +* Tue Jul 22 2014 David Dick - 4.03-1 +- Initial release