|
|
733c84d |
Name: perl-CatalystX-REPL
|
|
|
733c84d |
Version: 0.04
|
|
|
79602ab |
Release: 3%{?dist}
|
|
|
733c84d |
Summary: Read-eval-print-loop for debugging your Catalyst application
|
|
|
733c84d |
License: GPL+ or Artistic
|
|
|
733c84d |
Group: Development/Libraries
|
|
|
733c84d |
URL: http://search.cpan.org/dist/CatalystX-REPL/
|
|
|
733c84d |
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/CatalystX-REPL-%{version}.tar.gz
|
|
|
733c84d |
BuildArch: noarch
|
|
|
733c84d |
BuildRequires: perl(Carp::REPL)
|
|
|
733c84d |
BuildRequires: perl(Catalyst) >= 5.80006
|
|
|
733c84d |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
733c84d |
BuildRequires: perl(Test::More)
|
|
|
733c84d |
BuildRequires: perl(Test::Expect)
|
|
|
733c84d |
BuildRequires: perl(namespace::autoclean)
|
|
|
733c84d |
Requires: perl(Catalyst) >= 5.80006
|
|
|
733c84d |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
733c84d |
|
|
|
733c84d |
# Test::Expect and/or Devel::REPL is failing under mock 1.1.8 in koji
|
|
|
733c84d |
# all is fine locally with mock 1.1.14, though
|
|
|
733c84d |
%bcond_with expect_tests
|
|
|
733c84d |
|
|
|
733c84d |
%{?perl_default_filter}
|
|
|
733c84d |
|
|
|
733c84d |
%description
|
|
|
733c84d |
Using Carp::REPL with a Catalyst application is hard. That's because of all
|
|
|
733c84d |
the internal exceptions that are being thrown and caught by Catalyst during
|
|
|
733c84d |
application startup. You'd have to manually skip over all of those.
|
|
|
733c84d |
|
|
|
733c84d |
This role works around that by automatically setting up Carp::REPL after
|
|
|
733c84d |
starting your application, if the CATALYST_REPL or MYAPP_REPL environment
|
|
|
733c84d |
variables are set.
|
|
|
733c84d |
|
|
|
733c84d |
%prep
|
|
|
733c84d |
%setup -q -n CatalystX-REPL-%{version}
|
|
|
733c84d |
|
|
|
733c84d |
%build
|
|
|
733c84d |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
733c84d |
make %{?_smp_mflags}
|
|
|
733c84d |
|
|
|
733c84d |
%install
|
|
|
733c84d |
make pure_install DESTDIR=%{buildroot}
|
|
|
733c84d |
|
|
|
733c84d |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
733c84d |
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
733c84d |
|
|
|
733c84d |
%{_fixperms} %{buildroot}/*
|
|
|
733c84d |
|
|
|
733c84d |
%check
|
|
|
733c84d |
# Test::Expect and/or Devel::REPL is failing under mock 1.1.8 in koji
|
|
|
733c84d |
# all is fine locally with mock 1.1.14, though
|
|
|
733c84d |
%if ! %{with expect_tests}
|
|
|
733c84d |
grep -lZ 'Test::Expect' t/*.t |xargs -0 rm -f
|
|
|
733c84d |
%endif
|
|
|
733c84d |
make test
|
|
|
733c84d |
|
|
|
733c84d |
%files
|
|
|
733c84d |
%doc Changes LICENSE README
|
|
|
733c84d |
%{perl_vendorlib}/*
|
|
|
733c84d |
%{_mandir}/man3/*
|
|
|
733c84d |
|
|
|
733c84d |
%changelog
|
|
|
79602ab |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
|
|
|
79602ab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
79602ab |
|
|
|
733c84d |
* Thu Oct 13 2011 Iain Arnell <iarnell@gmail.com> 0.04-2
|
|
|
733c84d |
- Test::Expect and/or Devel::REPL fail under mock 1.1.8 in koji
|
|
|
733c84d |
use --with expect-tests to enable locally
|
|
|
733c84d |
|
|
|
733c84d |
* Fri Sep 30 2011 Iain Arnell <iarnell@gmail.com> 0.04-1
|
|
|
733c84d |
- Specfile autogenerated by cpanspec 1.78.
|