From 6d7c0acce6db92914cc31ff1f6a99ede2e85312a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Sun, 1 Sep 2002 12:14:34 +0000 Subject: [PATCH] - initial release (beta) - STBR Changed files: php-pear-HTML_Template_IT.spec -> 1.1 --- php-pear-HTML_Template_IT.spec | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 php-pear-HTML_Template_IT.spec diff --git a/php-pear-HTML_Template_IT.spec b/php-pear-HTML_Template_IT.spec new file mode 100644 index 0000000..347df59 --- /dev/null +++ b/php-pear-HTML_Template_IT.spec @@ -0,0 +1,57 @@ +%include /usr/lib/rpm/macros.php +%define _class HTML +%define _subclass Template +%define _pearname %{_class}_%{_subclass}_IT +Summary: %{_pearname} - Integrated Templates +Summary(pl): %{_pearname} +Name: php-pear-%{_pearname} +Version: 1.0 +Release: 1 +License: PHP 2.02 +Group: Development/Languages/PHP +Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz +URL: http://pear.php.net/ +BuildRequires: rpm-php-pearprov +Requires: php-pear +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +HTML_Template_IT: Simple template API. The Isotemplate API is somewhat +tricky for a beginner although it is the best one you can build. +template::parse() [phplib template = Isotemplate] requests you to name +a source and a target where the current block gets parsed into. Source +and target can be block names or even handler names. This API gives +you a maximum of fexibility but you always have to know what you do +which is quite unusual for php skripter like me. I noticed that I do +not any control on which block gets parsed into which one. If all +blocks are within one file, the script knows how they are nested and +in which way you have to parse them. IT knows that inner1 is a child +of block2, there's no need to tell him about this. Features : + - Nested blocks, + - Include external file, + - Custom tags format (default {mytag}). + +HTML_Template_ITX: With this class you get the full power of the +phplib template class. You may have one file with blocks in it but you +have as well one main file and multiple files one for each block. This +is quite usefull when you have user configurable websites. Using +blocks not in the main template allows you to modify some parts of +your layout easily. + +%prep +%setup -q -c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} + +install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%dir %{php_pear_dir}/%{_class}/%{_subclass} +%{php_pear_dir}/%{_class}/%{_subclass}/*.php -- 2.44.0