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