-Source0: http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
-# Source0-md5: f4f2cc1ae1762f0e11d23defb56e6806
-Source1: http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz
-# Source1-md5: 3035699c5785c06b0492832d372ffc62
-BuildRequires: rpm-php-pearprov >= 4.3
-Requires: php
-Requires: php-pear
+Source0: http://www.smarty.net/distributions/%{name}-%{version}.tar.gz
+# Source0-md5: e0da351443b8613e1013c481ab30cb84
+# Source1Download: http://www.smarty.net/download-docs.php
+Source1: http://www.smarty.net/distributions/manual/en/%{name}-%{doc_version}-docs.tar.gz
+# Source1-md5: 5123152dd248898a84b96b806f551e78
+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
+Requires: php(pcre)
+Requires: php(tokenizer)
+Requires: php-common >= 4:%{php_min_version}
+Requires: php-date