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