]> git.pld-linux.org Git - SPECS.git/blob - php-pear-HTML_Template_IT.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / php-pear-HTML_Template_IT.spec
1 %define         _class          HTML
2 %define         _subclass       Template
3 %define         _status         stable
4 %define         _pearname       %{_class}_%{_subclass}_IT
5
6 Summary:        %{_pearname} - Integrated Templates
7 Summary(pl.UTF-8):      %{_pearname} - zintegrowane szablony
8 Name:           php-pear-%{_pearname}
9 Version:        1.3.1
10 Release:        1
11 License:        Modified BSD
12 Group:          Development/Languages/PHP
13 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5:  16d37c2c5ab7dd19fbd12c406d1f03cf
15 URL:            http://pear.php.net/package/HTML_Template_IT/
16 BuildRequires:  php-pear-PEAR
17 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
18 BuildRequires:  rpmbuild(macros) >= 1.300
19 Requires:       php-pear
20 Requires:       php-pear-PEAR-core
21 Obsoletes:      php-pear-HTML_Template_IT-tests
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 # included in tests
26 %define         _noautoreq 'pear(Console_TestListener.php)' 'pear(IT_api_testcase.php)' 'pear(IT_usage_testcase.php)'
27
28 %description
29 HTML_Template_IT: Simple template API. The Isotemplate API is somewhat
30 tricky for a beginner although it is the best one you can build.
31 template::parse() [phplib template = Isotemplate] requests you to name
32 a source and a target where the current block gets parsed into. Source
33 and target can be block names or even handler names. This API gives
34 you a maximum of fexibility but you always have to know what you do
35 which is quite unusual for PHP skripter like me. I noticed that I do
36 not any control on which block gets parsed into which one. If all
37 blocks are within one file, the script knows how they are nested and
38 in which way you have to parse them. IT knows that inner1 is a child
39 of block2, there's no need to tell him about this. Features:
40  - Nested blocks,
41  - Include external file,
42  - Custom tags format (default {mytag}).
43
44 HTML_Template_ITX: With this class you get the full power of the
45 phplib template class. You may have one file with blocks in it but you
46 have as well one main file and multiple files one for each block. This
47 is quite useful when you have user configurable websites. Using blocks
48 not in the main template allows you to modify some parts of your
49 layout easily.
50
51 In PEAR status of this package is: %{_status}.
52
53 %description -l pl.UTF-8
54 HTML_Template_IT - proste API do szablonów. API Isotemplate (template
55 z phplib) jest nieco zawiłe dla początkujących, ale jest najlepszym
56 jakie można uzyskać. template::parse() wymaga nazwania źródła i celu,
57 do którego przetworzony będzie aktualny blok. Źródło i cel mogą być
58 nazwami bloków lub nawet nazwami funkcji obsługujących. To API daje
59 maksymalną elastyczność, ale wymaga zawsze wiedzy, co się robi, co nie
60 jest normalnym stanem dla niektórych autorów skryptów PHP, takich jak
61 autor tego modułu. Zauważył on, że nie potrzebuje żadnej kontroli,
62 który blok zostaje przetworzony na który. Jeżeli wszystkie bloki są w
63 jednym pliku, skrypt wie, jak są zagnieżdżone i w jaki sposób powinny
64 zostać przetworzone. IT wie, że inner1 jest potomkiem block2, nie ma
65 potrzeby podawania mu tych informacji. Możliwości:
66  - zagnieżdżone bloki,
67  - dołączanie zewnętrznych plików,
68  - własny format znaczników (domyślnie {mytag}).
69
70 HTML_Template_ITX - ta klasa daje całą siłę klasy szablonów z phplib.
71 Można mieć jeden plik z blokami, ale można także mieć jeden główny
72 plik i wiele plików zawierających po jednym bloku. Jest to przydatne,
73 aby pozwolić użytkownikowi na konfigurowalne serwisy. Przez użycie
74 bloków spoza głównego szablonu pozwala się na łatwe modyfikowanie
75 niektórych części wyglądu.
76
77 Ta klasa ma w PEAR status: %{_status}.
78
79 %prep
80 %pear_package_setup
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT%{php_pear_dir}
85 %pear_package_install
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc install.log
93 %{php_pear_dir}/.registry/*.reg
94 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
This page took 0.043478 seconds and 3 git commands to generate.