]> git.pld-linux.org Git - packages/dokuwiki-tpl-minimalmobile.git/blob - dokuwiki-tpl-minimalmobile.spec
- BR: unzip
[packages/dokuwiki-tpl-minimalmobile.git] / dokuwiki-tpl-minimalmobile.spec
1 %define         tpl     minimalmobile
2 Summary:        Minimal Mobile template for DokuWiki
3 Summary(pl.UTF-8):      Szablon Minimal Mobile dla DokuWiki
4 Name:           dokuwiki-tpl-%{tpl}
5 Version:        20070712
6 Release:        1
7 License:        GPL
8 Group:          Applications/WWW
9 Source0:        http://www.commitment.es/minimalmobile/minimalmobile.zip
10 # Source0-md5:  4be0786c41b63d9988e51aa51d659670
11 URL:            http://www.dokuwiki.org/template:minimal_mobile
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 BuildRequires:  unzip
14 Requires:       dokuwiki
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         dokuconf        /etc/webapps/dokuwiki
19 %define         dokudir         /usr/share/dokuwiki
20 %define         tpldir          %{dokudir}/lib/tpl/%{tpl}
21
22 %description
23 A very minimal template, with almost no margins, modified from the
24 default template. The image displays a "narrow browser", equivalent
25 to what a user can see in a mobile (albeit with lots of scrolling).
26
27 Features:
28 - Moved top bar and breadcrumbs to bottom
29 - Made most things small, and removed most padding and extra stuff
30 - Still fully functional
31 - Not pretty on big screen, but usable.
32
33 %description -l pl.UTF-8
34 Naprawdę minimalistyczny szablon, prawie bez marginesów, przerobiony
35 z szablonu domyślnego. Wyświetla "wąską przeglądarkę", odpowiadającą
36 temu, co użytkownik może zobaczyć w telefonie (tyle że z dużą ilością
37 przewijania).
38
39 Cechy szablonu:
40 - ma górny pasek i przyciski nawigacyjne przeniesione na dół
41 - jest wykonany ze zmniejszoną większością elementów i usuniętą
42   większością odstępów oraz elementów dodatkowych
43 - jest nadal w pełni funkcjonalny
44 - nie wygląda najpiękniej na dużym ekranie, ale jest używalny.
45
46 %prep
47 %setup -qc
48
49 cat > INSTALL <<'EOF'
50 To activate this template add the following to your conf/local.php file:
51 $conf['template']    = '%{tpl}';
52
53 Get rid of the TOC, that takes a lot of space in mobile screens.
54 $conf['toptoclevel'] = 0;  // Level starting with and below to include in AutoTOC (max. 5)
55 $conf['maxtoclevel'] = 0;  // Up to which level include into AutoTOC (max. 5)
56 EOF
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{tpldir}
61 cp -a minimalmobile/* $RPM_BUILD_ROOT%{tpldir}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 # force css cache refresh
68 if [ -f %{dokuconf}/local.php ]; then
69         touch %{dokuconf}/local.php
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc INSTALL
75 %{tpldir}
This page took 0.103555 seconds and 3 git commands to generate.