]> git.pld-linux.org Git - packages/drupal-themeengine-wgsmarty.git/blob - drupal-themeengine-wgsmarty.spec
3411e4fdd53fe8a92e6a6dd584d9a1da226a3ff4
[packages/drupal-themeengine-wgsmarty.git] / drupal-themeengine-wgsmarty.spec
1 %define         modname wgsmarty
2 Summary:        Drupal wgSmarty theme engine
3 Name:           drupal-themeengine-%{modname}
4 Version:        4.6.001
5 Release:        0.2
6 Epoch:          0
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         _enginedir                      %{_datadir}/drupal/themes/engines
19 %define         _cachedir                       /var/cache/drupal
20
21 %description
22 wgSmarty is an implementation of the Smarty template engine as a theme
23 engine.
24
25 Advantages
26 - Template files are easier to create and maintain then with PHPtemplate
27 - Templates are compiled into PHP to avoid speed and memory issues
28   with search-and-replace template engines like XTemplate
29 - wgSmarty is much more closely integrated with Drupal than the
30   existing smarty theme engine
31
32 Disadvantages
33 - wgSmarty is currently experimental and is only available in CVS
34 - There is very little support for wgSmarty: even when it is released,
35   it will still be poorly supported in comparison with PHPTemplate
36
37 %prep
38 %setup -q -n %{modname}
39 %patch0 -p1
40 rm -f LICENSE.txt # GPL v2
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{modname},%{_cachedir}/%{modname}}
45
46 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}
47 cp -a plugins templates $RPM_BUILD_ROOT%{_enginedir}/%{modname}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %{_enginedir}/%{modname}
55 %dir %attr(775,root,http) %{_cachedir}/%{modname}
This page took 0.041551 seconds and 2 git commands to generate.