packages: Smarty3/Smarty3.spec (NEW), Smarty3/path.patch (NEW) - Smarty 3.0.5

paszczus paszczus at pld-linux.org
Sun Dec 12 19:28:25 CET 2010


Author: paszczus                     Date: Sun Dec 12 18:28:25 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Smarty 3.0.5

---- Files affected:
packages/Smarty3:
   Smarty3.spec (NONE -> 1.1)  (NEW), path.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/Smarty3/Smarty3.spec
diff -u /dev/null packages/Smarty3/Smarty3.spec:1.1
--- /dev/null	Sun Dec 12 19:28:25 2010
+++ packages/Smarty3/Smarty3.spec	Sun Dec 12 19:28:20 2010
@@ -0,0 +1,307 @@
+# $Revision$, $Date$
+%define		doc_version	3.0
+%define		php_min_version 5.2.0
+%include	/usr/lib/rpm/macros.php
+Summary:	Template engine for PHP
+Summary(pl.UTF-8):	System szablonów dla PHP
+Name:		Smarty3
+Version:	3.0.5
+Release:	0.1
+License:	LGPL v2.1+
+Group:		Development/Languages/PHP
+Source0:	http://www.smarty.net/files/%{name}-%{version}.tar.gz
+# Source0-md5:	f7483eaa36ec72337827060076296478
+# Source1Download: http://www.smarty.net/documentation
+Source1:	http://www.smarty.net/files/docs/manual-en-%{doc_version}.zip
+# Source1-md5:	8db376266f1313927cc8e112f2526e21
+Source2:	%{name}-function.html_input_image.php
+Patch0:		path.patch
+Patch1:		modifier.mb_truncate.patch
+URL:		http://www.smarty.net/
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	unzip
+Requires:	php-common >= 4:%{php_min_version}
+Requires:	php-date
+Requires:	php-pcre
+Requires:	php-tokenizer
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		appdir	%{php_data_dir}/Smarty3
+
+%description
+Smarty is a template engine for PHP. Smarty provides your basic
+variable substitution and dynamic block functionality, and also takes
+a step further to be a "smart" template engine, adding features such
+as configuration files, template functions, variable modifiers, and
+making all of this functionality as easy as possible to use for both
+programmers and template designers.
+
+%description -l pl.UTF-8
+Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe
+podstawianie wartości zmiennych oraz dynamiczne operacje na blokach;
+idzie o krok dalej, aby być "mądrym" silnikiem szablonów, dodając
+takie możliwości jak pliki konfiguracyjne, funkcje, zmienne
+modyfikatory oraz czyniąc całą funkcjonalność jak najłatwiejszą w
+użyciu jednocześnie dla programistów i projektantów szablonów.
+
+%package doc
+Summary:	Template engine for PHP - documentation
+Summary(pl.UTF-8):	System szablonów dla PHP - dokumentacja
+Version:	%{doc_version}
+Group:		Development/Languages/PHP
+
+%description doc
+Documentation for Smarty template engine.
+
+%description doc -l pl.UTF-8
+Dokumentacja do systemu szablonów Smarty.
+
+%prep
+%setup -q -a1
+%patch0 -p1
+cp -a libs/plugins/modifier.{,mb_}truncate.php
+#%patch1 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{appdir}/{plugins,sysplugins},%{php_pear_dir}}
+
+cp -a libs/Smarty.class.php $RPM_BUILD_ROOT%{php_data_dir}
+cp -a libs/debug.tpl $RPM_BUILD_ROOT%{appdir}
+cp -a libs/plugins/*.php $RPM_BUILD_ROOT%{appdir}/plugins
+cp -a libs/sysplugins/*.php $RPM_BUILD_ROOT%{appdir}/sysplugins
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{appdir}/plugins/function.html_input_image.php
+
+# backards compatible with pear dir
+ln -s %{appdir} $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
+
+# backards compatible with entry point in subdir
+ln -s ../Smarty.class.php $RPM_BUILD_ROOT%{appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+# make compat symlink, the symlink is discarded using %ghost on package uninstall
+%triggerpostun -- Smarty < 2.6.10-4
+if [ -d %{php_pear_dir}/%{name}/plugins ]; then
+	mv %{php_pear_dir}/%{name}/plugins/* %{appdir}/plugins
+	rmdir %{php_pear_dir}/%{name}/plugins 2>/dev/null
+fi
+rmdir %{php_pear_dir}/%{name} 2>/dev/null || mv -v %{php_pear_dir}/%{name}{,.rpmsave}
+ln -s %{appdir} %{php_pear_dir}/%{name}
+
+%post
+[ -e %{php_pear_dir}/%{name} ] || ln -s %{appdir} %{php_pear_dir}/%{name}
+
+%files
+%defattr(644,root,root,755)
+%doc README SMARTY2_BC_NOTES
+# entry point in include_path
+%{php_data_dir}/Smarty.class.php
+
+# app itself
+%dir %{appdir}
+%dir %{appdir}/plugins
+%dir %{appdir}/sysplugins
+%{appdir}/Smarty.class.php
+%{appdir}/debug.tpl
+%{appdir}/plugins/*.php
+%{appdir}/sysplugins/*.php
+
+# for the sake of bc when installed to pear dir
+%ghost %{php_pear_dir}/%{name}
+
+%files doc
+%defattr(644,root,root,755)
+%doc demo/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/12/12 18:28:20  paszczus
+- Smarty 3.0.5
+
+Revision 1.53  2010/12/12 18:08:59  paszczus
+- updated to 3.0.5 (stable)
+- updated path.patch
+- Patch1 needs update
+- Smarty 2.x series moved to SMARTY_2 tag
+
+Revision 1.52  2010/11/19 11:38:36  glen
+- create mb_truncate modifier,
+  http://www.guyrutenberg.com/2007/12/04/multibyte-string-truncate-modifier-for-smarty-mb_truncate/
+- rel 4
+
+Revision 1.51  2010/05/28 11:52:27  glen
+- move Smarty.class.php to include_path; rel 3
+
+Revision 1.50  2010/05/28 11:27:24  glen
+- update for php deps
+
+Revision 1.49  2009/06/27 18:48:30  glen
+- release 2
+
+Revision 1.48  2009/06/21 17:35:56  arekm
+- up to 2.6.26
+
+Revision 1.47  2009/05/26 07:30:57  adamg
+- updated to 2.6.25
+
+Revision 1.46  2009/05/24 23:42:53  glen
+- note doc download url
+
+Revision 1.45  2009/05/18 13:48:57  amateja
+- updated to 2.6.24
+
+Revision 1.44  2009/05/16 08:18:55  adamg
+- updated to 2.6.23
+
+Revision 1.43  2008/12/21 09:38:21  arekm
+-up to 2.6.22
+
+Revision 1.42  2008/07/10 16:26:29  glen
+- new url
+
+Revision 1.41  2008-02-25 20:44:40  glen
+- version restored for doc pkg
+
+Revision 1.40  2008-02-25 17:22:51  twittner
+- up to 2.6.19
+
+Revision 1.39  2007-04-15 12:40:36  arekm
+- don't use separate version for subpackage; braks builder script
+
+Revision 1.38  2007/04/01 17:08:18  rotom
+- up to 2.6.18
+
+Revision 1.37  2007/02/12 21:23:45  glen
+- tabs in preamble
+
+Revision 1.36  2007/02/12 00:48:34  baggins
+- converted to UTF-8
+
+Revision 1.35  2006/12/26 15:59:44  prism
+- up to 2.6.16
+
+Revision 1.34  2006/06/22 22:33:45  shadzik
+- fixed issue where the symlink wasn't created because we hadn't have an earlier version of Smarty installed (idea by sparky)
+- rel++
+
+Revision 1.33  2006/05/29 20:52:12  glen
+- 2.6.14
+
+Revision 1.32  2006/05/18 15:50:01  glen
+- added function.html_input_image.php, rel 2
+
+Revision 1.31  2006/05/17 15:46:06  glen
+- 2.6.13
+
+Revision 1.30  2006/02/06 15:13:01  glen
+- Smarty 2.6.12 (operability fixes for latest PHP)
+- smarty doc 2.6.11
+- STBR
+
+Revision 1.29  2005/10/26 14:12:57  glen
+- fixed trigger match; rel 4
+
+Revision 1.28  2005/10/26 13:54:33  glen
+- Smarty has nothing to do with PEAR
+- move Smarty out of PEAR dirs and kill PEAR dep (trigger included)
+- rel 3
+
+Revision 1.27  2005/09/18 09:33:51  glen
+- require php-common instead of virtual "php" (virtual php means apache module)
+
+Revision 1.26  2005/08/21 08:33:48  arekm
+- update Smarty to 2.6.10 (docs 2.6.9)
+
+Revision 1.25  2005/05/24 22:31:45  prism
+- engine and docs updated to 2.6.9
+- release 1
+
+Revision 1.24  2005/03/30 16:34:27  adamg
+- updated to 2.6.8
+- docs updated to 2.6.7
+- release 1
+
+Revision 1.23  2005/02/25 16:42:56  agaran
+- updated to 2.6.7 rel 0.9, STBR(test)
+
+Revision 1.22  2004/10/14 09:11:11  zboczuch
+- version 2.6.6
+- doc version 2.6.5
+- core classes moved from core to internals
+
+Revision 1.21  2004/09/15 09:04:57  zboczuch
+- doc version 2.6.4
+- rel. 2
+
+Revision 1.20  2004/09/15 09:02:33  zboczuch
+- version 2.6.5
+
+Revision 1.19  2004/06/25 06:53:48  zboczuch
+- rel. 2
+
+Revision 1.18  2004/06/25 06:53:09  zboczuch
+- missing URL
+
+Revision 1.17  2004/06/19 09:14:25  mkierus
+- updated to 2.6.3
+
+Revision 1.16  2004/03/24 13:04:45  undefine
+- release 3 to allow upgrade from RA
+
+Revision 1.15  2004/02/26 20:05:54  eothane
+- up to 2.6.2
+
+Revision 1.14  2004/02/02 12:11:39  mwinkler
+- added missing dir core/
+
+Revision 1.13  2004/01/22 17:04:02  eothane
+- updated to 2.6.1 (_doc_version 2.6.0)
+
+Revision 1.12  2003/11/30 17:29:07  adamg
+- updated to 2.6.0
+
+Revision 1.11  2003/08/19 13:45:30  qboosh
+- _noautoreq is obsolete with current pearprov
+
+Revision 1.10  2003/05/26 16:24:19  malekith
+- massive attack: adding Source-md5
+
+Revision 1.9  2003/05/25 05:45:21  misi3k
+- massive attack s/pld.org.pl/pld-linux.org/
+
+Revision 1.8  2003/04/15 08:08:51  djrzulf
+- removed stupid dependency: pear(?)   jest wymagany przez Smarty-2.5.0-2
+- hm, i think that it shuold be named php-pear-Smarty,
+
+Revision 1.7  2003/04/15 03:58:25  baseciq
+- added missing rpm macros
+- new br: rpm-php-pearprov
+- more macros and cleanups
+- More info: see thread starting at <19110162698.20030415000951 at netx.waw.pl>
+  on pld-devel-pl mailing list
+
+Revision 1.6  2003/04/12 22:53:46  baseciq
+- temporary removed _doc_version
+
+Revision 1.5  2003/04/12 22:49:58  baseciq
+- updated for Smarty 2.5.0
+
+Revision 1.4  2003/03/31 12:31:44  qboosh
+- removed COPYING.lib from doc (just LGPL)
+
+Revision 1.3  2003/03/27 22:03:49  qboosh
+- cleanups, little longer pl description
+
+Revision 1.2  2003/03/17 21:13:33  adamg
+- small typo fixed
+- removed Vendor line - rulez.pl is not vendor for this package.
+
+Revision 1.1  2003/02/22 00:00:36  baseciq
+- new

================================================================
Index: packages/Smarty3/path.patch
diff -u /dev/null packages/Smarty3/path.patch:1.1
--- /dev/null	Sun Dec 12 19:28:25 2010
+++ packages/Smarty3/path.patch	Sun Dec 12 19:28:20 2010
@@ -0,0 +1,12 @@
+diff -ur Smarty-3.0.5/libs/Smarty.class.php Smarty-3.0.5.new//libs/Smarty.class.php
+--- Smarty-3.0.5/libs/Smarty.class.php	2010-11-21 03:59:07.000000000 +0100
++++ Smarty-3.0.5.new//libs/Smarty.class.php	2010-12-12 19:05:26.021806440 +0100
+@@ -43,7 +43,7 @@
+  * Sets SMARTY_DIR only if user application has not already defined it.
+  */
+ if (!defined('SMARTY_DIR')) {
+-    define('SMARTY_DIR', dirname(__FILE__) . DS);
++    define('SMARTY_DIR', '/usr/share/php/Smarty3/');
+ } 
+ 
+ /**
================================================================


More information about the pld-cvs-commit mailing list