]>
Commit | Line | Data |
---|---|---|
6ac84f0b | 1 | %define engine wgsmarty |
45f30de5 | 2 | Summary: Drupal wgSmarty theme engine |
a490e0c9 | 3 | Summary(pl.UTF-8): Silnik motywów Drupala wgSmarty |
6ac84f0b | 4 | Name: drupal-themeengine-%{engine} |
45f30de5 | 5 | Version: 4.6.001 |
79afeffa | 6 | Release: 0.3 |
45f30de5 ER |
7 | License: GPL v2 |
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 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
79afeffa ER |
18 | %define _drupaldir %{_datadir}/drupal |
19 | %define _enginedir %{_drupaldir}/themes/engines | |
20 | %define _cachedir /var/cache/drupal | |
45f30de5 ER |
21 | |
22 | %description | |
23 | wgSmarty is an implementation of the Smarty template engine as a theme | |
24 | engine. | |
25 | ||
7757390d JB |
26 | Advantages: |
27 | - Template files are easier to create and maintain then with | |
28 | PHPtemplate | |
45f30de5 ER |
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 | |
7757390d | 32 | existing Smarty theme engine |
45f30de5 | 33 | |
7757390d | 34 | Disadvantages: |
45f30de5 ER |
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 | |
38 | ||
ef325df9 JR |
39 | %description -l pl.UTF-8 |
40 | wgSmarty to implementacja silnika szablonów Smarty jako silnika | |
41 | motywów. | |
7757390d JB |
42 | |
43 | Zalety: | |
ef325df9 | 44 | - pliki szablonów są łatwiejsze do tworzenia i utrzymywania niż |
7757390d | 45 | PHPtemplate |
ef325df9 JR |
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 | |
7757390d | 48 | jak XTemplate |
ef325df9 JR |
49 | - wgSmarty jest dużo bliżej zintegrowany z Drupalem niż istniejący |
50 | silnik motywów Smarty | |
7757390d JB |
51 | |
52 | Wady: | |
ef325df9 JR |
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 | |
7757390d | 56 | |
45f30de5 | 57 | %prep |
6ac84f0b | 58 | %setup -q -n %{engine} |
45f30de5 ER |
59 | %patch0 -p1 |
60 | rm -f LICENSE.txt # GPL v2 | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
6ac84f0b | 64 | install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine},%{_cachedir}/%{engine}} |
45f30de5 | 65 | |
6ac84f0b ER |
66 | install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine} |
67 | cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{engine} | |
45f30de5 ER |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
6ac84f0b ER |
74 | %{_enginedir}/%{engine} |
75 | %dir %attr(775,root,http) %{_cachedir}/%{engine} |