]> git.pld-linux.org Git - packages/drupal-themeengine-wgsmarty.git/blob - drupal-themeengine-wgsmarty.spec
- unify macros
[packages/drupal-themeengine-wgsmarty.git] / drupal-themeengine-wgsmarty.spec
1 %define         engine wgsmarty
2 Summary:        Drupal wgSmarty theme engine
3 Summary(pl):    Silnik motywów Drupala wgSmarty
4 Name:           drupal-themeengine-%{engine}
5 Version:        4.6.001
6 Release:        0.3
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
18 %define         _drupaldir      %{_datadir}/drupal
19 %define         _enginedir      %{_drupaldir}/themes/engines
20 %define         _cachedir       /var/cache/drupal
21
22 %description
23 wgSmarty is an implementation of the Smarty template engine as a theme
24 engine.
25
26 Advantages:
27 - Template files are easier to create and maintain then with
28   PHPtemplate
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
33
34 Disadvantages:
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
39 %description -l pl
40 wgSmarty to implementacja silnika szablonów Smarty jako silnika
41 motywów.
42
43 Zalety:
44 - pliki szablonów s± ³atwiejsze do tworzenia i utrzymywania ni¿
45   PHPtemplate
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
48   jak XTemplate
49 - wgSmarty jest du¿o bli¿ej zintegrowany z Drupalem ni¿ istniej±cy
50   silnik motywów Smarty
51
52 Wady:
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
56
57 %prep
58 %setup -q -n %{engine}
59 %patch0 -p1
60 rm -f LICENSE.txt # GPL v2
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine},%{_cachedir}/%{engine}}
65
66 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
67 cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{engine}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %{_enginedir}/%{engine}
75 %dir %attr(775,root,http) %{_cachedir}/%{engine}
This page took 0.067981 seconds and 3 git commands to generate.