8
0
Files
perl-Text-Aligner/perl-Text-Aligner.spec

58 lines
1.5 KiB
RPMSpec
Raw Normal View History

# 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
Patch1: perl-Text-Aligner-disable_colored_test.patch
URL: http://search.cpan.org/dist/Text-Aligner
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
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
%patch1
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
export LANG=C
%__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}