]> git.pld-linux.org Git - packages/php-pear-HTML_Template_IT.git/blame - php-pear-HTML_Template_IT.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-HTML_Template_IT.git] / php-pear-HTML_Template_IT.spec
CommitLineData
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 6Summary: %{_pearname} - Integrated Templates
b673d64c 7Summary(pl.UTF-8): %{_pearname} - zintegrowane szablony
6d7c0acc 8Name: php-pear-%{_pearname}
bf16dd3d
AG
9Version: 1.3.1
10Release: 1
d919dbb2 11License: Modified BSD
6d7c0acc
PG
12Group: Development/Languages/PHP
13Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
bf16dd3d 14# Source0-md5: 16d37c2c5ab7dd19fbd12c406d1f03cf
3cebb543 15URL: http://pear.php.net/package/HTML_Template_IT/
1f8eb0bd 16BuildRequires: php-pear-PEAR
419ac90a 17BuildRequires: rpm-php-pearprov >= 4.4.2-11
61aeeae9 18BuildRequires: rpmbuild(macros) >= 1.300
6d7c0acc 19Requires: php-pear
2149e041 20Requires: php-pear-PEAR-core
443dc577 21Obsoletes: php-pear-HTML_Template_IT-tests
6d7c0acc
PG
22BuildArch: noarch
23BuildRoot: %{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
29HTML_Template_IT: Simple template API. The Isotemplate API is somewhat
30tricky for a beginner although it is the best one you can build.
31template::parse() [phplib template = Isotemplate] requests you to name
32a source and a target where the current block gets parsed into. Source
33and target can be block names or even handler names. This API gives
34you a maximum of fexibility but you always have to know what you do
29570648 35which is quite unusual for PHP skripter like me. I noticed that I do
6d7c0acc
PG
36not any control on which block gets parsed into which one. If all
37blocks are within one file, the script knows how they are nested and
38in which way you have to parse them. IT knows that inner1 is a child
137ca012 39of 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
44HTML_Template_ITX: With this class you get the full power of the
45phplib template class. You may have one file with blocks in it but you
46have as well one main file and multiple files one for each block. This
63f024ec
AG
47is quite useful when you have user configurable websites. Using blocks
48not in the main template allows you to modify some parts of your
49layout easily.
6d7c0acc 50
2205de41 51In PEAR status of this package is: %{_status}.
8df37baa 52
5ceb7876
JR
53%description -l pl.UTF-8
54HTML_Template_IT - proste API do szablonów. API Isotemplate (template
55z phplib) jest nieco zawiłe dla początkujących, ale jest najlepszym
56jakie można uzyskać. template::parse() wymaga nazwania źródła i celu,
57do którego przetworzony będzie aktualny blok. Źródło i cel mogą być
58nazwami bloków lub nawet nazwami funkcji obsługujących. To API daje
59maksymalną elastyczność, ale wymaga zawsze wiedzy, co się robi, co nie
60jest normalnym stanem dla niektórych autorów skryptów PHP, takich jak
61autor tego modułu. Zauważył on, że nie potrzebuje żadnej kontroli,
62który blok zostaje przetworzony na który. Jeżeli wszystkie bloki są w
63jednym pliku, skrypt wie, jak są zagnieżdżone i w jaki sposób powinny
64zostać przetworzone. IT wie, że inner1 jest potomkiem block2, nie ma
65potrzeby 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
70HTML_Template_ITX - ta klasa daje całą siłę klasy szablonów z phplib.
71Można mieć jeden plik z blokami, ale można także mieć jeden główny
72plik i wiele plików zawierających po jednym bloku. Jest to przydatne,
73aby pozwolić użytkownikowi na konfigurowalne serwisy. Przez użycie
74bloków spoza głównego szablonu pozwala się na łatwe modyfikowanie
75niektórych części wyglądu.
137ca012 76
8df37baa
PG
77Ta klasa ma w PEAR status: %{_status}.
78
6d7c0acc 79%prep
419ac90a 80%pear_package_setup
6d7c0acc
PG
81
82%install
83rm -rf $RPM_BUILD_ROOT
419ac90a
ER
84install -d $RPM_BUILD_ROOT%{php_pear_dir}
85%pear_package_install
6d7c0acc
PG
86
87%clean
88rm -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
This page took 0.06596 seconds and 4 git commands to generate.