]> git.pld-linux.org Git - packages/drupal-themeengine-smarty.git/blob - drupal-themeengine-smarty.spec
6a6c2b9e8886223e3e1063b840cde35e88cdd6eb
[packages/drupal-themeengine-smarty.git] / drupal-themeengine-smarty.spec
1 %define         modname smarty
2 Summary:        Drupal Smarty theme engine
3 Name:           drupal-themeengine-%{modname}
4 Version:        4.6.0
5 Release:        0.9
6 Epoch:          0
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
10 # Source0-md5:  d5fe39d4861f7e59cabddb1bc0f28c56
11 Patch0:         %{name}-PLD.patch
12 URL:            http://drupal.org/node/19248
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 A theme engine that allows you to use template files written using
23 Smarty Template Engine syntax.
24
25 The 'default' template for this engine is box_grey_smarty, which is
26 ported from the original box_grey theme.
27
28 %prep
29 %setup -q -n %{modname}
30 %patch0 -p1
31 rm -f LICENSE.txt # GPL v2
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{modname}/plugins,%{_cachedir}/%{modname}}
36
37 install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{modname}
38 install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}
39 install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}/plugins
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %preun
45 if [ "$1" = "0" ]; then
46         # nuke cache
47         rm -f %{_cachedir}/%{modname}/*.php
48 fi
49
50 %files
51 %defattr(644,root,root,755)
52 %doc *.txt
53 %{_enginedir}/%{modname}
54 %dir %attr(775,root,http) %{_cachedir}/%{modname}
This page took 0.059266 seconds and 2 git commands to generate.