Blob Blame History Raw
Name:           perl-Syntax-Highlight-Perl6
Version:        0.88
Release:        5%{?dist}
Summary:        Perl 6 Syntax Highlighter
License:        (GPL+ or Artistic) and Artistic 2.0 and (MIT or GPLv2) 
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Syntax-Highlight-Perl6/
Source0:        http://www.cpan.org/authors/id/A/AZ/AZAWAWI/Syntax-Highlight-Perl6-%{version}.tar.gz
BuildArch:      noarch
# perl(Module::Build) version 0.36 is just autogenerator noise
BuildRequires:  perl(ExtUtils::MakeMaker) >= 0.36
BuildRequires:  perl(File::ShareDir::Install) >= 0.03
BuildRequires:  perl(STD) >= 32116
BuildRequires:  perl(Term::ANSIColor) >= 2.00
BuildRequires:  perl(Test::Exception) >= 0.27
BuildRequires:  perl(Test::More) >= 0.86
Requires:       perl(STD) >= 32116
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Syntax::Highlight::Perl6 parses Perl 6 source code using an embedded
STD.pm. It matches parse tree nodes to colors then returns them in
different output formats. It can be used to create web pages with colorful
source code samples in its simple and snippet HTML modes, or it can be used
as a learning tool in examining STD.pm's output using the JavaScript node
viewer in its full HTML mode. Or you can use its parse tree Perl 5 records
to build your next great idea.

%prep
%setup -q -n Syntax-Highlight-Perl6-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=perl
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"

%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_privlib}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

%changelog
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.88-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.88-4
- Perl mass rebuild

* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.88-3
- Perl mass rebuild

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.88-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Oct 27 2010 Petr Pisar <ppisar@redhat.com> - 0.88-1
- 0.88 bump
- Move to ExtUtils::MakeMaker build system

* Mon Sep 27 2010 Petr Pisar <ppisar@redhat.com> - 0.87-1
- 0.87 bump (RT#61522)

* Tue Sep 21 2010 Petr Pisar <ppisar@redhat.com> - 0.86-1
- 0.86 bump
- Move from ExtUtils::Maker to Module::Build
- Remove useless wrong_interpreter patch
- Move from vendor to core perl paths
- Remove BuildRoot related code
- Package not installed hilitep6 (upstream mistake? RT#61522)
- Correct Summary spelling

* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.78-3
- Mass rebuild with perl-5.12.0

* Mon Feb  8 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.78-2
- fix rpmlint complaints

* Thu Feb 04 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.78-1
- Specfile autogenerated by cpanspec 1.78.