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