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