Compare commits

...

10 Commits

Author SHA256 Message Date
6e450e146e Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=12
2024-07-30 21:26:35 +00:00
Lars Vogdt
2ed9794d2c Accepting request 765572 from devel:languages:perl:autoupdate
- updated to 5.01
   see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
  Term::ANSIColor 5.01 (2020-01-17)
  
      Add support for NO_COLOR <https://no-color.org/> to suppress all
      formatting sequences.  Thanks, Andrea Telatin.
  
      Document that aliases are expanded during alias definition, and thus
      an alias defined in terms of another alias will not change if the
      other alias is redefined.
  
      Fix SYNOPSIS example of uncolor.  The function returns a list, not a
      reference to a list.  Thanks, Joe Smith.  (#131414)

OBS-URL: https://build.opensuse.org/request/show/765572
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=11
2020-01-20 06:54:01 +00:00
Lars Vogdt
461f146df3 Accepting request 761217 from devel:languages:perl:autoupdate
- updated to 5.00
   see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
  Term::ANSIColor 5.00 (2020-01-05)
  
      Drop support for Perl 5.6.  The minimum supported version is now Perl
      5.8.  Perl 5.6 isn't supported by Travis-CI and is only spottily
      tested, so true support is dubious.
  
      Add suport for true color (24-bit color) via new rNNNgNNNbNNN and
      on_rNNNgNNNbNNN attributes.  These are only supported via the function
      interface, not in the constant interface.  Based on work by Lars
      Dɪᴇᴄᴋᴏᴡ 迪拉斯.  (#130083)
  
      Allow color aliases to map to multiple attributes instead of only one
      attribute.  Based on work by Yanick Champoux.
  
      Aliases may now be defined in terms of other aliases.
  
      Document bad interactions between colored output to standard output
      and standard error when standard output is line-buffered in a couple
      of places in the manual and suggest setting autoflush() or EACHLINE
      as a fix.  (#121974)
  
      Document how to support CLICOLOR <https://bixense.com/clicolors/> in
      programs using Term::ANSIColor.  (Due to backward compatibility and
      non-output uses, there's no easy way to support CLICOLOR in the module
      automatically.)
  
      Update to rra-c-util 8.1:
  
      * Update perlcritic configuration.
      * Add SPDX-License-Identifier headers to all significant files.

OBS-URL: https://build.opensuse.org/request/show/761217
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=10
2020-01-07 07:53:26 +00:00
Stephan Kulow
d3e3b01dcf Accepting request 437816 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/437816
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=9
2016-11-10 05:53:18 +00:00
Stephan Kulow
2c1d3998e5 Accepting request 378564 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/378564
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=8
2016-03-23 12:11:20 +00:00
eb7c6b2d65 Accepting request 348031 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/348031
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=7
2015-12-09 11:08:44 +00:00
Stephan Kulow
b295fc2c69 Accepting request 296204 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=6
2015-04-15 05:26:55 +00:00
Stephan Kulow
06ef0c1766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=5 2011-11-11 11:22:56 +00:00
Stephan Kulow
2832a60c22 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=4
2010-12-03 14:51:33 +00:00
Stephan Kulow
7d00802418 siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ANSIColor?expand=0&rev=3
2010-11-30 19:28:30 +00:00
5 changed files with 222 additions and 36 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9773ec6bed37ffed54b52e2a23b6a87a16fce547e5cbb1f824a5498bb7122557
size 20000

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6281bd87cced7a885c38aa104498e3cd4b5f4c276087442cf68c67379318f27d
size 57411

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,145 @@
-------------------------------------------------------------------
Sun Jan 19 03:10:03 UTC 2020 - <timueller+perl@suse.de>
- updated to 5.01
see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
Term::ANSIColor 5.01 (2020-01-17)
Add support for NO_COLOR <https://no-color.org/> to suppress all
formatting sequences. Thanks, Andrea Telatin.
Document that aliases are expanded during alias definition, and thus
an alias defined in terms of another alias will not change if the
other alias is redefined.
Fix SYNOPSIS example of uncolor. The function returns a list, not a
reference to a list. Thanks, Joe Smith. (#131414)
-------------------------------------------------------------------
Mon Jan 6 03:14:18 UTC 2020 - <timueller+perl@suse.de>
- updated to 5.00
see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
Term::ANSIColor 5.00 (2020-01-05)
Drop support for Perl 5.6. The minimum supported version is now Perl
5.8. Perl 5.6 isn't supported by Travis-CI and is only spottily
tested, so true support is dubious.
Add suport for true color (24-bit color) via new rNNNgNNNbNNN and
on_rNNNgNNNbNNN attributes. These are only supported via the function
interface, not in the constant interface. Based on work by Lars
Dɪ 迪拉斯. (#130083)
Allow color aliases to map to multiple attributes instead of only one
attribute. Based on work by Yanick Champoux.
Aliases may now be defined in terms of other aliases.
Document bad interactions between colored output to standard output
and standard error when standard output is line-buffered in a couple
of places in the manual and suggest setting autoflush() or EACHLINE
as a fix. (#121974)
Document how to support CLICOLOR <https://bixense.com/clicolors/> in
programs using Term::ANSIColor. (Due to backward compatibility and
non-output uses, there's no easy way to support CLICOLOR in the module
automatically.)
Update to rra-c-util 8.1:
* Update perlcritic configuration.
* Add SPDX-License-Identifier headers to all significant files.
-------------------------------------------------------------------
Sat Oct 29 06:12:08 UTC 2016 - coolo@suse.com
- updated to 4.06
see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
Term::ANSIColor 4.06 (2016-10-28)
Add aliases ansi16 through ansi255 and on_ansi16 through on_ansi255
(plus the corresponding constants) for the grey and rgb colors so that
one can refer to all of the 256 ANSI colors with consistent names.
These are aliases; the colors returned by uncolor will still use the
grey and rgb names. (#118267)
-------------------------------------------------------------------
Wed Mar 23 11:10:51 UTC 2016 - coolo@suse.com
- updated to 4.05
see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
Term::ANSIColor 4.05 (2016-03-20)
Color aliases are now restricted to ASCII alphanumerics, due to the
below change.
Delay loading of the Carp module and avoid using [:upper:], \w, and \d
in regular expressions to reduce the amount of memory this module
consumes. (Normally, I wouldn't worry about this, but this module is
very light-weight and can be useful even in highly space-constrained
environments, and the impact is slight.) Thanks, Nicolas R.
(#111552)
Provide a mailto address in bug tracking metadata, use the shorter
form of the RT bug tracker URL, and fix the license value to match the
new metadata specification. Rework Makefile.PL so that the munging
for older versions of ExtUtils::MakeMaker is less intrusive.
-------------------------------------------------------------------
Wed Dec 9 09:45:27 UTC 2015 - coolo@suse.com
- updated to 4.04
see /usr/share/doc/packages/perl-Term-ANSIColor/Changes
-------------------------------------------------------------------
Tue Apr 14 15:38:17 UTC 2015 - coolo@suse.com
- updated to 4.03
see /usr/share/doc/packages/perl-Term-ANSIColor/
-------------------------------------------------------------------
Tue Apr 14 15:38:15 UTC 2015 - coolo@suse.com
- updated to 3.01
see /usr/share/doc/packages/perl-Term-ANSIColor/ChangeLog
2011-07-20 Russ Allbery <rra@stanford.edu>
* ANSIColor.pm: Version 3.01 released.
* Makefile.PL: Change the DISTNAME to Term-ANSIColor.
* ANSIColor.pm (colored): Only interpret an initial array
reference as a list of colors, not any initial reference, allowing
the colored function to work properly on objects with
stringification defined. Thanks, Revilo Reegiles.
* t/stringify.t: New test for proper behavior with non-array
references in colored.
2011-03-13 Russ Allbery <rra@stanford.edu>
* ANSIColor.pm: Fix two syntax errors in the SYNOPSIS. Thanks,
Jan Hartung.
2010-10-08 Russ Allbery <rra@stanford.edu>
* ANSIColor.pm: Warn in the documentation that attributes are not
supported in and will not work with Perl formats.
2010-04-11 Russ Allbery <rra@stanford.edu>
* ANSIColor.pm: Update the URL for ECMA-048 in the documentation.
-------------------------------------------------------------------
Tue Nov 30 19:20:47 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:31:09 UTC 2010 - coolo@novell.com

View File

@@ -1,50 +1,66 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# spec file for package perl-Term-ANSIColor
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Term-ANSIColor
Name: perl-Term-ANSIColor
Version: 3.00
Version: 5.01
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Color output using ANSI escape sequences
Source: http://search.cpan.org/CPAN/authors/id/R/RR/RRA/ANSIColor-%{version}.tar.gz
URL: http://search.cpan.org/dist/Term-ANSIColor
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RR/RRA/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
Provides: perl-ANSIColor = %{version}
BuildRequires: perl-macros
%{perl_requires}
%description
This module has two interfaces, one through color() and colored() and the other
through constants. It also offers the utility functions uncolor(),
colorstrip(), and colorvalid().
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
imported to be used (see SYNOPSIS).
If you are using Term::ANSIColor in a console command, consider supporting
the CLICOLOR standard. See "Supporting CLICOLOR" for more information.
See COMPATIBILITY for the versions of Term::ANSIColor that introduced
particular features and the versions of Perl that included them.
%prep
%setup -q -n "ANSIColor-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%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
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc ChangeLog README
%dir %{perl_vendorlib}/Term
%{perl_vendorlib}/Term/ANSIColor.pm
%dir %{perl_vendorarch}/auto/Term
%{perl_vendorarch}/auto/Term/ANSIColor
%doc %{perl_man3dir}/Term::ANSIColor.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%doc Changes docs examples README README.md THANKS TODO
%license LICENSE
%changelog