-%dir %{_smartydir}
-%dir %{_smartydir}/internals
-%dir %{_smartydir}/plugins
-%{_smartydir}/*.class.php
-%{_smartydir}/debug.tpl
-%{_smartydir}/internals/*.php
-%{_smartydir}/plugins/*.php
-
-# for the sake of bc
+# entry point in include_path
+%{php_data_dir}/Smarty.class.php
+
+# app itself
+%dir %{appdir}
+%dir %{appdir}/internals
+%dir %{appdir}/plugins
+%{appdir}/Smarty.class.php
+%{appdir}/Config_File.class.php
+%{appdir}/Smarty_Compiler.class.php
+%{appdir}/debug.tpl
+%{appdir}/internals/*.php
+%{appdir}/plugins/*.php
+
+# for the sake of bc when installed to pear dir