]>
Commit | Line | Data |
---|---|---|
6d7c0acc PG |
1 | %define _class HTML |
2 | %define _subclass Template | |
8df37baa | 3 | %define _status stable |
6d7c0acc | 4 | %define _pearname %{_class}_%{_subclass}_IT |
7d5893b1 | 5 | |
6d7c0acc | 6 | Summary: %{_pearname} - Integrated Templates |
b673d64c | 7 | Summary(pl.UTF-8): %{_pearname} - zintegrowane szablony |
6d7c0acc | 8 | Name: php-pear-%{_pearname} |
bf16dd3d AG |
9 | Version: 1.3.1 |
10 | Release: 1 | |
d919dbb2 | 11 | License: Modified BSD |
6d7c0acc PG |
12 | Group: Development/Languages/PHP |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
bf16dd3d | 14 | # Source0-md5: 16d37c2c5ab7dd19fbd12c406d1f03cf |
3cebb543 | 15 | URL: http://pear.php.net/package/HTML_Template_IT/ |
1f8eb0bd | 16 | BuildRequires: php-pear-PEAR |
419ac90a | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
61aeeae9 | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
6d7c0acc | 19 | Requires: php-pear |
2149e041 | 20 | Requires: php-pear-PEAR-core |
443dc577 | 21 | Obsoletes: php-pear-HTML_Template_IT-tests |
6d7c0acc PG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
dcb079b7 ER |
25 | # included in tests |
26 | %define _noautoreq 'pear(Console_TestListener.php)' 'pear(IT_api_testcase.php)' 'pear(IT_usage_testcase.php)' | |
27 | ||
6d7c0acc PG |
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 | |
29570648 | 35 | which is quite unusual for PHP skripter like me. I noticed that I do |
6d7c0acc PG |
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 | |
137ca012 | 39 | of block2, there's no need to tell him about this. Features: |
6d7c0acc PG |
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 | |
63f024ec AG |
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. | |
6d7c0acc | 50 | |
2205de41 | 51 | In PEAR status of this package is: %{_status}. |
8df37baa | 52 | |
5ceb7876 JR |
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. | |
137ca012 | 76 | |
8df37baa PG |
77 | Ta klasa ma w PEAR status: %{_status}. |
78 | ||
6d7c0acc | 79 | %prep |
419ac90a | 80 | %pear_package_setup |
6d7c0acc PG |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
419ac90a ER |
84 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
85 | %pear_package_install | |
6d7c0acc PG |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
419ac90a ER |
92 | %doc install.log |
93 | %{php_pear_dir}/.registry/*.reg | |
6d7c0acc | 94 | %{php_pear_dir}/%{_class}/%{_subclass}/*.php |