]> git.pld-linux.org Git - packages/drupal-themeengine-smarty.git/blobdiff - drupal-themeengine-smarty.spec
- new tarball; fixed URL
[packages/drupal-themeengine-smarty.git] / drupal-themeengine-smarty.spec
index 193417e86be19078b90002a225bd582f6d66cac0..d1a66d83cca9a0f833faa351777a35b474e9fd3a 100644 (file)
@@ -1,22 +1,23 @@
-%define                modname smarty
+%define                engine smarty
 Summary:       Drupal Smarty theme engine
-Name:          drupal-themeengine-%{modname}
+Summary(pl):   Silnik motywów Drupala Smarty
+Name:          drupal-themeengine-%{engine}
 Version:       4.6.0
-Release:       0.3
-Epoch:         0
+Release:       0.13
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
-# Source0-md5: d5fe39d4861f7e59cabddb1bc0f28c56
+Source0:       http://drupal.org/files/projects/%{engine}-%{version}.tar.gz
+# Source0-md5: 6ed32c070c57d20c5568d9d0f85b533a
 Patch0:                %{name}-PLD.patch
-URL:           http://drupal.org/node/19248
-Requires:      Smarty >= 2.6.2
+URL:           http://drupal.org/node/13812
+Requires:      Smarty >= 2.6.10-4
 Requires:      drupal >= 4.6.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _enginedir                      %{_datadir}/drupal/themes/engines
-%define                _cachedir                       /var/cache/drupal
+%define                _drupaldir      %{_datadir}/drupal
+%define                _enginedir      %{_drupaldir}/themes/engines
+%define                _cachedir       /var/cache/drupal
 
 %description
 A theme engine that allows you to use template files written using
@@ -25,24 +26,37 @@ Smarty Template Engine syntax.
 The 'default' template for this engine is box_grey_smarty, which is
 ported from the original box_grey theme.
 
+%description -l pl
+Ten silnik motywów umo¿liwia u¿ywanie plików szablonów napisanych przy
+u¿yciu sk³adni silnika szablonów Smarty.
+
+"Domy¶lnym" szablonem dla tego silnika jest box_grey_smarty, który
+jest sportowany z oryginalnego motywu box_grey.
+
 %prep
-%setup -q -n %{modname}
+%setup -q -n %{engine}
 %patch0 -p1
 rm -f LICENSE.txt # GPL v2
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_enginedir}/%{modname}/plugins,%{_cachedir}/%{modname}}
+install -d $RPM_BUILD_ROOT{%{_enginedir}/%{engine}/plugins,%{_cachedir}/%{engine}}
 
-install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{modname}
-install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}
-install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}/plugins
+install *.tpl $RPM_BUILD_ROOT%{_enginedir}/%{engine}
+install *.engine *.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}
+install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{engine}/plugins
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%preun
+if [ "$1" = "0" ]; then
+       # nuke cache
+       rm -f %{_cachedir}/%{engine}/*.php
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc *.txt
-%{_enginedir}/%{modname}
-%dir %attr(775,root,http) %{_cachedir}/%{modname}
+%{_enginedir}/%{engine}
+%dir %attr(775,root,http) %{_cachedir}/%{engine}
This page took 0.063071 seconds and 4 git commands to generate.