2 Summary: Drupal Smarty theme engine
3 Summary(pl): Silnik motywów Drupala Smarty
4 Name: drupal-themeengine-%{engine}
8 Group: Applications/WWW
9 Source0: http://drupal.org/files/projects/%{engine}-%{version}.tar.gz
10 # Source0-md5: d5fe39d4861f7e59cabddb1bc0f28c56
11 Patch0: %{name}-PLD.patch
12 URL: http://drupal.org/node/19248
13 Requires: Smarty >= 2.6.10-4
14 Requires: drupal >= 4.6.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _drupaldir %{_datadir}/drupal
19 %define _enginedir %{_drupaldir}/themes/engines
20 %define _cachedir /var/cache/drupal
23 A theme engine that allows you to use template files written using
24 Smarty Template Engine syntax.
26 The 'default' template for this engine is box_grey_smarty, which is
27 ported from the original box_grey theme.
30 Ten silnik motywów umo¿liwia u¿ywanie plików szablonów napisanych przy
31 u¿yciu sk³adni silnika szablonów Smarty.
33 "Domy¶lnym" szablonem dla tego silnika jest box_grey_smarty, który
34 jest sportowany z oryginalnego motywu box_grey.
37 %setup -q -n %{engine}
39 rm -f LICENSE.txt # GPL v2
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine}/plugins,%{_cachedir}/%{engine}}
45 install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{engine}
46 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
47 install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}/plugins
50 rm -rf $RPM_BUILD_ROOT
53 if [ "$1" = "0" ]; then
55 rm -f %{_cachedir}/%{engine}/*.php
59 %defattr(644,root,root,755)
61 %{_enginedir}/%{engine}
62 %dir %attr(775,root,http) %{_cachedir}/%{engine}