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}
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
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokudir /usr/share/dokuwiki
18 %define tpldir %{dokudir}/lib/tpl/%{tpl}
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).
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.
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ą
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.
48 To activate this template add the following to your conf/local.php file:
49 $conf['template'] = '%{tpl}';
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)
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{tpldir}
59 cp -a minimalmobile/* $RPM_BUILD_ROOT%{tpldir}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)