]> git.pld-linux.org Git - packages/drupal-themeengine-smarty.git/blame - drupal-themeengine-smarty.spec
- tabs in preamble
[packages/drupal-themeengine-smarty.git] / drupal-themeengine-smarty.spec
CommitLineData
2aa1b36b 1%define engine smarty
575afe04 2Summary: Drupal Smarty theme engine
3578fcf5 3Summary(pl.UTF-8): Silnik motywów Drupala Smarty
2aa1b36b 4Name: drupal-themeengine-%{engine}
575afe04 5Version: 4.6.0
8ec76539 6Release: 0.15
575afe04
ER
7License: GPL v2
8Group: Applications/WWW
2aa1b36b 9Source0: http://drupal.org/files/projects/%{engine}-%{version}.tar.gz
0b9f997b 10# Source0-md5: 6ed32c070c57d20c5568d9d0f85b533a
575afe04 11Patch0: %{name}-PLD.patch
018af71b 12URL: http://drupal.org/project/smarty
18ef28c2 13Requires: Smarty >= 2.6.10-4
575afe04
ER
14Requires: drupal >= 4.6.0
15BuildArch: noarch
16BuildRoot: %{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
23A theme engine that allows you to use template files written using
24Smarty Template Engine syntax.
25
26The 'default' template for this engine is box_grey_smarty, which is
27ported from the original box_grey theme.
28
17cac9b1
JR
29%description -l pl.UTF-8
30Ten silnik motywów umożliwia używanie plików szablonów napisanych przy
31uż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
34jest sportowany z oryginalnego motywu box_grey.
35
575afe04 36%prep
2aa1b36b 37%setup -q -n %{engine}
575afe04
ER
38%patch0 -p1
39rm -f LICENSE.txt # GPL v2
40
41%install
42rm -rf $RPM_BUILD_ROOT
8ec76539 43install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine}/plugins,%{_cachedir}/%{engine}/smarty}
575afe04 44
2aa1b36b
ER
45install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{engine}
46install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
47install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}/plugins
575afe04
ER
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
12bb0088
ER
52%preun
53if [ "$1" = "0" ]; then
54 # nuke cache
2aa1b36b 55 rm -f %{_cachedir}/%{engine}/*.php
8ec76539 56 rm -f %{_cachedir}/%{engine}/smarty/*.php
12bb0088
ER
57fi
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
This page took 0.037453 seconds and 4 git commands to generate.