2014-07-31 14:06:25 +00:00
|
|
|
# Bootstrap perl-Pegex → perl-TestML
|
|
|
|
%global perl_bootstrap 1
|
|
|
|
|
2010-10-28 10:49:51 +00:00
|
|
|
Name: perl-Pegex
|
2014-07-31 14:06:25 +00:00
|
|
|
Version: 0.44
|
|
|
|
Release: 1%{?dist}
|
2010-10-28 10:49:51 +00:00
|
|
|
Summary: Pegex Parser Generator
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Pegex/
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/Pegex-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2014-07-31 14:06:25 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
2012-06-12 10:49:37 +00:00
|
|
|
# Run-time
|
|
|
|
BuildRequires: perl(Carp)
|
2014-07-31 14:06:25 +00:00
|
|
|
BuildRequires: perl(constant)
|
2012-06-12 10:49:37 +00:00
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(JSON::XS)
|
2014-07-31 14:06:25 +00:00
|
|
|
BuildRequires: perl(overload)
|
|
|
|
BuildRequires: perl(re)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
2010-10-28 10:49:51 +00:00
|
|
|
BuildRequires: perl(YAML::XS)
|
2012-06-12 10:49:37 +00:00
|
|
|
# Tests
|
2014-07-31 14:06:25 +00:00
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(lib)
|
2012-06-12 10:49:37 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2014-07-31 14:06:25 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Break dependency cycle: perl-Pegex → perl-TestML → perl-Pegex
|
|
|
|
BuildRequires: perl(TestML)
|
|
|
|
BuildRequires: perl(TestML::Bridge)
|
|
|
|
BuildRequires: perl(TestML::Compiler::Lite)
|
|
|
|
BuildRequires: perl(TestML::Util)
|
|
|
|
%endif
|
2010-10-28 10:49:51 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2012-06-12 10:49:37 +00:00
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
Requires: perl(JSON::XS)
|
2014-07-31 14:06:25 +00:00
|
|
|
Requires: perl(warnings)
|
2012-06-12 10:49:37 +00:00
|
|
|
Requires: perl(YAML::XS)
|
2010-10-28 10:49:51 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pegex is a Acmeist parser framework. It is a PEG parser grammar syntax,
|
|
|
|
combined with PCRE compatible regular expressions as the match tokens.
|
|
|
|
Pegex draws heavily from Perl 6 rules, but works equivalently in many
|
|
|
|
modern programming languages.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Pegex-%{version}
|
2014-07-31 14:06:25 +00:00
|
|
|
# Remove bundled modules
|
|
|
|
rm -r ./inc
|
|
|
|
sed -i -e '/^inc\//d' MANIFEST
|
2010-10-28 10:49:51 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-07-31 14:06:25 +00:00
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
2010-10-28 10:49:51 +00:00
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
2014-07-31 14:06:25 +00:00
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
2010-10-28 10:49:51 +00:00
|
|
|
|
|
|
|
%check
|
2014-07-31 14:06:25 +00:00
|
|
|
%if %{defined perl_bootstrap}
|
|
|
|
# Break dependency cycle: perl-Pegex → perl-TestML → perl-Pegex
|
|
|
|
make test TEST_FILES="$(find t -name '*.t' \
|
|
|
|
\! -exec grep -q -e 'use TestML' {} \; -print | tr \"\\n\" ' ')"
|
|
|
|
%else
|
2010-10-28 10:49:51 +00:00
|
|
|
make test
|
2014-07-31 14:06:25 +00:00
|
|
|
%endif
|
2010-10-28 10:49:51 +00:00
|
|
|
|
|
|
|
%files
|
2014-07-31 14:06:25 +00:00
|
|
|
%doc Changes CONTRIBUTING LICENSE README
|
2010-10-28 10:49:51 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2014-07-31 14:06:25 +00:00
|
|
|
* Thu Jul 31 2014 Petr Pisar <ppisar@redhat.com> - 0.44-1
|
|
|
|
- 0.44 bump
|
|
|
|
|
2014-06-07 08:55:33 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 00:20:40 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-08-02 02:48:02 +00:00
|
|
|
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 0.21-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-18 08:05:04 +00:00
|
|
|
* Mon Feb 18 2013 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.21-1
|
|
|
|
- Update to 0.21
|
|
|
|
|
2013-02-14 14:38:48 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 18:18:34 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-11 21:32:01 +00:00
|
|
|
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.11-6
|
|
|
|
- Perl 5.16 rebuild
|
2012-06-12 10:49:37 +00:00
|
|
|
- Specify all dependencies
|
2012-06-11 21:32:01 +00:00
|
|
|
|
2012-01-13 16:46:45 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-20 15:43:49 +00:00
|
|
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-4
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-02-09 05:44:02 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-27 13:09:30 +00:00
|
|
|
* Thu Jan 27 2011 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.11-2
|
|
|
|
- rebuild with new Perl version
|
|
|
|
|
2010-10-28 10:49:51 +00:00
|
|
|
* Wed Oct 27 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.11-1
|
|
|
|
- remove unnecessary BuildRequires
|
|
|
|
|
|
|
|
* Sun Oct 03 2010 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.10-1
|
|
|
|
- BuildRequires perl(Test::Builder) added
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|