diff --git a/SPECS/perl-Term-ANSIColor.spec b/SPECS/perl-Term-ANSIColor.spec new file mode 100644 index 0000000..5527d4f --- /dev/null +++ b/SPECS/perl-Term-ANSIColor.spec @@ -0,0 +1,118 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_Term_ANSIColor_enables_optional_test +%else +%bcond_with perl_Term_ANSIColor_enables_optional_test +%endif + +Name: perl-Term-ANSIColor +Version: 4.06 +Release: 396%{?dist} +Summary: Color screen output using ANSI escape sequences +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Term-ANSIColor/ +Source0: http://www.cpan.org/modules/by-module/Term/Term-ANSIColor-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +# Tests +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Test::More) +# Optional tests +%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap} +BuildRequires: perl(IPC::System::Simple) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module has two interfaces, one through color() and colored() and the +other through constants. It also offers the utility functions uncolor(), +colorstrip(), colorvalid(), and coloralias(), which have to be explicitly +imported to be used. + +%prep +%setup -q -n Term-ANSIColor-%{version} +chmod -c -x examples/* + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes examples README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 4.06-396 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 4.06-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 4.06-394 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Sat Jun 03 2017 Jitka Plesnikova - 4.06-393 +- Perl 5.26 rebuild + +* Fri May 12 2017 Jitka Plesnikova - 4.06-3 +- Don't BR: perl(IPC::System::Simple) when bootstrapping + +* Sat Feb 11 2017 Fedora Release Engineering - 4.06-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 06 2016 Jitka Plesnikova - 4.06-1 +- 4.06 bump + +* Sat May 14 2016 Jitka Plesnikova - 4.05-2 +- Perl 5.24 rebuild + +* Fri Apr 01 2016 Jitka Plesnikova - 4.05-1 +- 4.05 bump + +* Fri Mar 11 2016 Jitka Plesnikova - 4.04-1 +- 4.04 bump + +* Thu Feb 04 2016 Fedora Release Engineering - 4.03-347 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 4.03-346 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 4.03-345 +- Increase release to favour standalone package + +* Thu Jun 04 2015 Jitka Plesnikova - 4.03-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 4.03-3 +- Perl 5.20 rebuild + +* Mon Aug 11 2014 David Dick - 4.03-2 +- Re-adding for master + +* Tue Jul 22 2014 David Dick - 4.03-1 +- Initial release