diff --git a/Text-Aligner-0.06.tar.gz b/Text-Aligner-0.06.tar.gz deleted file mode 100644 index 7beab60..0000000 --- a/Text-Aligner-0.06.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a193382122c406e7198e207e2090e54b658fd79fc9a92197c2d07e2489f9ee32 -size 15764 diff --git a/Text-Aligner-0.07.tar.gz b/Text-Aligner-0.07.tar.gz new file mode 100644 index 0000000..45acb90 --- /dev/null +++ b/Text-Aligner-0.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33e6a45a6dcdd7f799f788f45c335979c0455eb751baae49d6be561bd741ebee +size 15853 diff --git a/perl-Text-Aligner-disable_colored_test.patch b/perl-Text-Aligner-disable_colored_test.patch deleted file mode 100644 index e8fd899..0000000 --- a/perl-Text-Aligner-disable_colored_test.patch +++ /dev/null @@ -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; diff --git a/perl-Text-Aligner.changes b/perl-Text-Aligner.changes index f2003b6..d9f08a8 100644 --- a/perl-Text-Aligner.changes +++ b/perl-Text-Aligner.changes @@ -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 diff --git a/perl-Text-Aligner.spec b/perl-Text-Aligner.spec index ccea2b3..00d2115 100644 --- a/perl-Text-Aligner.spec +++ b/perl-Text-Aligner.spec @@ -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 -Version: 0.06 -Release: 0 +Version: 0.07 +Release: 1 +License: GPL+ or Artistic +%define cpan_name Text-Aligner Summary: Align text in columns -Source: http://search.cpan.org/CPAN/authors/id/A/AN/ANNO/Text-Aligner-%{version}.tar.gz -Patch1: perl-Text-Aligner-disable_colored_test.patch -URL: http://search.cpan.org/dist/Text-Aligner +Url: http://search.cpan.org/dist/Text-Aligner/ Group: Development/Libraries/Perl -License: Perl License -BuildRoot: %{_tmppath}/build-%{name}-%{version} -%{perl_requires} +Source: http://www.cpan.org/authors/id/A/AN/ANNO/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: make BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) BuildRequires: perl(Term::ANSIColor) >= 2.01 -Requires: perl(Test::More) +BuildRequires: perl(Test::More) Requires: perl(Term::ANSIColor) >= 2.01 +Requires: perl(Test::More) +%{perl_requires} %description 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 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 -%setup -q -n "Text-Aligner-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL -%patch1 +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist - -%check -export LANG=C -%__make test +%perl_gen_filelist %clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%{__rm} -rf %{buildroot} -%files -%defattr(-,root,root) -%doc Changes 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} +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes LICENSE README +%changelog