]> git.pld-linux.org Git - SPECS.git/blob - perl-Catalyst-Plugin-DefaultEnd.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Catalyst-Plugin-DefaultEnd.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Catalyst
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
10 Version:        0.08
11 Release:        1
12 # same as perl
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
21 %if %{with tests}
22 BuildRequires:  perl-Catalyst >= 5.2
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
32
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).
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Build.PL \
45         installdirs=vendor \
46         destdir=$RPM_BUILD_ROOT \
47 ./Build
48
49 %{?with_tests:./Build test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 ./Build install
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README
61 %{perl_vendorlib}/Catalyst/Plugin/*.pm
62 %{_mandir}/man3/*
This page took 0.123253 seconds and 3 git commands to generate.