3 %bcond_without tests # do not perform "make test"
6 %define pnam Plugin-DefaultEnd
7 Summary: Catalyst::Plugin::DefaultEnd - Sensible default end action
8 Summary(pl.UTF-8): Catalyst::Plugin::DefaultEnd - sensowna domyślna akcja kończąca
9 Name: perl-Catalyst-Plugin-DefaultEnd
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Catalyst/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 4808d527a2842c82687c4a561bcc3644
17 URL: http://search.cpan.org/dist/Catalyst-Plugin-DefaultEnd/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Catalyst >= 5.2
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This action implements a sensible default end action, which will
29 forward to the first available view, unless status is set to 3xx, or
30 there is a response body. It also allows you to pass dump_info=1 to
31 the URL in order to force a debug screen, while in debug mode.
33 %description -l pl.UTF-8
34 Ta akcja implementuje sensowną domyślną akcję kończącą,
35 przekierowującą na pierwszy dostępny widok, chyba że status ustawiono
36 na 3xx lub istnieje ciało odpowiedzi. Pozwala także przekazać
37 dump_info=1 do URL-a w celu wymuszenia ekranu diagnostycznego w
38 przypadku włączonego trybu śledzenia (debug mode).
41 %setup -q -n %{pdir}-%{pnam}-%{version}
46 destdir=$RPM_BUILD_ROOT \
49 %{?with_tests:./Build test}
52 rm -rf $RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Catalyst/Plugin/*.pm