2 %define _subclass QuickForm
4 %define _pearname %{_class}_%{_subclass}_Controller
5 Summary: %{_pearname} - add-on to HTML_QuickForm that allows building of multiple forms
6 Summary(pl.UTF-8): %{_pearname} - dodatek do HTML_QuickForm umożliwiający budowanie wielu formularzy
7 Name: php-pear-%{_pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 # Source0-md5: 9d220655d03233bceea387f0e75ba2fd
14 URL: http://pear.php.net/package/HTML_QuickForm_Controller/
15 BuildRequires: php-pear-PEAR >= 1:1.5.4
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
18 Requires: php-pear >= 4:1.0-9.1
19 Requires: php-pear-HTML_QuickForm >= 3.2.5
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package is essentially an implementation of a PageController
28 - Controller class that examines HTTP requests and manages form values
29 persistance across requests.
30 - Page class (subclass of QuickForm) representing a single page of the
32 - Business logic is contained in subclasses of Action class.
35 - Includes several default actions that allows easy building of
37 - Includes usage examples for common usage cases (single-page form,
40 In PEAR status of this package is: %{_status}.
42 %description -l pl.UTF-8
43 Ten pakiet jest implementacją szablonu PageController.
46 - Klasa Controller badająca zapytania HTTP i zarządzająca wartościami
47 formularza pomiędzy kolejnymi zapytaniami.
48 - Klasa Page (podklasa QuickForm) reprezentująca pojedynczą stronę
50 - Logika biznesowa zawarta jest w podklasach klasy Action.
53 - Zawiera kilka domyślnych akcji pozwalających na łatwe budowanie
54 formularzy rozbitych na kilka stron.
55 - Zawiera gotowe przykłady najczęściej spotykanych zastosowań.
57 Ta klasa ma w PEAR status: %{_status}.
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{php_pear_dir}
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %doc docs/%{_pearname}/examples
74 %{php_pear_dir}/.registry/*.reg
75 %{php_pear_dir}/%{_class}/%{_subclass}/*