2015-04-15 05:26:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Term-ANSIColor
|
|
|
|
#
|
2024-07-30 21:26:35 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-04-15 05:26:55 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-01-07 07:53:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-15 05:26:55 +00:00
|
|
|
#
|
|
|
|
|
2010-08-29 06:48:59 +00:00
|
|
|
|
2024-07-30 21:26:35 +00:00
|
|
|
%define cpan_name Term-ANSIColor
|
2010-08-29 06:48:59 +00:00
|
|
|
Name: perl-Term-ANSIColor
|
2020-01-20 06:54:01 +00:00
|
|
|
Version: 5.01
|
2010-08-29 06:48:59 +00:00
|
|
|
Release: 0
|
2020-01-07 07:53:26 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-07-30 21:26:35 +00:00
|
|
|
Summary: Color output using ANSI escape sequences
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2020-01-07 07:53:26 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RR/RRA/%{cpan_name}-%{version}.tar.gz
|
2015-12-09 11:08:44 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:32 +02:00
|
|
|
Source100: README.md
|
2015-04-15 05:26:55 +00:00
|
|
|
BuildArch: noarch
|
2010-08-29 06:48:59 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:51:33 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-04-15 05:26:55 +00:00
|
|
|
%{perl_requires}
|
2010-08-29 06:48:59 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-15 05:26:55 +00:00
|
|
|
This module has two interfaces, one through color() and colored() and the
|
|
|
|
other through constants. It also offers the utility functions uncolor(),
|
|
|
|
colorstrip(), colorvalid(), and coloralias(), which have to be explicitly
|
2015-12-09 11:08:44 +00:00
|
|
|
imported to be used (see SYNOPSIS).
|
2015-04-15 05:26:55 +00:00
|
|
|
|
2020-01-07 07:53:26 +00:00
|
|
|
If you are using Term::ANSIColor in a console command, consider supporting
|
|
|
|
the CLICOLOR standard. See "Supporting CLICOLOR" for more information.
|
|
|
|
|
2015-12-09 11:08:44 +00:00
|
|
|
See COMPATIBILITY for the versions of Term::ANSIColor that introduced
|
|
|
|
particular features and the versions of Perl that included them.
|
2010-08-29 06:48:59 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-30 21:26:35 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-08-29 06:48:59 +00:00
|
|
|
|
|
|
|
%build
|
2020-01-07 07:53:26 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2024-07-30 21:26:35 +00:00
|
|
|
%make_build
|
2010-08-29 06:48:59 +00:00
|
|
|
|
|
|
|
%check
|
2020-01-07 07:53:26 +00:00
|
|
|
make test
|
2010-08-29 06:48:59 +00:00
|
|
|
|
2015-04-15 05:26:55 +00:00
|
|
|
%install
|
2015-12-09 11:08:44 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-04-15 05:26:55 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-29 06:48:59 +00:00
|
|
|
|
2015-04-15 05:26:55 +00:00
|
|
|
%files -f %{name}.files
|
2020-01-07 07:53:26 +00:00
|
|
|
%doc Changes docs examples README README.md THANKS TODO
|
|
|
|
%license LICENSE
|
2010-08-29 06:48:59 +00:00
|
|
|
|
2015-04-15 05:26:55 +00:00
|
|
|
%changelog
|