forked from pool/perl-Text-Aligner
56 lines
1.5 KiB
RPMSpec
56 lines
1.5 KiB
RPMSpec
![]() |
# 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
|
||
|
URL: http://search.cpan.org/dist/Text-Aligner
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
Requires: perl = %{perl_version}
|
||
|
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
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?jobs:-j%{jobs}}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
%__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}
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|