]>
Commit | Line | Data |
---|---|---|
1 | %define subver 2022-07-31a | |
2 | %define ver %(echo %{subver} | tr -d -) | |
3 | #define snap 1 | |
4 | #define rc_ 1 | |
5 | %define php_min_version 7.2 | |
6 | Summary: PHP-based Wiki webapplication | |
7 | Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP | |
8 | Name: dokuwiki | |
9 | Version: %{ver} | |
10 | Release: 1 | |
11 | License: GPL v2 | |
12 | Group: Applications/WWW | |
13 | # Source0Download: https://download.dokuwiki.org/archive | |
14 | Source0: https://download.dokuwiki.org/src/dokuwiki/%{name}-%{subver}.tgz | |
15 | # Source0-md5: 4459ea99e3a4ce2b767482f505724dcc | |
16 | Source1: %{name}-apache.conf | |
17 | Source2: %{name}-lighttpd.conf | |
18 | Source3: http://glen.alkohol.ee/pld/jude.png | |
19 | # Source3-md5: 623344128960e18f86097dfee213ad4a | |
20 | Source4: eventum.gif | |
21 | Source6: pld_button.png | |
22 | # Source6-md5: 185afa921e81bd726b9f0f9f0909dc6e | |
23 | Source7: cacti.gif | |
24 | Source8: nagios.gif | |
25 | Source9: http://trac.edgewall.org/export/9404/trunk/doc/trac_icon_16x16.png | |
26 | # Source9-md5: 0c19ed35bf677f33f6bea14b3a8a2e10 | |
27 | Source10: pld.gif | |
28 | Source11: http://glen.alkohol.ee/pld/astah.png | |
29 | # Source11-md5: b1c999e6988440c9e2af6a12e9a56451 | |
30 | Source12: gitlab.png | |
31 | # Source12-md5: 619cec6f2b083269b1ec9cd50d9e6ef2 | |
32 | Source13: http://mirrors.jenkins-ci.org/art/jenkins-logo/16x16/headshot.png?/jenkins.png | |
33 | # Source13-md5: ae892e4ca43ffab88f6e3dca951f3e8a | |
34 | Patch66: %{name}-config.patch | |
35 | Patch0: %{name}-paths.patch | |
36 | Patch1: autoload.patch | |
37 | Patch2: style-width.patch | |
38 | Patch5: %{name}-http_auth-option.patch | |
39 | Patch8: %{name}-notify-respect-minor.patch | |
40 | Patch10: %{name}-mailtext.patch | |
41 | Patch11: %{name}-notifyns.patch | |
42 | Patch19: pld-branding.patch | |
43 | Patch21: task-1821.patch | |
44 | Patch24: more-buttons.patch | |
45 | Patch27: iconsizes-dump.patch | |
46 | URL: https://www.dokuwiki.org/ | |
47 | BuildRequires: fslint | |
48 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
49 | BuildRequires: rpmbuild(find_lang) >= 1.41 | |
50 | BuildRequires: rpmbuild(macros) >= 1.693 | |
51 | Requires: php(core) >= %{php_min_version} | |
52 | Requires: php(session) | |
53 | Requires: php(xml) | |
54 | Requires: php-geshi >= 1.0.7.19 | |
55 | Requires: php-seclib >= 0.3.5 | |
56 | Requires: php-simplepie >= 1.0.1 | |
57 | Requires: webapps | |
58 | Requires: webserver(access) | |
59 | Requires: webserver(alias) | |
60 | Requires: webserver(php) | |
61 | Suggests: php(gd) | |
62 | Obsoletes: dokuwiki-plugin-jquery | |
63 | Obsoletes: dokuwiki-plugin-showlogin2 | |
64 | Conflicts: dokuwiki-plugin-gallery < 20161222 | |
65 | Conflicts: dokuwiki-plugin-icalevents < 20120909 | |
66 | Conflicts: dokuwiki-plugin-include < 20181129 | |
67 | Conflicts: dokuwiki-plugin-odt < 20170218 | |
68 | # can use gz compression to store attic pages | |
69 | Suggests: php(zlib) | |
70 | BuildArch: noarch | |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %define _webapps /etc/webapps | |
74 | %define _webapp %{name} | |
75 | %define _sysconfdir %{_webapps}/%{_webapp} | |
76 | %define _appdir %{_datadir}/%{_webapp} | |
77 | %define _localstatedir /var/lib/%{name} | |
78 | %define _cachedir /var/cache/%{name} | |
79 | ||
80 | %define _noautoreq_pear lib/byte_safe_strings.php lib/cast_to_int.php lib/error_polyfill.php lib/random.php other/ide_stubs/libsodium.php | |
81 | ||
82 | # exclude optional php dependencies | |
83 | %define _noautophp php-bzip2 php-bcmath php-zip php-date php-ftp php-hash php-ldap php-mbstring php-mysql php-pgsql php-tokenizer | |
84 | ||
85 | %define _noautoreq %{_noautophp} | |
86 | ||
87 | %description | |
88 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
89 | creating documentation of any kind. It is targeted at developer teams, | |
90 | workgroups and small companies. It has a simple but powerful syntax | |
91 | which makes sure the datafiles remain readable outside the Wiki and | |
92 | eases the creation of structured texts. All data is stored in plain | |
93 | text files - no database is required. | |
94 | ||
95 | %description -l pl.UTF-8 | |
96 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
97 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
98 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
99 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
100 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
101 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
102 | nie jest wymagana baza danych. | |
103 | ||
104 | %package setup | |
105 | Summary: DokuWiki setup package | |
106 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji DokuWiki | |
107 | Group: Applications/WWW | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description setup | |
111 | Install this package to configure initial DokuWiki installation. You | |
112 | should uninstall this package when you're done, as it considered | |
113 | insecure to keep the setup files in place. | |
114 | ||
115 | %description setup -l pl.UTF-8 | |
116 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji DokuWiki | |
117 | po pierwszej instalacji. Potem należy go odinstalować, jako że | |
118 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
119 | ||
120 | %prep | |
121 | %setup -q -n %{name}-%{?rc_:rc}%{subver} %{?snap:-c} | |
122 | %if 0%{?snap:1} | |
123 | mv *-dokuwiki-*/* . | |
124 | test -e VERSION || echo %{subver}-git > VERSION | |
125 | %endif | |
126 | install -d data/pages/playground | |
127 | test -e data/pages/playground/playground.txt || \ | |
128 | echo '====== PlayGround ======' > data/pages/playground/playground.txt | |
129 | ||
130 | %patch0 -p1 | |
131 | %patch1 -p1 | |
132 | %patch2 -p1 | |
133 | %patch5 -p1 | |
134 | %patch8 -p1 | |
135 | %patch10 -p1 | |
136 | %patch11 -p1 | |
137 | %patch19 -p1 | |
138 | #%patch21 -p1 | |
139 | #%patch24 -p1 | |
140 | %patch27 -p1 | |
141 | %patch66 -p1 | |
142 | ||
143 | # package as basenames, upgrade overwrite protected with .rpmnew | |
144 | mv conf/local.php{.dist,} | |
145 | mv conf/acl.auth.php{.dist,} | |
146 | mv conf/users.auth.php{.dist,} | |
147 | mv conf/mysql.conf.php{.example,} | |
148 | ||
149 | find -name _dummy | xargs %{__rm} | |
150 | %{__rm} lib/index.html lib/plugins/index.html lib/images/index.html | |
151 | %{__rm} {conf,inc,bin,data}/.htaccess | |
152 | %{__rm} vendor/.htaccess | |
153 | %{__rm} lib/plugins/styling/.travis.yml | |
154 | %{__rm} -r lib/plugins/testing | |
155 | %{__rm} -r lib/plugins/*/_test | |
156 | ||
157 | # we just don't package deleted files, these get removed automatically on rpm upgrades | |
158 | %{__rm} data/deleted.files | |
159 | # source for dont-panic-if-you-see-this-in-your-logs-it-means-your-directory-permissions-are-correct.png | |
160 | %{__rm} data/dont-panic-if-you-see-this-in-your-logs-it-means-your-directory-permissions-are-correct.xcf | |
161 | ||
162 | %{__rm} lib/scripts/jquery/update.sh | |
163 | ||
164 | # use system geshi package | |
165 | %{__rm} -r vendor/geshi/geshi | |
166 | install -d vendor/geshi/geshi/src | |
167 | %{__ln} -snf %{php_data_dir}/geshi.php vendor/geshi/geshi/src/geshi.php | |
168 | ||
169 | # use system simplepie package | |
170 | #%{__rm} inc/SimplePie.php | |
171 | ||
172 | # pagetools - tools for development | |
173 | %{__rm} -r lib/tpl/dokuwiki/images/pagetools | |
174 | %{__rm} lib/tpl/dokuwiki/images/pagetools-build* | |
175 | ||
176 | %{__sed} -i -e '1 s,#!.*php,#!/usr/bin/php,' bin/*.php | |
177 | ||
178 | # cleanup backups after patching | |
179 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{lang,plugin_lang},%{_localstatedir},%{_cachedir},%{_appdir}} | |
184 | ||
185 | # hardlink test | |
186 | cp -al VERSION $RPM_BUILD_ROOT%{_appdir} 2>/dev/null && l=l | |
187 | ||
188 | cp -a$l *.php $RPM_BUILD_ROOT%{_appdir} | |
189 | cp -p$l VERSION $RPM_BUILD_ROOT%{_appdir} | |
190 | cp -a$l bin $RPM_BUILD_ROOT%{_appdir} | |
191 | cp -a$l inc $RPM_BUILD_ROOT%{_appdir} | |
192 | cp -a$l lib $RPM_BUILD_ROOT%{_appdir} | |
193 | cp -a$l vendor $RPM_BUILD_ROOT%{_appdir} | |
194 | cp -a$l conf/* $RPM_BUILD_ROOT%{_sysconfdir} | |
195 | cp -a$l data/* $RPM_BUILD_ROOT%{_localstatedir} | |
196 | touch $RPM_BUILD_ROOT%{_sysconfdir}/acronyms.local.conf | |
197 | touch $RPM_BUILD_ROOT%{_sysconfdir}/entities.local.conf | |
198 | touch $RPM_BUILD_ROOT%{_sysconfdir}/interwiki.local.conf | |
199 | touch $RPM_BUILD_ROOT%{_sysconfdir}/license.local.php | |
200 | touch $RPM_BUILD_ROOT%{_sysconfdir}/plugins.local.php | |
201 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.protected.php | |
202 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mime.local.conf | |
203 | touch $RPM_BUILD_ROOT%{_sysconfdir}/smileys.local.conf | |
204 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userscript.js | |
205 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userstyle.css | |
206 | ||
207 | # https://github.com/splitbrain/dokuwiki/pull/1247 | |
208 | #ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif | |
209 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/eventum.gif | |
210 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/cacti.gif | |
211 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/nagios.gif | |
212 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/trac.png | |
213 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/pld.gif | |
214 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/gitlab.png | |
215 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/jenkins.png | |
216 | ||
217 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/jude.png | |
218 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/asta.png | |
219 | ||
220 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_appdir}/lib/tpl/dokuwiki/images/button-pld.png | |
221 | ||
222 | # hardlink identical icons. | |
223 | findup -m $RPM_BUILD_ROOT | |
224 | ||
225 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf | |
226 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
227 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
228 | ||
229 | # find locales | |
230 | %find_lang %{name}.lang --with-dokuwiki | |
231 | ||
232 | %clean | |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
235 | %post setup | |
236 | chmod 770 %{_sysconfdir} | |
237 | chmod 660 %{_sysconfdir}/local.php | |
238 | chmod 660 %{_sysconfdir}/plugins.local.php | |
239 | ||
240 | %postun setup | |
241 | if [ "$1" = "0" ]; then | |
242 | if [ -f %{_sysconfdir}/dokuwiki.php ]; then | |
243 | chmod 750 %{_sysconfdir} | |
244 | chmod 640 %{_sysconfdir}/local.php | |
245 | chmod 640 %{_sysconfdir}/plugins.local.php | |
246 | fi | |
247 | fi | |
248 | ||
249 | %triggerin -- apache1 < 1.3.37-3, apache1-base | |
250 | %webapp_register apache %{_webapp} | |
251 | ||
252 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
253 | %webapp_unregister apache %{_webapp} | |
254 | ||
255 | %triggerin -- apache < 2.2.0, apache-base | |
256 | %webapp_register httpd %{_webapp} | |
257 | ||
258 | %triggerun -- apache < 2.2.0, apache-base | |
259 | %webapp_unregister httpd %{_webapp} | |
260 | ||
261 | %triggerin -- lighttpd | |
262 | %webapp_register lighttpd %{_webapp} | |
263 | ||
264 | %triggerun -- lighttpd | |
265 | %webapp_unregister lighttpd %{_webapp} | |
266 | ||
267 | %pretrans | |
268 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
269 | mv -f %{_appdir}/data/* %{_localstatedir} | |
270 | rm -rf %{_appdir}/data | |
271 | fi | |
272 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
273 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
274 | rm -rf %{_appdir}/conf | |
275 | fi | |
276 | if [ -d %{_localstatedir}/cache ]; then | |
277 | rm -rf %{_localstatedir}/cache | |
278 | fi | |
279 | exit 0 | |
280 | ||
281 | %files -f %{name}.lang | |
282 | %defattr(644,root,root,755) | |
283 | %doc README | |
284 | %dir %attr(750,root,http) %verify(not mode) %{_sysconfdir} | |
285 | %dir %attr(750,root,http) %{_sysconfdir}/lang | |
286 | %dir %attr(750,root,http) %{_sysconfdir}/plugin_lang | |
287 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
288 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
289 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf | |
290 | ||
291 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php | |
292 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.php | |
293 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scheme.conf | |
294 | ||
295 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acl.auth.php | |
296 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.local.conf | |
297 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.local.conf | |
298 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.local.conf | |
299 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/license.local.php | |
300 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.protected.php | |
301 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf | |
302 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php | |
303 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.local.conf | |
304 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/users.auth.php | |
305 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userscript.js | |
306 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userstyle.css | |
307 | ||
308 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/local.php | |
309 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/plugins.local.php | |
310 | ||
311 | # use local.php, local.protected.php, etc for local changes | |
312 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf | |
313 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
314 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf | |
315 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/mime.conf | |
316 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf | |
317 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/wordblock.conf | |
318 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/manifest.json | |
319 | ||
320 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php | |
321 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/license.php | |
322 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/plugins.required.php | |
323 | ||
324 | %dir %{_appdir} | |
325 | %{_appdir}/VERSION | |
326 | %{_appdir}/doku.php | |
327 | %{_appdir}/feed.php | |
328 | %{_appdir}/index.php | |
329 | %dir %{_appdir}/bin | |
330 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
331 | %attr(755,root,root) %{_appdir}/bin/gittool.php | |
332 | %attr(755,root,root) %{_appdir}/bin/indexer.php | |
333 | %attr(755,root,root) %{_appdir}/bin/plugin.php | |
334 | %attr(755,root,root) %{_appdir}/bin/render.php | |
335 | %attr(755,root,root) %{_appdir}/bin/striplangs.php | |
336 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php | |
337 | ||
338 | %dir %{_appdir}/inc | |
339 | %{_appdir}/inc/*.php | |
340 | %{_appdir}/inc/preload.php.dist | |
341 | %{_appdir}/inc/Action | |
342 | %{_appdir}/inc/Cache | |
343 | %{_appdir}/inc/ChangeLog | |
344 | %{_appdir}/inc/Debug | |
345 | %{_appdir}/inc/Exception | |
346 | %{_appdir}/inc/Extension | |
347 | %{_appdir}/inc/File | |
348 | %{_appdir}/inc/Form | |
349 | %{_appdir}/inc/HTTP | |
350 | %{_appdir}/inc/Input | |
351 | %{_appdir}/inc/Menu | |
352 | %{_appdir}/inc/Parsing | |
353 | %{_appdir}/inc/Remote | |
354 | %{_appdir}/inc/Search | |
355 | %{_appdir}/inc/Sitemap | |
356 | %{_appdir}/inc/Subscriptions | |
357 | %{_appdir}/inc/Ui | |
358 | %{_appdir}/inc/Utf8 | |
359 | %{_appdir}/inc/parser | |
360 | ||
361 | # composer generated vendor autoload | |
362 | %dir %{_appdir}/vendor | |
363 | %{_appdir}/vendor/README | |
364 | %{_appdir}/vendor/autoload.php | |
365 | %{_appdir}/vendor/composer | |
366 | ||
367 | # bundled packages | |
368 | # verbose files to detect new addons | |
369 | %dir %{_appdir}/vendor/aziraphale | |
370 | %dir %{_appdir}/vendor/geshi | |
371 | %dir %{_appdir}/vendor/kissifrot | |
372 | %dir %{_appdir}/vendor/marcusschwarz | |
373 | %dir %{_appdir}/vendor/openpsa | |
374 | %dir %{_appdir}/vendor/phpseclib | |
375 | %dir %{_appdir}/vendor/simplepie | |
376 | %dir %{_appdir}/vendor/splitbrain | |
377 | %{_appdir}/vendor/aziraphale/email-address-validator | |
378 | %{_appdir}/vendor/geshi/geshi | |
379 | %{_appdir}/vendor/kissifrot/php-ixr | |
380 | %{_appdir}/vendor/marcusschwarz/lesserphp | |
381 | %{_appdir}/vendor/openpsa/universalfeedcreator | |
382 | %{_appdir}/vendor/phpseclib/phpseclib | |
383 | %{_appdir}/vendor/simplepie/simplepie | |
384 | %{_appdir}/vendor/splitbrain/php-archive | |
385 | %{_appdir}/vendor/splitbrain/php-cli | |
386 | %{_appdir}/vendor/splitbrain/slika | |
387 | ||
388 | %dir %{_appdir}/lib | |
389 | # allow plugins dir permission change to allow installation of plugins from admin | |
390 | # however does not work with rpm 4.5 | |
391 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins | |
392 | ||
393 | %{_appdir}/lib/plugins/*.php | |
394 | %dir %{_appdir}/lib/plugins/acl | |
395 | %{_appdir}/lib/plugins/acl/*.* | |
396 | %{_appdir}/lib/plugins/acl/pix | |
397 | %dir %{_appdir}/lib/plugins/authad | |
398 | %{_appdir}/lib/plugins/authad/*.php | |
399 | %{_appdir}/lib/plugins/authad/*.txt | |
400 | %{_appdir}/lib/plugins/authad/adLDAP | |
401 | %{_appdir}/lib/plugins/authad/conf | |
402 | %dir %{_appdir}/lib/plugins/authldap | |
403 | %{_appdir}/lib/plugins/authldap/*.php | |
404 | %{_appdir}/lib/plugins/authldap/*.txt | |
405 | %{_appdir}/lib/plugins/authldap/conf | |
406 | %dir %{_appdir}/lib/plugins/authpdo | |
407 | %{_appdir}/lib/plugins/authpdo/*.php | |
408 | %{_appdir}/lib/plugins/authpdo/*.txt | |
409 | %{_appdir}/lib/plugins/authpdo/README | |
410 | %{_appdir}/lib/plugins/authpdo/conf | |
411 | %dir %{_appdir}/lib/plugins/authplain | |
412 | %{_appdir}/lib/plugins/authplain/*.php | |
413 | %{_appdir}/lib/plugins/authplain/*.txt | |
414 | %dir %{_appdir}/lib/plugins/config | |
415 | %{_appdir}/lib/plugins/config/*.* | |
416 | %{_appdir}/lib/plugins/config/core | |
417 | %{_appdir}/lib/plugins/config/images | |
418 | %{_appdir}/lib/plugins/config/settings | |
419 | %dir %{_appdir}/lib/plugins/extension | |
420 | %{_appdir}/lib/plugins/extension/*.* | |
421 | %{_appdir}/lib/plugins/extension/helper | |
422 | %{_appdir}/lib/plugins/extension/images | |
423 | %dir %{_appdir}/lib/plugins/logviewer | |
424 | %{_appdir}/lib/plugins/logviewer/*.* | |
425 | %dir %{_appdir}/lib/plugins/revert | |
426 | %{_appdir}/lib/plugins/revert/*.* | |
427 | %dir %{_appdir}/lib/plugins/safefnrecode | |
428 | %{_appdir}/lib/plugins/safefnrecode/*.* | |
429 | %dir %{_appdir}/lib/plugins/usermanager | |
430 | %{_appdir}/lib/plugins/usermanager/*.* | |
431 | %{_appdir}/lib/plugins/usermanager/images | |
432 | %dir %{_appdir}/lib/plugins/info | |
433 | %{_appdir}/lib/plugins/info/*.* | |
434 | %dir %{_appdir}/lib/plugins/popularity | |
435 | %{_appdir}/lib/plugins/popularity/*.* | |
436 | %dir %{_appdir}/lib/plugins/styling | |
437 | %{_appdir}/lib/plugins/styling/README | |
438 | %{_appdir}/lib/plugins/styling/*.* | |
439 | ||
440 | %{_appdir}/lib/images | |
441 | %{_appdir}/lib/scripts | |
442 | %{_appdir}/lib/styles | |
443 | %{_appdir}/lib/exe | |
444 | ||
445 | %dir %{_appdir}/lib/tpl | |
446 | %{_appdir}/lib/tpl/index.php | |
447 | ||
448 | %dir %{_appdir}/lib/tpl/dokuwiki | |
449 | %{_appdir}/lib/tpl/dokuwiki/css | |
450 | %{_appdir}/lib/tpl/dokuwiki/images | |
451 | %{_appdir}/lib/tpl/dokuwiki/*.info.txt | |
452 | %{_appdir}/lib/tpl/dokuwiki/*.ini | |
453 | %{_appdir}/lib/tpl/dokuwiki/*.js | |
454 | %{_appdir}/lib/tpl/dokuwiki/*.php | |
455 | ||
456 | %dir %attr(770,root,http) %{_localstatedir} | |
457 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
458 | %dir %attr(770,root,http) %{_localstatedir}/index | |
459 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
460 | %dir %attr(770,root,http) %{_localstatedir}/media | |
461 | %dir %attr(770,root,http) %{_localstatedir}/media_attic | |
462 | %dir %attr(770,root,http) %{_localstatedir}/media_meta | |
463 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki | |
464 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
465 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
466 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground | |
467 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki | |
468 | %dir %attr(770,root,http) %{_localstatedir}/tmp | |
469 | ||
470 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png | |
471 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki.svg | |
472 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt | |
473 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
474 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt | |
475 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt | |
476 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/dont-panic-if-you-see-this-in-your-logs-it-means-your-directory-permissions-are-correct.png | |
477 | ||
478 | %dir %attr(770,root,http) %{_cachedir} | |
479 | ||
480 | %files setup | |
481 | %defattr(644,root,root,755) | |
482 | %{_appdir}/install.php |