# ----------------------------------------------------------------------------- # sample spec file. # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- # header. # Summary: smarty - template engine Name: smarty Version: 2.6.9 Release: 1 Prefix: /usr/share/php Group: Development/Libraries Source: Smarty-%{version}.tar.gz License: LGPL Packager: YAMASHINA Hio Requires: php #BuildRequires: php URL: http://smarty.php.net BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch %description Smarty is a template engine for PHP. Many other template engines for PHP provide basic variable substitution and dynamic block functionality. Smarty takes a step further to be a "smart" template engine, adding features such as configuration files, template functions, and variable modifiers, and making all of this functionality as easy as possible to use for both programmers and template designers. Smarty also converts the templates into PHP scripts, eliminating the need to parse the templates on every invocation. This makes Smarty extremely scalable and manageable for large application needs. # ----------------------------------------------------------------------------- # prepare. # %prep rm -rf $RPM_BUILD_ROOT %setup -q -n Smarty-%version # ----------------------------------------------------------------------------- # build. # %build true # ----------------------------------------------------------------------------- # install. # %install %__mkdir_p $RPM_BUILD_ROOT/%prefix cp -a libs $RPM_BUILD_ROOT/%prefix/Smarty # ----------------------------------------------------------------------------- # clean. # %clean rm -rf $RPM_BUILD_ROOT # ----------------------------------------------------------------------------- # files. # %files %defattr (-,root,root) %doc BUGS COPYING.lib ChangeLog FAQ INSTALL NEWS QUICK_START %doc README RELEASE_NOTES TODO %prefix/Smarty # ----------------------------------------------------------------------------- # change log. # %changelog * Wed May 11 2005 YAMASHINA Hio - created