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