90 строки
2.9 KiB
Plaintext
90 строки
2.9 KiB
Plaintext
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$
|
|
%global __requires_exclude %{?__requires_exclude}|perl\\(Color::RGB::Util\\)\\s*$
|
|
|
|
Summary: Routines for dealing with ANSI colors
|
|
Name: perl-Color-ANSI-Util
|
|
Version: 0.164
|
|
Release: 6%{?dist}
|
|
License: GPL+ OR Artistic
|
|
Vendor: Microsoft Corporation
|
|
Distribution: Mariner
|
|
URL: https://metacpan.org/release/Color-ANSI-Util/
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/Color-ANSI-Util-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(:VERSION) >= 5.10.1
|
|
# Run-Time
|
|
BuildRequires: perl(Color::RGB::Util) >= 0.600
|
|
BuildRequires: perl(Exporter) >= 5.57
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
|
|
%if %{with_check}
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(IO::Handle)
|
|
BuildRequires: perl(IPC::Open3)
|
|
BuildRequires: perl(Test::More) >= 0.98
|
|
BuildRequires: perl(blib)
|
|
%endif
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Color::RGB::Util) >= 0.600
|
|
Requires: perl(Exporter) >= 5.57
|
|
|
|
Recommends: perl(Term::Detect::Software)
|
|
|
|
%description
|
|
This module provides routines for dealing with ANSI colors. The two main
|
|
functions are ansifg and ansibg. With those functions, you can specify
|
|
colors in RGB and let it output the correct ANSI color escape code
|
|
according to the color depth support of the terminal (whether 16-color,
|
|
256-color, or 24bit). There are other functions to convert RGB to ANSI
|
|
in specific color depths, or reverse functions to convert from ANSI to
|
|
RGB codes.
|
|
|
|
%prep
|
|
%setup -q -n Color-ANSI-Util-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
unset AUTHOR_TESTING RELEASE_TESTING
|
|
make test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Jan 26 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.164-6
|
|
- Initial CBL-Mariner import from Fedora 36 (license: MIT).
|
|
- License verified.
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.164-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.164-4
|
|
- Perl 5.34 rebuild
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.164-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.164-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Fri Jul 03 2020 Jitka Plesnikova <jplesnik@redhat.com> 0.164-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|