]> git.pld-linux.org Git - packages/drupal-themeengine-wgsmarty.git/blame - drupal-themeengine-wgsmarty.spec
- tabs in preamble
[packages/drupal-themeengine-wgsmarty.git] / drupal-themeengine-wgsmarty.spec
CommitLineData
6ac84f0b 1%define engine wgsmarty
45f30de5 2Summary: Drupal wgSmarty theme engine
a490e0c9 3Summary(pl.UTF-8): Silnik motywów Drupala wgSmarty
6ac84f0b 4Name: drupal-themeengine-%{engine}
45f30de5 5Version: 4.6.001
79afeffa 6Release: 0.3
45f30de5
ER
7License: GPL v2
8Group: Applications/WWW
9Source0: http://dl.sourceforge.net/webg8/wgsmarty-cvs.tar.gz
10# Source0-md5: bb289aa9808ff90f3fd3a85a34dbe0be
11Patch0: %{name}-PLD.patch
12URL: http://drupal.org/node/26897
13Requires: Smarty >= 2.6.2
14Requires: drupal >= 4.6.0
15BuildArch: noarch
16BuildRoot: %{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
23wgSmarty is an implementation of the Smarty template engine as a theme
24engine.
25
7757390d
JB
26Advantages:
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 34Disadvantages:
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
40wgSmarty to implementacja silnika szablonów Smarty jako silnika
41motywów.
7757390d
JB
42
43Zalety:
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
52Wady:
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
60rm -f LICENSE.txt # GPL v2
61
62%install
63rm -rf $RPM_BUILD_ROOT
6ac84f0b 64install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine},%{_cachedir}/%{engine}}
45f30de5 65
6ac84f0b
ER
66install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
67cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{engine}
45f30de5
ER
68
69%clean
70rm -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}
This page took 0.074632 seconds and 4 git commands to generate.