perl-Term-ANSIColor/perl-Term-ANSIColor.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:18 -04:00
Name: perl-Term-ANSIColor
Version: 4.06
2019-12-25 16:03:22 +08:00
Release: 511
2019-09-30 11:13:18 -04:00
Summary: Color screen output using ANSI escape sequences
License: GPL+
URL: https://metacpan.org/release/Term-ANSIColor
Source0: https://cpan.metacpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils, make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
%description
This Perl module is a simple and convenient interface to the ANSI terminal escape sequences for
color (from ECMA-48, also included in ISO 6429). The color sequences are provided in two forms,
either as constants for each color or via a function that takes the names of colors and returns
the appropriate escape codes or wraps them around the provided text. The non-color text style
codes from ANSI X3.64 (bold, dark, underline, and reverse, for example), which were also included
in ECMA-48 and ISO 6429, are also supported. Also supported are the extended colors used for
sixteen-color and 256-color emulators.
%package_help
%prep
%setup -q -n Term-ANSIColor-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
2019-12-25 16:03:22 +08:00
%{_fixperms} %{buildroot}/*
2019-09-30 11:13:18 -04:00
%check
make test
%files
%defattr(-, root, root)
%doc README
%license LICENSE
%{perl_vendorlib}/*
%files help
%defattr(-, root, root)
%doc Changes examples
%{_mandir}/man3/*
%changelog
2019-12-25 16:03:22 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.06-511
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:change mod of files
2019-09-30 11:13:18 -04:00
* Sun Sep 29 2019 shenyangyang <shenyangyang4@huawei.com> - 4.06-510
- Type:NA
- ID:NA
- SUG:NA
- DESC:move the directory of README
* Mon Sep 23 2019 shenyangyang<shenyangyang4@huawei.com> - 4.06-509
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise requires of perl
* Fri Aug 30 2019 hexiaowen <hexiaowen@huawei.com> 4.06-508
- Package init