perl-Term-ANSIColor/perl-Term-ANSIColor.spec

Name: perl-Term-ANSIColor
Summary: Color output using ANSI escape sequences
Version: 3.00
Release: 2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Term-ANSIColor/
Description: Color output using ANSI escape sequences

CentOS 7 x86_64

The build could not start because the following file is missing: ANSIColor-3.00.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: ANSIColor-3.00.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Upstream: Russ Allbery <rra@stanford.edu>
# Tag: rfx

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
%define real_name ANSIColor

Summary: Color output using ANSI escape sequences
Name: perl-Term-ANSIColor
Version: 3.00
Release: 2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Term-ANSIColor/

Source: http://search.cpan.org/CPAN/authors/id/R/RR/RRA/ANSIColor-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)

### remove autoreq Perl dependencies
%filter_from_requires /^perl.*/d
%filter_setup


%description
Color output using ANSI escape sequences

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

%clean
%{__rm} -rf %{buildroot}

%check
%{__make} %{?_smp_mflags} test

%files
%defattr(-, root, root, 0755)
%doc  MANIFEST META.yml README
%doc %{_mandir}/man3/Term::ANSIColor.3pm*
%dir %{perl_vendorlib}/
%{perl_vendorlib}/Term/ANSIColor.pm
%exclude %{perl_vendorarch}/auto/Term/ANSIColor/.packlist

%changelog
* Wed Mar 27 2013 IWAI, Masaharu <iwaim.sub@gmail.com> - 3.00-2
- add BuildRequires: perl(Test::More)
- create 'check' section
- add description

* Tue Feb 08 2011 Christoph Maser <cmaser.gmx.de> - 3.00-1
- initial package