2010-08-29 06:39:43 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Text-Aligner
|
|
|
|
Version: 0.06
|
|
|
|
Release: 0
|
|
|
|
Summary: Align text in columns
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AN/ANNO/Text-Aligner-%{version}.tar.gz
|
2010-08-30 23:09:11 +00:00
|
|
|
Patch1: perl-Text-Aligner-disable_colored_test.patch
|
2010-08-29 06:39:43 +00:00
|
|
|
URL: http://search.cpan.org/dist/Text-Aligner
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 13:56:05 +00:00
|
|
|
%{perl_requires}
|
2010-08-29 06:39:43 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Term::ANSIColor) >= 2.01
|
|
|
|
Requires: perl(Test::More)
|
|
|
|
Requires: perl(Term::ANSIColor) >= 2.01
|
|
|
|
|
|
|
|
%description
|
|
|
|
Text::Aligner exports a single function, align(), which is used to justify
|
|
|
|
strings to various alignment styles. The alignment specification is the
|
|
|
|
first argument, followed by any number of scalars which are subject to
|
|
|
|
alignment.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Text-Aligner-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2010-08-30 23:09:11 +00:00
|
|
|
%patch1
|
2010-08-29 06:39:43 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
2010-08-30 23:09:11 +00:00
|
|
|
export LANG=C
|
2010-08-29 06:39:43 +00:00
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?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}
|
|
|
|
|