1 %define engine wgsmarty
2 Summary: Drupal wgSmarty theme engine
3 Summary(pl): Silnik motywów Drupala wgSmarty
4 Name: drupal-themeengine-%{engine}
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 _drupaldir %{_datadir}/drupal
19 %define _enginedir %{_drupaldir}/themes/engines
20 %define _cachedir /var/cache/drupal
23 wgSmarty is an implementation of the Smarty template engine as a theme
27 - Template files are easier to create and maintain then with
29 - Templates are compiled into PHP to avoid speed and memory issues
30 with search-and-replace template engines like XTemplate
31 - wgSmarty is much more closely integrated with Drupal than the
32 existing Smarty theme engine
35 - wgSmarty is currently experimental and is only available in CVS
36 - There is very little support for wgSmarty: even when it is released,
37 it will still be poorly supported in comparison with PHPTemplate
40 wgSmarty to implementacja silnika szablonów Smarty jako silnika
44 - pliki szablonów s± ³atwiejsze do tworzenia i utrzymywania ni¿
46 - szablony s± kompilowane do PHP, aby zapobiec problemom z szybko¶ci±
47 i pamiêci± z silnikami szablonów podmieniaj±cymi ³añcuchy, takimi
49 - wgSmarty jest du¿o bli¿ej zintegrowany z Drupalem ni¿ istniej±cy
53 - wgSmarty jest aktualnie eksperymentalny i dostêpny tylko w CVS-ie
54 - jest bardzo ma³e wsparcie dla wgSmarty: nawet kiedy zostanie wydany,
55 nadal bêdzie kiepsko wspierany w porównaniu do PHPTemplate
58 %setup -q -n %{engine}
60 rm -f LICENSE.txt # GPL v2
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine},%{_cachedir}/%{engine}}
66 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
67 cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{engine}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %{_enginedir}/%{engine}
75 %dir %attr(775,root,http) %{_cachedir}/%{engine}