|
|
|
@ -1,32 +1,45 @@
|
|
|
|
|
# Bootstrap perl-Pegex → perl-TestML
|
|
|
|
|
%global perl_bootstrap 1
|
|
|
|
|
|
|
|
|
|
Name: perl-Pegex
|
|
|
|
|
Version: 0.21
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.44
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
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
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(inc::Module::Install)
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(JSON::XS)
|
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(re)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(YAML::XS)
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(Test::Builder)
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
%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
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
|
Requires: perl(JSON::XS)
|
|
|
|
|
Requires: perl(warnings)
|
|
|
|
|
Requires: perl(YAML::XS)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -37,31 +50,37 @@ modern programming languages.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Pegex-%{version}
|
|
|
|
|
# Remove bundled modules
|
|
|
|
|
rm -r ./inc
|
|
|
|
|
sed -i -e '/^inc\//d' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%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
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%doc Changes CONTRIBUTING LICENSE README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|