]>
Commit | Line | Data |
---|---|---|
79a8ec0f ER |
1 | %define themename box_grey_smarty |
2 | Summary: Drupal Theme Box_grey_smarty | |
c231407a | 3 | Name: drupal-theme-%{themename} |
79a8ec0f | 4 | Version: 4.6.0 |
567d07b2 | 5 | Release: 0.5 |
79a8ec0f ER |
6 | Epoch: 0 |
7 | License: GPL v2 | |
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 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _themedir %{_datadir}/drupal/themes | |
18 | %define _themehtmldir %{_datadir}/drupal/htdocs/themes | |
19 | ||
20 | %description | |
21 | A port of the original box_grey theme for the Smarty template engine. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{themename} | |
25 | rm -f LICENSE.txt # GPL v2 | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d $RPM_BUILD_ROOT{%{_themehtmldir},%{_themedir}}/%{themename} | |
30 | ||
31 | # box_grey_smarty | |
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} | |
35 | ||
567d07b2 ER |
36 | # theme style box_cleanslate_smarty |
37 | install -d $RPM_BUILD_ROOT{%{_themehtmldir}/%{themename}/box_cleanslate_smarty,%{_themedir}}/%{themename}} | |
79a8ec0f | 38 | install box_cleanslate_smarty/*.{css,png} $RPM_BUILD_ROOT%{_themehtmldir}/%{themename}/box_cleanslate_smarty |
567d07b2 | 39 | ln -s ../../htdocs/themes/%{themename}/box_cleanslate_smarty $RPM_BUILD_ROOT%{_themedir}/%{themename}/box_cleanslate_smarty |
79a8ec0f ER |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
c231407a | 43 | |
79a8ec0f ER |
44 | %files |
45 | %defattr(644,root,root,755) | |
46 | %doc *.txt | |
47 | %{_themedir}/%{themename} | |
48 | %{_themehtmldir}/%{themename} |