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