|
|
c0b841d |
Name: perl-Color-ANSI-Util
|
|
|
c0b841d |
Version: 0.164
|
|
|
fff7f1e |
Release: 2%{?dist}
|
|
|
c0b841d |
Summary: Routines for dealing with ANSI colors
|
|
|
c0b841d |
License: GPL+ or Artistic
|
|
|
c0b841d |
URL: https://metacpan.org/release/Color-ANSI-Util/
|
|
|
c0b841d |
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/Color-ANSI-Util-%{version}.tar.gz
|
|
|
c0b841d |
BuildArch: noarch
|
|
|
c0b841d |
BuildRequires: make
|
|
|
c0b841d |
BuildRequires: perl-generators
|
|
|
c0b841d |
BuildRequires: perl-interpreter
|
|
|
c0b841d |
BuildRequires: perl(:VERSION) >= 5.10.1
|
|
|
c0b841d |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
c0b841d |
BuildRequires: perl(strict)
|
|
|
c0b841d |
BuildRequires: perl(warnings)
|
|
|
c0b841d |
# Run-Time
|
|
|
c0b841d |
BuildRequires: perl(Color::RGB::Util) >= 0.600
|
|
|
c0b841d |
BuildRequires: perl(Exporter) >= 5.57
|
|
|
c0b841d |
# Optional - BuildRequires: perl(Term::Detect::Software)
|
|
|
c0b841d |
# Tests
|
|
|
c0b841d |
BuildRequires: perl(blib)
|
|
|
c0b841d |
BuildRequires: perl(File::Spec)
|
|
|
c0b841d |
BuildRequires: perl(IO::Handle)
|
|
|
c0b841d |
BuildRequires: perl(IPC::Open3)
|
|
|
c0b841d |
BuildRequires: perl(Test::More) >= 0.98
|
|
|
c0b841d |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
c0b841d |
Requires: perl(Color::RGB::Util) >= 0.600
|
|
|
c0b841d |
Requires: perl(Exporter) >= 5.57
|
|
|
c0b841d |
Recommends: perl(Term::Detect::Software)
|
|
|
c0b841d |
|
|
|
c0b841d |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$
|
|
|
c0b841d |
%global __requires_exclude %{?__requires_exclude}|perl\\(Color::RGB::Util\\)\\s*$
|
|
|
c0b841d |
|
|
|
c0b841d |
%description
|
|
|
c0b841d |
This module provides routines for dealing with ANSI colors. The two main
|
|
|
c0b841d |
functions are ansifg and ansibg. With those functions, you can specify
|
|
|
c0b841d |
colors in RGB and let it output the correct ANSI color escape code
|
|
|
c0b841d |
according to the color depth support of the terminal (whether 16-color,
|
|
|
c0b841d |
256-color, or 24bit). There are other functions to convert RGB to ANSI
|
|
|
c0b841d |
in specific color depths, or reverse functions to convert from ANSI to
|
|
|
c0b841d |
RGB codes.
|
|
|
c0b841d |
|
|
|
c0b841d |
%prep
|
|
|
c0b841d |
%setup -q -n Color-ANSI-Util-%{version}
|
|
|
c0b841d |
|
|
|
c0b841d |
%build
|
|
|
c0b841d |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
c0b841d |
%{make_build}
|
|
|
c0b841d |
|
|
|
c0b841d |
%install
|
|
|
c0b841d |
%{make_install}
|
|
|
c0b841d |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
c0b841d |
|
|
|
c0b841d |
%check
|
|
|
c0b841d |
unset AUTHOR_TESTING RELEASE_TESTING
|
|
|
c0b841d |
make test
|
|
|
c0b841d |
|
|
|
c0b841d |
%files
|
|
|
c0b841d |
%license LICENSE
|
|
|
c0b841d |
%doc Changes README
|
|
|
c0b841d |
%{perl_vendorlib}/*
|
|
|
c0b841d |
%{_mandir}/man3/*
|
|
|
c0b841d |
|
|
|
c0b841d |
%changelog
|
|
|
fff7f1e |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.164-2
|
|
|
fff7f1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
fff7f1e |
|
|
|
c0b841d |
* Fri Jul 03 2020 Jitka Plesnikova <jplesnik@redhat.com> 0.164-1
|
|
|
c0b841d |
- Specfile autogenerated by cpanspec 1.78.
|