Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhomann
php5-pear-HTML_Template_IT
php5-pear-HTML_Template_IT.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php5-pear-HTML_Template_IT.spec of Package php5-pear-HTML_Template_IT
# # spec file for package php5-pear-HTML_Template_IT # # Copyright (c) 2007 Christian Wittmer, Deidesheim, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via <rpm@scorpio-it.net> # # norootforbuild %define pren php5-pear %define mname HTML_Template_IT %if ! %( echo %{mname} | grep "_" >/dev/null; echo $? ) %define mpath %( /bin/echo %{mname} | sed -e "s,_,/,g" ) %else %define mpath %{mname} %endif # Release number can be specified with rpmbuild --define 'release SOMETHING' ... # If no such --define is used, the release number is 1. %if %{?rel:0}%{!?rel:1} %define rel 3 %endif %define peardir %{_datadir}/php5/PEAR %define xmldir /var/lib/pear #Distribution: %dist #Packager: rpm@scorpio-it.net #Vendor: %vendor Name: %{pren}-%{mname} Summary: PEAR classes for Integrated Templates Version: 1.2.1 Release: %{rel}.%pid License: Other uncritical OpenSource License, Other License(s), see package Group: Productivity/Networking/Web/Servers BuildArch: noarch URL: http://pear.php.net/package/%{mname} Source: %{mname}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: php5-pear BuildRequires: php-pear Requires: php-pear Provides: php-pear-%{mname} pear-%{mname} #---------------------------------------------------------------------------------- %description #---------------------------------------------------------------------------------- %{mname} 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 useful when you have user configurable websites. Using blocks not in the main template allows you to modify some parts of your layout easily. Author: David Soria Parra [Wishlist] (lead) Thorsten Rinne [Wishlist] (developer) Pierre-Alain Joye [Wishlist] (lead, inactive) Ulf Wendel (developer, inactive) ---------------------------------------------------------------------------------- #---------------------------------------------------------------------------------- %prep #---------------------------------------------------------------------------------- %setup -c #---------------------------------------------------------------------------------- %build #---------------------------------------------------------------------------------- #---------------------------------------------------------------------------------- %install #---------------------------------------------------------------------------------- %{__mv} package*.xml %{mname}-%{version} cd %{mname}-%{version} PHP_PEAR_PHP_BIN="/usr/bin/php5 -d memory_limit=50m" pear5 -v \ -d doc_dir=%{_docdir}/%{name} \ -d data_dir=%{_docdir}/%{name} \ install --offline --nodeps -R "$RPM_BUILD_ROOT" package.xml %{__rm} -rf "$RPM_BUILD_ROOT"/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} %{__mkdir_p} $RPM_BUILD_ROOT%{xmldir} %{__cp} -p package.xml $RPM_BUILD_ROOT%{xmldir}/%{mname}.xml #---------------------------------------------------------------------------------- %pre #---------------------------------------------------------------------------------- # on `rpm -ivh` PARAM is 1 # on `rpm -Uvh` PARAM is 2 #if [ "$1" = "1" ]; then #fi #---------------------------------------------------------------------------------- %preun #---------------------------------------------------------------------------------- # on `rpm -e` PARAM is 0 if [ "$1" = "0" ]; then pear5 uninstall %{mname} fi #---------------------------------------------------------------------------------- %post #---------------------------------------------------------------------------------- # on `rpm -ivh` PARAM is 1 # on `rpm -Uvh` PARAM is 2 if [ "$1" = "1" ]; then pear5 install --offline --register-only %{xmldir}/%{mname}.xml fi if [ "$1" = "2" ]; then pear5 upgrade --offline --register-only %{xmldir}/%{mname}.xml fi #---------------------------------------------------------------------------------- %postun #---------------------------------------------------------------------------------- # on `rpm -e` PARAM is 0 #if [ "$1" = "0" ]; then #fi #---------------------------------------------------------------------------------- %clean #---------------------------------------------------------------------------------- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT #---------------------------------------------------------------------------------- %files #---------------------------------------------------------------------------------- %defattr(-, root, root) %doc %{mname}-%{version}/LICENSE %{mname}-%{version}/examples %dir %{peardir}/HTML %dir %{peardir}/HTML/Template %{peardir}/%{mpath}* %{peardir}/test %{xmldir}/%{mname}.xml #---------------------------------------------------------------------------------- %changelog -n php5-pear-HTML_Template_IT #---------------------------------------------------------------------------------- * Thu Jan 15 2009 - <rpm@scorpio-it.net> 1.2.1 - some spec fixes * Mon Jan 12 2009 - <rpm@scorpio-it.net> 1.2.1 - some spec/rpmlint fixes * Thu Jul 17 2008 - <rpm@scorpio-it.net> 1.2.1 - fix build for openSUSE_110 * Mon Jul 14 2008 - <rpm@scorpio-it.net> 1.2.1 - initial build for obs - fixed Requires, BuildRequires * Fri Feb 08 2008 - rpm@scorpio-it.net - 1.2.1 - 3 - change to new spec layout - fixed Author * Mon Nov 5 2007 - rpm@scorpio-it.net - 1.2.1 - 2 - fixed some macros - fixed release, removed {suse_ver}, bacause of "noarch" * Sat Apr 28 2007 - rpm@scorpio-it.net - 1.2.1 - 1 - package build for SLES10
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor