]> git.pld-linux.org Git - packages/Smarty.git/blobdiff - Smarty.spec
- fixed issue where the symlink wasn't created because we hadn't have an earlier...
[packages/Smarty.git] / Smarty.spec
index 4780424eb54923c26e6f1307f5eaaf7896550c33..5ae22bc00063d29d840138b0be954a14913a9c99 100644 (file)
@@ -3,14 +3,15 @@
 Summary:       Template engine for PHP
 Summary(pl):   System szablonów dla PHP
 Name:          Smarty
-Version:       2.6.13
-Release:       1
+Version:       2.6.14
+Release:       2
 License:       LGPL
 Group:         Development/Languages/PHP
 Source0:       http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
-# Source0-md5: 2ca9bf476cf0920b9d4fee69633f6f65
+# Source0-md5: 9186796ddbc29191306338dea9d632a0
 Source1:       http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
 # Source1-md5: 7a0eaeda82eef073c87997141ee6207c
+Source2:       %{name}-function.html_input_image.php
 URL:           http://smarty.php.net/
 BuildRequires: rpm-php-pearprov >= 4.3
 Requires:      php-common
@@ -58,6 +59,7 @@ install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{_smarty
 install libs/debug.tpl $RPM_BUILD_ROOT%{_smartydir}
 install libs/internals/*.php $RPM_BUILD_ROOT%{_smartydir}/internals
 install libs/plugins/*.php $RPM_BUILD_ROOT%{_smartydir}/plugins
+install %{SOURCE2} $RPM_BUILD_ROOT%{_smartydir}/plugins/function.html_input_image.php
 
 # backards compatible
 ln -s %{_smartydir} $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
@@ -74,6 +76,9 @@ fi
 rmdir %{php_pear_dir}/%{name} 2>/dev/null || mv -v %{php_pear_dir}/%{name}{,.rpmsave}
 ln -s %{_smartydir} %{php_pear_dir}/%{name}
 
+%post
+[ -e %{php_pear_dir}/%{name} ] || ln -s %{_smartydir} %{php_pear_dir}/%{name}
+
 %files
 %defattr(644,root,root,755)
 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
This page took 0.032676 seconds and 4 git commands to generate.