1 %define modname wgsmarty
2 Summary: Drupal wgSmarty theme engine
3 Name: drupal-themeengine-%{modname}
8 Group: Applications/WWW
9 Source0: http://dl.sourceforge.net/webg8/wgsmarty-cvs.tar.gz
10 # Source0-md5: bb289aa9808ff90f3fd3a85a34dbe0be
11 Patch0: %{name}-PLD.patch
12 URL: http://drupal.org/node/26897
13 Requires: Smarty >= 2.6.2
14 Requires: drupal >= 4.6.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _enginedir %{_datadir}/drupal/themes/engines
19 %define _cachedir /var/cache/drupal
22 wgSmarty is an implementation of the Smarty template engine as a theme
26 - Template files are easier to create and maintain then with PHPtemplate
27 - Templates are compiled into PHP to avoid speed and memory issues
28 with search-and-replace template engines like XTemplate
29 - wgSmarty is much more closely integrated with Drupal than the
30 existing smarty theme engine
33 - wgSmarty is currently experimental and is only available in CVS
34 - There is very little support for wgSmarty: even when it is released,
35 it will still be poorly supported in comparison with PHPTemplate
38 %setup -q -n %{modname}
40 rm -f LICENSE.txt # GPL v2
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{modname},%{_cachedir}/%{modname}}
46 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}
47 cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{modname}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %{_enginedir}/%{modname}
55 %dir %attr(775,root,http) %{_cachedir}/%{modname}