]> git.pld-linux.org Git - packages/drupal-theme-box_grey_smarty.git/blob - drupal-theme-box_grey_smarty.spec
cda7c1ef23ce03e7f97d890c2c0e165d15eb4db9
[packages/drupal-theme-box_grey_smarty.git] / drupal-theme-box_grey_smarty.spec
1 %define         themename box_grey_smarty
2 %define         _ver 4.6
3 Summary:        Drupal Theme Box_grey_smarty
4 Summary(pl.UTF-8):   Motyw Box_grey_smarty dla Drupala
5 Name:           drupal-theme-%{themename}
6 Version:        %{_ver}.0
7 Release:        0.9
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://drupal.org/files/projects/%{themename}-%{version}.tar.gz
11 # Source0-md5:  5b6cf02791e36c7a9b97686c270dbd46
12 URL:            http://drupal.org/node/13811
13 Requires:       drupal >= %{_ver}
14 Requires:       drupal-themeengine-smarty >= %{_ver}
15 Provides:       drupal(theme) = %{_ver}
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _drupaldir              %{_datadir}/drupal
20 %define         _htdocs                 %{_drupaldir}/htdocs
21 %define         _themedir               %{_drupaldir}/themes
22 %define         _themehtmldir   %{_htdocs}/themes
23 %define         _cachedir               /var/cache/drupal/smarty
24
25 %description
26 A port of the original box_grey theme for the Smarty template engine.
27
28 %description -l pl.UTF-8
29 Port oryginalnego motywu box_grey dla silnika szablonów Smarty.
30
31 %prep
32 %setup -q -n %{themename}
33 rm -f LICENSE.txt # GPL v2
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_themehtmldir},%{_themedir},%{_cachedir}}/%{themename}
38
39 # box_grey_smarty
40 install *.{css,png}  $RPM_BUILD_ROOT%{_themehtmldir}/%{themename}
41 install *.tpl $RPM_BUILD_ROOT%{_themedir}/%{themename}
42 ln -s ../../htdocs/themes/%{themename}/screenshot.png $RPM_BUILD_ROOT%{_themedir}/%{themename}
43
44 # theme style box_cleanslate_smarty
45 install -d $RPM_BUILD_ROOT{%{_themehtmldir}/%{themename}/box_cleanslate_smarty,%{_themedir}}/%{themename}}
46 install box_cleanslate_smarty/*.{css,png} $RPM_BUILD_ROOT%{_themehtmldir}/%{themename}/box_cleanslate_smarty
47 ln -s ../../htdocs/themes/%{themename}/box_cleanslate_smarty $RPM_BUILD_ROOT%{_themedir}/%{themename}/box_cleanslate_smarty
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 # nuke smarty cache. causes side effects on upgrade
54 rm -f %{_cachedir}/%{themename}/*.php
55
56 %preun
57 if [ "$1" = "0" ]; then
58         # kill cache to allow rpm remove the empty directory
59         rm -f %{_cachedir}/%{themename}/*.php
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc *.txt
65 %{_themedir}/%{themename}
66 %{_themehtmldir}/%{themename}
67 %dir %attr(770,root,http) %{_cachedir}/%{themename}
This page took 0.040376 seconds and 2 git commands to generate.