1 %define themename box_grey_smarty
2 Summary: Drupal Theme Box_grey_smarty
3 Name: drupal-theme-%{themename}
8 Group: Applications/WWW
9 Source0: http://drupal.org/files/projects/%{themename}-%{version}.tar.gz
10 # Source0-md5: 5b6cf02791e36c7a9b97686c270dbd46
11 URL: http://drupal.org/node/13811
12 Requires: drupal >= 4.6.0
13 Requires: drupal-themeengine-smarty >= 4.6.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _themedir %{_datadir}/drupal/themes
18 %define _themehtmldir %{_datadir}/drupal/htdocs/themes
21 A port of the original box_grey theme for the Smarty template engine.
24 %setup -q -n %{themename}
25 rm -f LICENSE.txt # GPL v2
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT{%{_themehtmldir},%{_themedir}}/%{themename}
32 install *.{css,png} $RPM_BUILD_ROOT%{_themehtmldir}/%{themename}
33 install *.tpl $RPM_BUILD_ROOT%{_themedir}/%{themename}
34 ln -s ../../htdocs/themes/%{themename}/screenshot.png $RPM_BUILD_ROOT%{_themedir}/%{themename}
36 # theme style box_cleanslate_smarty
37 install -d $RPM_BUILD_ROOT{%{_themehtmldir}/%{themename}/box_cleanslate_smarty,%{_themedir}}/%{themename}}
38 install box_cleanslate_smarty/*.{css,png} $RPM_BUILD_ROOT%{_themehtmldir}/%{themename}/box_cleanslate_smarty
39 ln -s ../../htdocs/themes/%{themename}/box_cleanslate_smarty $RPM_BUILD_ROOT%{_themedir}/%{themename}/box_cleanslate_smarty
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %{_themedir}/%{themename}
48 %{_themehtmldir}/%{themename}