]> git.pld-linux.org Git - packages/perl-MasonX-Interp-WithCallbacks.git/blame - perl-MasonX-Interp-WithCallbacks.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MasonX-Interp-WithCallbacks.git] / perl-MasonX-Interp-WithCallbacks.spec
CommitLineData
967b6a68 1#
2# Conditional build:
56474292 3%bcond_with tests # perform "make test"
967b6a68 4#
b4444029 5%define pdir MasonX
6%define pnam Interp-WithCallbacks
e2d4c5e4 7Summary: MasonX::Interp::WithCallbacks - Mason callback support via Params::CallbackRequest
01d4a722 8Summary(pl.UTF-8): MasonX::Interp::WithCallbacks - obsługa callbacków Masona poprzez Params::CallbackRequest
967b6a68 9Name: perl-MasonX-Interp-WithCallbacks
316bde88
AM
10Version: 1.17
11Release: 1
967b6a68 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
13c62b47 15Source0: http://www.cpan.org/modules/by-module/MasonX/%{pdir}-%{pnam}-%{version}.tar.gz
316bde88 16# Source0-md5: 7a4131bed5cc67df62dd27a7e8aa30d6
13c62b47
JB
17URL: http://search.cpan.org/dist/MasonX-Interp-WithCallbacks/
18BuildRequires: perl-Module-Build
e2d4c5e4 19BuildRequires: perl-devel >= 1:5.8.0
967b6a68 20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
e2d4c5e4
JB
22BuildRequires: perl-Class-Container >= 0.09
23BuildRequires: perl-HTML-Mason >= 1.23
0120642d 24BuildRequires: perl-Params-CallbackRequest >= 1.11
13c62b47 25BuildRequires: perl-Test-Simple >= 0.17
967b6a68 26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31MasonX::Interp::WithCallbacks subclasses HTML::Mason::Interp
32in order to provide a Mason callback system built on
e2d4c5e4
JB
33Params::CallbackRequest. Callbacks may be either code references
34provided to the new() constructor, or methods defined in subclasses of
35Params::Callback. Callbacks are triggered either for every request or
36by specially named keys in the Mason request arguments, and all
37callbacks are executed at the beginning of a request, just before
38Mason creates and executes the request component stack.
967b6a68 39
1114a0ff
JR
40%description -l pl.UTF-8
41MasonX::Interp::WithCallbacks jest podklasą HTML::Mason::Interp
42dostarczającą Masonowi system wywołań zwrotnych (callbacków) zbudowany
43w oparciu o Params::CallbackRequest. Callbacki mogą być referencjami
e2d4c5e4 44do kodu przekazanymi do konstruktora new() lub metodami zdefiniowanymi
1114a0ff
JR
45w podklasach Params::Callback. Wywołania zwrotne są wyzwalane albo dla
46każdego żądania lub przez specjalnie nazwane klucze w argumentach
47żądań Masona, zaraz przed tym, jak Mason tworzy i wykonuje stos
48żądanych komponentów.
967b6a68 49
50%prep
51%setup -q -n %{pdir}-%{pnam}-%{version}
52
53%build
5e2de3ab 54%{__perl} Build.PL \
55 installdirs=vendor \
56 destdir=$RPM_BUILD_ROOT
57./Build
967b6a68 58
5e2de3ab 59%{?with_tests:./Build test}
967b6a68 60
61%install
62rm -rf $RPM_BUILD_ROOT
63
5e2de3ab 64./Build install
967b6a68 65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
71%doc Changes README
e88966e7 72%dir %{perl_vendorlib}/MasonX/Interp
e2d4c5e4 73%{perl_vendorlib}/MasonX/*/*.pm
967b6a68 74%{_mandir}/man3/*
This page took 0.105951 seconds and 4 git commands to generate.