063e32
# Run optional test
063e32
%if ! (0%{?rhel})
063e32
%bcond_without perl_Term_ANSIColor_enables_optional_test
063e32
%else
063e32
%bcond_with perl_Term_ANSIColor_enables_optional_test
063e32
%endif
063e32
063e32
Name:           perl-Term-ANSIColor
063e32
Version:        5.01
063e32
Release:        458%{?dist}
063e32
Summary:        Color screen output using ANSI escape sequences
063e32
License:        GPL+ or Artistic
063e32
URL:            https://metacpan.org/release/Term-ANSIColor
063e32
Source0:        https://cpan.metacpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz
063e32
BuildArch:      noarch
063e32
BuildRequires:  coreutils
063e32
BuildRequires:  make
063e32
BuildRequires:  perl-interpreter
063e32
BuildRequires:  perl-generators
063e32
BuildRequires:  perl(Config)
063e32
BuildRequires:  perl(ExtUtils::MakeMaker)
063e32
BuildRequires:  perl(File::Spec)
063e32
BuildRequires:  perl(strict)
063e32
BuildRequires:  perl(warnings)
063e32
# Run-time
063e32
BuildRequires:  perl(Carp)
063e32
BuildRequires:  perl(Exporter)
063e32
# Tests
063e32
BuildRequires:  perl(File::Find)
063e32
BuildRequires:  perl(File::Temp)
063e32
BuildRequires:  perl(lib)
063e32
BuildRequires:  perl(overload)
063e32
BuildRequires:  perl(Test::More)
063e32
# Optional tests
063e32
%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap}
063e32
BuildRequires:  perl(IPC::System::Simple)
063e32
%endif
063e32
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
063e32
063e32
%description
063e32
This module has two interfaces, one through color() and colored() and the
063e32
other through constants. It also offers the utility functions uncolor(),
063e32
colorstrip(), colorvalid(), and coloralias(), which have to be explicitly
063e32
imported to be used. 
063e32
063e32
%prep
063e32
%setup -q -n Term-ANSIColor-%{version}
063e32
chmod -c -x examples/*
063e32
063e32
%build
063e32
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
063e32
%{make_build}
063e32
063e32
%install
063e32
%{make_install}
063e32
%{_fixperms} $RPM_BUILD_ROOT/*
063e32
063e32
%check
063e32
make test
063e32
063e32
%files
063e32
%license LICENSE
063e32
%doc Changes examples README
063e32
%{perl_vendorlib}/*
063e32
%{_mandir}/man3/*
063e32
063e32
%changelog
063e32
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.01-458
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
063e32
063e32
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.01-457
063e32
- Perl 5.32 re-rebuild of bootstrapped packages
063e32
063e32
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.01-456
063e32
- Increase release to favour standalone package
063e32
063e32
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.01-2
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
063e32
063e32
* Tue Jan 21 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.01-1
063e32
- 5.01 bump
063e32
063e32
* Thu Jan 09 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.00-1
063e32
- 5.00 bump
063e32
063e32
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-440
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
063e32
063e32
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-439
063e32
- Perl 5.30 re-rebuild of bootstrapped packages
063e32
063e32
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-438
063e32
- Increase release to favour standalone package
063e32
063e32
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-419
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
063e32
063e32
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-418
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
063e32
063e32
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-417
063e32
- Perl 5.28 re-rebuild of bootstrapped packages
063e32
063e32
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-416
063e32
- Increase release to favour standalone package
063e32
063e32
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-396
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
063e32
063e32
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-395
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
063e32
063e32
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-394
063e32
- Perl 5.26 re-rebuild of bootstrapped packages
063e32
063e32
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-393
063e32
- Perl 5.26 rebuild
063e32
063e32
* Fri May 12 2017 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-3
063e32
- Don't BR: perl(IPC::System::Simple) when bootstrapping
063e32
063e32
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.06-2
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
063e32
063e32
* Tue Dec 06 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.06-1
063e32
- 4.06 bump
063e32
063e32
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.05-2
063e32
- Perl 5.24 rebuild
063e32
063e32
* Fri Apr 01 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.05-1
063e32
- 4.05 bump
063e32
063e32
* Fri Mar 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4.04-1
063e32
- 4.04 bump
063e32
063e32
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.03-347
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
063e32
063e32
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.03-346
063e32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
063e32
063e32
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 4.03-345
063e32
- Increase release to favour standalone package
063e32
063e32
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 4.03-4
063e32
- Perl 5.22 rebuild
063e32
063e32
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 4.03-3
063e32
- Perl 5.20 rebuild
063e32
063e32
* Mon Aug 11 2014 David Dick <ddick@cpan.org> - 4.03-2
063e32
- Re-adding for master
063e32
063e32
* Tue Jul 22 2014 David Dick <ddick@cpan.org> - 4.03-1
063e32
- Initial release