]>
Commit | Line | Data |
---|---|---|
d73655e0 | 1 | Summary: PHP-based Wiki webapplication |
b9cde090 | 2 | Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP |
d73655e0 SP |
3 | Name: dokuwiki |
4 | Version: 20070626b | |
99646b81 | 5 | Release: 0.8 |
d73655e0 SP |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
8 | Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz | |
9 | # Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3 | |
99646b81 ER |
10 | Source1: %{name}-apache.conf |
11 | Source2: %{name}-lighttpd.conf | |
dcd487f1 | 12 | URL: http://wiki.splitbrain.org/wiki:dokuwiki |
d73655e0 SP |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires: webapps | |
24a3d556 | 15 | Requires: webserver(alias) |
d73655e0 SP |
16 | Requires: webserver(php) >= 4.0.6 |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _webapps /etc/webapps | |
21 | %define _webapp %{name} | |
22 | %define _sysconfdir %{_webapps}/%{_webapp} | |
23 | %define _appdir %{_datadir}/%{_webapp} | |
881190a4 | 24 | %define _localstatedir /var/lib/%{name} |
d73655e0 SP |
25 | |
26 | %description | |
27 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
28 | creating documentation of any kind. It is targeted at developer teams, | |
29 | workgroups and small companies. It has a simple but powerful syntax | |
30 | which makes sure the datafiles remain readable outside the Wiki and | |
31 | eases the creation of structured texts. All data is stored in plain | |
b9cde090 JB |
32 | text files - no database is required. |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
36 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
37 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
38 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
39 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
40 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
41 | nie jest wymagana baza danych. | |
d73655e0 SP |
42 | |
43 | %prep | |
44 | %setup -q -n %{name}-2007-06-26b | |
45 | ||
d73655e0 SP |
46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
881190a4 | 48 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_localstatedir}} |
d73655e0 SP |
49 | |
50 | cp -a *.php $RPM_BUILD_ROOT%{_appdir} | |
881190a4 ER |
51 | cp -a bin inc lib $RPM_BUILD_ROOT%{_appdir} |
52 | cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir} | |
53 | cp -a data/* $RPM_BUILD_ROOT%{_localstatedir} | |
54 | ln -s %{_localstatedir} $RPM_BUILD_ROOT%{_appdir}/data | |
55 | ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/conf | |
99646b81 ER |
56 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
57 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
58 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
d73655e0 SP |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %triggerin -- apache1 < 1.3.37-3, apache1-base | |
64 | %webapp_register apache %{_webapp} | |
65 | ||
66 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
67 | %webapp_unregister apache %{_webapp} | |
68 | ||
69 | %triggerin -- apache < 2.2.0, apache-base | |
70 | %webapp_register httpd %{_webapp} | |
71 | ||
72 | %triggerun -- apache < 2.2.0, apache-base | |
73 | %webapp_unregister httpd %{_webapp} | |
74 | ||
99646b81 ER |
75 | %triggerin -- lighttpd |
76 | %webapp_register lighttpd %{_webapp} | |
77 | ||
78 | %triggerun -- lighttpd | |
79 | %webapp_unregister lighttpd %{_webapp} | |
80 | ||
881190a4 ER |
81 | %pretrans |
82 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
83 | mv -f %{_appdir}/data/* %{_localstatedir} | |
84 | rm -rf %{_appdir}/data | |
85 | fi | |
86 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
87 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
88 | rm -rf %{_appdir}/conf | |
89 | fi | |
90 | exit 0 | |
91 | ||
d73655e0 SP |
92 | %files |
93 | %defattr(644,root,root,755) | |
881190a4 | 94 | %doc README VERSION |
d73655e0 SP |
95 | %dir %attr(750,root,http) %{_sysconfdir} |
96 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
97 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
99646b81 ER |
98 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
99 | ||
881190a4 ER |
100 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
101 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php | |
102 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
103 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf | |
881190a4 ER |
104 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
105 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf | |
106 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msg | |
881190a4 | 107 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf |
b9fff555 ER |
108 | |
109 | %attr(640,root,http) %{_sysconfdir}/mysql.conf.php.example | |
110 | %attr(640,root,http) %{_sysconfdir}/acl.auth.php.dist | |
111 | %attr(640,root,http) %{_sysconfdir}/wordblock.conf | |
112 | %attr(640,root,http) %{_sysconfdir}/local.php.dist | |
113 | %attr(640,root,http) %{_sysconfdir}/users.auth.php.dist | |
114 | %attr(640,root,http) %{_sysconfdir}/words.aspell.dist | |
881190a4 ER |
115 | |
116 | %{_appdir} | |
117 | ||
118 | %dir %attr(770,root,http) %{_localstatedir} | |
119 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
120 | %dir %attr(770,root,http) %{_localstatedir}/cache | |
121 | %dir %attr(770,root,http) %{_localstatedir}/index | |
122 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
123 | %dir %attr(770,root,http) %{_localstatedir}/media | |
124 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki | |
125 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
126 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
127 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground | |
128 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki | |
b9fff555 ER |
129 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/attic/_dummy |
130 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/cache/_dummy | |
131 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/index/_dummy | |
132 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/locks/_dummy | |
133 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png | |
134 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/meta/_dummy | |
135 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt | |
136 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt | |
137 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt |