]>
Commit | Line | Data |
---|---|---|
2aa1b36b | 1 | %define engine smarty |
575afe04 | 2 | Summary: Drupal Smarty theme engine |
3578fcf5 | 3 | Summary(pl.UTF-8): Silnik motywów Drupala Smarty |
2aa1b36b | 4 | Name: drupal-themeengine-%{engine} |
575afe04 | 5 | Version: 4.6.0 |
8ec76539 | 6 | Release: 0.15 |
575afe04 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
2aa1b36b | 9 | Source0: http://drupal.org/files/projects/%{engine}-%{version}.tar.gz |
0b9f997b | 10 | # Source0-md5: 6ed32c070c57d20c5568d9d0f85b533a |
575afe04 | 11 | Patch0: %{name}-PLD.patch |
018af71b | 12 | URL: http://drupal.org/project/smarty |
18ef28c2 | 13 | Requires: Smarty >= 2.6.10-4 |
575afe04 ER |
14 | Requires: drupal >= 4.6.0 |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
b52de213 ER |
18 | %define _drupaldir %{_datadir}/drupal |
19 | %define _enginedir %{_drupaldir}/themes/engines | |
20 | %define _cachedir /var/cache/drupal | |
575afe04 ER |
21 | |
22 | %description | |
23 | A theme engine that allows you to use template files written using | |
24 | Smarty Template Engine syntax. | |
25 | ||
26 | The 'default' template for this engine is box_grey_smarty, which is | |
27 | ported from the original box_grey theme. | |
28 | ||
17cac9b1 JR |
29 | %description -l pl.UTF-8 |
30 | Ten silnik motywów umożliwia używanie plików szablonów napisanych przy | |
31 | użyciu składni silnika szablonów Smarty. | |
0412be34 | 32 | |
17cac9b1 | 33 | "Domyślnym" szablonem dla tego silnika jest box_grey_smarty, który |
0412be34 JB |
34 | jest sportowany z oryginalnego motywu box_grey. |
35 | ||
575afe04 | 36 | %prep |
2aa1b36b | 37 | %setup -q -n %{engine} |
575afe04 ER |
38 | %patch0 -p1 |
39 | rm -f LICENSE.txt # GPL v2 | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
8ec76539 | 43 | install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine}/plugins,%{_cachedir}/%{engine}/smarty} |
575afe04 | 44 | |
2aa1b36b ER |
45 | install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{engine} |
46 | install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine} | |
47 | install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}/plugins | |
575afe04 ER |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
12bb0088 ER |
52 | %preun |
53 | if [ "$1" = "0" ]; then | |
54 | # nuke cache | |
2aa1b36b | 55 | rm -f %{_cachedir}/%{engine}/*.php |
8ec76539 | 56 | rm -f %{_cachedir}/%{engine}/smarty/*.php |
12bb0088 ER |
57 | fi |
58 | ||
575afe04 ER |
59 | %files |
60 | %defattr(644,root,root,755) | |
61 | %doc *.txt | |
2aa1b36b | 62 | %{_enginedir}/%{engine} |
8ec76539 ER |
63 | %dir %attr(770,root,http) %{_cachedir}/%{engine} |
64 | %dir %attr(770,root,http) %{_cachedir}/%{engine}/smarty |