]> git.pld-linux.org Git - packages/drupal-themeengine-smarty.git/blob - drupal-themeengine-smarty.spec
- new tarball; fixed URL
[packages/drupal-themeengine-smarty.git] / drupal-themeengine-smarty.spec
1 %define         engine smarty
2 Summary:        Drupal Smarty theme engine
3 Summary(pl):    Silnik motywów Drupala Smarty
4 Name:           drupal-themeengine-%{engine}
5 Version:        4.6.0
6 Release:        0.13
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{engine}-%{version}.tar.gz
10 # Source0-md5:  6ed32c070c57d20c5568d9d0f85b533a
11 Patch0:         %{name}-PLD.patch
12 URL:            http://drupal.org/node/13812
13 Requires:       Smarty >= 2.6.10-4
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 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
29 %description -l pl
30 Ten silnik motywów umo¿liwia u¿ywanie plików szablonów napisanych przy
31 u¿yciu sk³adni silnika szablonów Smarty.
32
33 "Domy¶lnym" szablonem dla tego silnika jest box_grey_smarty, który
34 jest sportowany z oryginalnego motywu box_grey.
35
36 %prep
37 %setup -q -n %{engine}
38 %patch0 -p1
39 rm -f LICENSE.txt # GPL v2
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine}/plugins,%{_cachedir}/%{engine}}
44
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
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %preun
53 if [ "$1" = "0" ]; then
54         # nuke cache
55         rm -f %{_cachedir}/%{engine}/*.php
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %doc *.txt
61 %{_enginedir}/%{engine}
62 %dir %attr(775,root,http) %{_cachedir}/%{engine}
This page took 0.115523 seconds and 3 git commands to generate.