perl-Pegex/perl-Pegex.spec

144 lines
4.6 KiB
RPMSpec
Raw Normal View History

2010-10-28 10:49:51 +00:00
Name: perl-Pegex
2015-02-04 06:36:31 +00:00
Version: 0.60
Release: 3%{?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)
2015-02-04 06:36:31 +00:00
BuildRequires: perl(File::ShareDir::Install)
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
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.60-3
- Perl 5.22 re-rebuild of bootstrapped packages
2015-06-05 14:20:00 +00:00
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.60-2
- Perl 5.22 rebuild
2015-02-04 06:36:31 +00:00
* Wed Feb 04 2015 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.60-1
- Update to 0.60
- BuildRequires perl(File::ShareDir::Install) added
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-3
- Perl 5.20 re-rebuild of bootstrapped packages
2014-08-27 21:41:19 +00:00
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-2
- Perl 5.20 rebuild
2014-08-08 12:51:56 +00:00
* Fri Aug 08 2014 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.45-1
- Update to 0.45
2014-08-07 14:01:12 +00:00
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 0.44-2
- Finish bootstrap
2014-07-31 14:06:25 +00:00
* Thu Jul 31 2014 Petr Pisar <ppisar@redhat.com> - 0.44-1
- 0.44 bump
* 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
* 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
* 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
* 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
* 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
* 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.