forked from pool/perl-Text-Aligner
- updated to 0.07
One colorskip-dependent test moved into skip block as per rt. #61276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Aligner?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
f12c21031e
commit
ff82b7b99a
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a193382122c406e7198e207e2090e54b658fd79fc9a92197c2d07e2489f9ee32
|
|
||||||
size 15764
|
|
3
Text-Aligner-0.07.tar.gz
Normal file
3
Text-Aligner-0.07.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:33e6a45a6dcdd7f799f788f45c335979c0455eb751baae49d6be561bd741ebee
|
||||||
|
size 15853
|
@@ -1,15 +0,0 @@
|
|||||||
--- t/10_Aligner.t.orig 2010-08-31 01:05:34.000000000 +0200
|
|
||||||
+++ t/10_Aligner.t 2010-08-31 01:08:12.000000000 +0200
|
|
||||||
@@ -67,10 +67,10 @@
|
|
||||||
BEGIN { $n_tests += 1 }
|
|
||||||
|
|
||||||
# number recognition
|
|
||||||
-BEGIN { $n_tests += 3 }
|
|
||||||
+BEGIN { $n_tests += 2 }
|
|
||||||
ok(Text::Aligner::_is_number(12.3));
|
|
||||||
ok(!Text::Aligner::_is_number('abc'));
|
|
||||||
-ok(Text::Aligner::_is_number(colored('123', 'red')));
|
|
||||||
+#ok(Text::Aligner::_is_number(colored('123', 'red')));
|
|
||||||
|
|
||||||
|
|
||||||
my $ali = Text::Aligner->new;
|
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 26 18:25:16 UTC 2011 - coolo@opensuse.org
|
||||||
|
|
||||||
|
- updated to 0.07
|
||||||
|
One colorskip-dependent test moved into skip block as per rt. #61276
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 1 13:35:41 UTC 2010 - coolo@novell.com
|
Wed Dec 1 13:35:41 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,25 +1,39 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
#
|
||||||
# norootforbuild
|
# spec file for package perl-Text-Aligner (Version 0.07)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
Name: perl-Text-Aligner
|
Name: perl-Text-Aligner
|
||||||
Version: 0.06
|
Version: 0.07
|
||||||
Release: 0
|
Release: 1
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
%define cpan_name Text-Aligner
|
||||||
Summary: Align text in columns
|
Summary: Align text in columns
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/A/AN/ANNO/Text-Aligner-%{version}.tar.gz
|
Url: http://search.cpan.org/dist/Text-Aligner/
|
||||||
Patch1: perl-Text-Aligner-disable_colored_test.patch
|
|
||||||
URL: http://search.cpan.org/dist/Text-Aligner
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Perl License
|
Source: http://www.cpan.org/authors/id/A/AN/ANNO/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
BuildArch: noarch
|
||||||
%{perl_requires}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
BuildRequires: perl(Term::ANSIColor) >= 2.01
|
BuildRequires: perl(Term::ANSIColor) >= 2.01
|
||||||
Requires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
Requires: perl(Term::ANSIColor) >= 2.01
|
Requires: perl(Term::ANSIColor) >= 2.01
|
||||||
|
Requires: perl(Test::More)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Text::Aligner exports a single function, align(), which is used to justify
|
Text::Aligner exports a single function, align(), which is used to justify
|
||||||
@@ -27,32 +41,40 @@ strings to various alignment styles. The alignment specification is the
|
|||||||
first argument, followed by any number of scalars which are subject to
|
first argument, followed by any number of scalars which are subject to
|
||||||
alignment.
|
alignment.
|
||||||
|
|
||||||
|
The operation depends on context. In list context, a list of the justified
|
||||||
|
scalars is returned. In scalar context, the justified arguments are joined
|
||||||
|
into a single string with newlines appended. The original arguments remain
|
||||||
|
unchanged. In void context, in-place justification is attempted. In this
|
||||||
|
case, all arguments must be lvalues.
|
||||||
|
|
||||||
|
Align() also does one level of scalar dereferencing. That is, whenever one
|
||||||
|
of the arguments is a scalar reference, the scalar pointed to is aligned
|
||||||
|
instead. Other references are simply stringified. An undefined argument is
|
||||||
|
interpreted as an empty string without complaint.
|
||||||
|
|
||||||
|
Alignment respects colorizing escape sequences a la Term::ANSICOLOR, which
|
||||||
|
means it knows that thses sequences don't take up space on the screen.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Text-Aligner-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
%check
|
|
||||||
export LANG=C
|
|
||||||
%__make test
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes LICENSE README
|
||||||
%dir %{perl_vendorlib}/Text
|
|
||||||
%{perl_vendorlib}/Text/Aligner.pm
|
|
||||||
%dir %{perl_vendorarch}/auto/Text
|
|
||||||
%{perl_vendorarch}/auto/Text/Aligner
|
|
||||||
%doc %{perl_man3dir}/Text::Aligner.%{perl_man3ext}%{ext_man}
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
Reference in New Issue
Block a user