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