]>
Commit | Line | Data |
---|---|---|
686c51ad | 1 | %define subver 2022-07-31a |
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} |
a36a36f4 | 10 | Release: 1 |
d73655e0 SP |
11 | License: GPL v2 |
12 | Group: Applications/WWW | |
0ae1bb95 ER |
13 | # Source0Download: https://download.dokuwiki.org/archive |
14 | Source0: https://download.dokuwiki.org/src/dokuwiki/%{name}-%{subver}.tgz | |
686c51ad | 15 | # Source0-md5: 4459ea99e3a4ce2b767482f505724dcc |
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 | |
dff16d0a ER |
21 | Source6: pld_button.png |
22 | # Source6-md5: 185afa921e81bd726b9f0f9f0909dc6e | |
00c44498 ER |
23 | Source7: cacti.gif |
24 | Source8: nagios.gif | |
a154f52b ER |
25 | Source9: http://trac.edgewall.org/export/9404/trunk/doc/trac_icon_16x16.png |
26 | # Source9-md5: 0c19ed35bf677f33f6bea14b3a8a2e10 | |
c4df8b0c | 27 | Source10: pld.gif |
89510765 ER |
28 | Source11: http://glen.alkohol.ee/pld/astah.png |
29 | # Source11-md5: b1c999e6988440c9e2af6a12e9a56451 | |
94d29788 ER |
30 | Source12: gitlab.png |
31 | # Source12-md5: 619cec6f2b083269b1ec9cd50d9e6ef2 | |
33faff2d ER |
32 | Source13: http://mirrors.jenkins-ci.org/art/jenkins-logo/16x16/headshot.png?/jenkins.png |
33 | # Source13-md5: ae892e4ca43ffab88f6e3dca951f3e8a | |
107aba6f | 34 | Patch66: %{name}-config.patch |
641b29cc | 35 | Patch0: %{name}-paths.patch |
392eaabe | 36 | Patch1: autoload.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 |
1bf63c70 | 41 | Patch11: %{name}-notifyns.patch |
dff16d0a | 42 | Patch19: pld-branding.patch |
638afb06 | 43 | Patch21: task-1821.patch |
d056ce86 | 44 | Patch24: more-buttons.patch |
1813e16c | 45 | Patch27: iconsizes-dump.patch |
b87189d5 | 46 | URL: https://www.dokuwiki.org/ |
89510765 | 47 | BuildRequires: fslint |
067355f7 | 48 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
f350088e | 49 | BuildRequires: rpmbuild(find_lang) >= 1.41 |
87424c97 | 50 | BuildRequires: rpmbuild(macros) >= 1.693 |
1d8d77eb | 51 | Requires: php(core) >= %{php_min_version} |
204838be ER |
52 | Requires: php(session) |
53 | Requires: php(xml) | |
1807986d | 54 | Requires: php-geshi >= 1.0.7.19 |
2d6a5769 | 55 | Requires: php-seclib >= 0.3.5 |
c4df8b0c | 56 | Requires: php-simplepie >= 1.0.1 |
d73655e0 | 57 | Requires: webapps |
105a71ba | 58 | Requires: webserver(access) |
24a3d556 | 59 | Requires: webserver(alias) |
bd481dc8 | 60 | Requires: webserver(php) |
94aee042 | 61 | Suggests: php(gd) |
58ad8de5 | 62 | Obsoletes: dokuwiki-plugin-jquery |
fd683a66 | 63 | Obsoletes: dokuwiki-plugin-showlogin2 |
09d97df3 | 64 | Conflicts: dokuwiki-plugin-gallery < 20161222 |
e527288b | 65 | Conflicts: dokuwiki-plugin-icalevents < 20120909 |
a4d744ba | 66 | Conflicts: dokuwiki-plugin-include < 20181129 |
aaf95edf | 67 | Conflicts: dokuwiki-plugin-odt < 20170218 |
083e173b | 68 | # can use gz compression to store attic pages |
94aee042 | 69 | Suggests: php(zlib) |
d73655e0 SP |
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} | |
881190a4 | 77 | %define _localstatedir /var/lib/%{name} |
566f6bd4 | 78 | %define _cachedir /var/cache/%{name} |
d73655e0 | 79 | |
597576a3 | 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 |
1807986d ER |
81 | |
82 | # exclude optional php dependencies | |
616a9f7a | 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 |
1807986d | 84 | |
570b5f0a | 85 | %define _noautoreq %{_noautophp} |
067355f7 | 86 | |
d73655e0 SP |
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 | |
b9cde090 JB |
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. | |
d73655e0 | 103 | |
641b29cc | 104 | %package setup |
4c94baaa JB |
105 | Summary: DokuWiki setup package |
106 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji DokuWiki | |
641b29cc ER |
107 | Group: Applications/WWW |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description setup | |
4c94baaa | 111 | Install this package to configure initial DokuWiki installation. You |
641b29cc ER |
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 | |
4c94baaa | 116 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji DokuWiki |
641b29cc ER |
117 | po pierwszej instalacji. Potem należy go odinstalować, jako że |
118 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
119 | ||
d73655e0 | 120 | %prep |
38d46c46 | 121 | %setup -q -n %{name}-%{?rc_:rc}%{subver} %{?snap:-c} |
566f6bd4 ER |
122 | %if 0%{?snap:1} |
123 | mv *-dokuwiki-*/* . | |
124 | test -e VERSION || echo %{subver}-git > VERSION | |
566f6bd4 | 125 | %endif |
22e856fc ER |
126 | install -d data/pages/playground |
127 | test -e data/pages/playground/playground.txt || \ | |
128 | echo '====== PlayGround ======' > data/pages/playground/playground.txt | |
129 | ||
641b29cc | 130 | %patch0 -p1 |
392eaabe | 131 | %patch1 -p1 |
e527288b | 132 | %patch2 -p1 |
9e409dbc | 133 | %patch5 -p1 |
e79c8784 | 134 | %patch8 -p1 |
aea2faa7 | 135 | %patch10 -p1 |
43747012 | 136 | %patch11 -p1 |
a3e2b241 | 137 | %patch19 -p1 |
686c51ad | 138 | #%patch21 -p1 |
392eaabe | 139 | #%patch24 -p1 |
1813e16c | 140 | %patch27 -p1 |
107aba6f ER |
141 | %patch66 -p1 |
142 | ||
566f6bd4 ER |
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 | ||
51769953 ER |
149 | find -name _dummy | xargs %{__rm} |
150 | %{__rm} lib/index.html lib/plugins/index.html lib/images/index.html | |
f350088e | 151 | %{__rm} {conf,inc,bin,data}/.htaccess |
392eaabe | 152 | %{__rm} vendor/.htaccess |
686c51ad ER |
153 | %{__rm} lib/plugins/styling/.travis.yml |
154 | %{__rm} -r lib/plugins/testing | |
155 | %{__rm} -r lib/plugins/*/_test | |
7df7f76f | 156 | |
566f6bd4 | 157 | # we just don't package deleted files, these get removed automatically on rpm upgrades |
4b73b5a6 | 158 | %{__rm} data/deleted.files |
392eaabe ER |
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 | |
4b73b5a6 | 161 | |
73ba3035 ER |
162 | %{__rm} lib/scripts/jquery/update.sh |
163 | ||
b3528e0c | 164 | # use system geshi package |
392eaabe | 165 | %{__rm} -r vendor/geshi/geshi |
597576a3 ER |
166 | install -d vendor/geshi/geshi/src |
167 | %{__ln} -snf %{php_data_dir}/geshi.php vendor/geshi/geshi/src/geshi.php | |
b3528e0c | 168 | |
ae5a5f57 | 169 | # use system simplepie package |
73ba3035 | 170 | #%{__rm} inc/SimplePie.php |
7df7f76f | 171 | |
ed688b2c | 172 | # pagetools - tools for development |
c3ef2560 ER |
173 | %{__rm} -r lib/tpl/dokuwiki/images/pagetools |
174 | %{__rm} lib/tpl/dokuwiki/images/pagetools-build* | |
ed688b2c | 175 | |
f350088e ER |
176 | %{__sed} -i -e '1 s,#!.*php,#!/usr/bin/php,' bin/*.php |
177 | ||
08b33253 | 178 | # cleanup backups after patching |
566f6bd4 | 179 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
08b33253 | 180 | |
d73655e0 SP |
181 | %install |
182 | rm -rf $RPM_BUILD_ROOT | |
a1fe08cf | 183 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{lang,plugin_lang},%{_localstatedir},%{_cachedir},%{_appdir}} |
d73655e0 | 184 | |
84c485ca ER |
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} | |
a1fe08cf ER |
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} | |
84c485ca ER |
194 | cp -a$l conf/* $RPM_BUILD_ROOT%{_sysconfdir} |
195 | cp -a$l data/* $RPM_BUILD_ROOT%{_localstatedir} | |
a4053ed1 ER |
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 | |
7df7f76f | 199 | touch $RPM_BUILD_ROOT%{_sysconfdir}/license.local.php |
58ad8de5 | 200 | touch $RPM_BUILD_ROOT%{_sysconfdir}/plugins.local.php |
7df7f76f | 201 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.protected.php |
a4053ed1 ER |
202 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mime.local.conf |
203 | touch $RPM_BUILD_ROOT%{_sysconfdir}/smileys.local.conf | |
a5bcfb9d | 204 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userscript.js |
d6d39525 | 205 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userstyle.css |
d73655e0 | 206 | |
94aee042 ER |
207 | # https://github.com/splitbrain/dokuwiki/pull/1247 |
208 | #ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif | |
84c485ca ER |
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 | |
84c485ca ER |
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 | |
94d29788 | 214 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/gitlab.png |
33faff2d | 215 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/jenkins.png |
89510765 | 216 | |
84c485ca ER |
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 | |
89510765 | 219 | |
0e84e1c3 | 220 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_appdir}/lib/tpl/dokuwiki/images/button-pld.png |
2d01b400 | 221 | |
89510765 ER |
222 | # hardlink identical icons. |
223 | findup -m $RPM_BUILD_ROOT | |
224 | ||
12dbb5f0 ER |
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 | ||
fe631b5b | 229 | # find locales |
c7e7429a | 230 | %find_lang %{name}.lang --with-dokuwiki |
fe631b5b | 231 | |
d73655e0 SP |
232 | %clean |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
641b29cc ER |
235 | %post setup |
236 | chmod 770 %{_sysconfdir} | |
58ad8de5 ER |
237 | chmod 660 %{_sysconfdir}/local.php |
238 | chmod 660 %{_sysconfdir}/plugins.local.php | |
641b29cc ER |
239 | |
240 | %postun setup | |
241 | if [ "$1" = "0" ]; then | |
1bf63c70 ER |
242 | if [ -f %{_sysconfdir}/dokuwiki.php ]; then |
243 | chmod 750 %{_sysconfdir} | |
58ad8de5 ER |
244 | chmod 640 %{_sysconfdir}/local.php |
245 | chmod 640 %{_sysconfdir}/plugins.local.php | |
1bf63c70 | 246 | fi |
641b29cc ER |
247 | fi |
248 | ||
d73655e0 SP |
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 | ||
99646b81 ER |
261 | %triggerin -- lighttpd |
262 | %webapp_register lighttpd %{_webapp} | |
263 | ||
264 | %triggerun -- lighttpd | |
265 | %webapp_unregister lighttpd %{_webapp} | |
266 | ||
881190a4 ER |
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 | |
566f6bd4 ER |
276 | if [ -d %{_localstatedir}/cache ]; then |
277 | rm -rf %{_localstatedir}/cache | |
278 | fi | |
881190a4 ER |
279 | exit 0 |
280 | ||
fe631b5b | 281 | %files -f %{name}.lang |
d73655e0 | 282 | %defattr(644,root,root,755) |
08b33253 | 283 | %doc README |
58ad8de5 | 284 | %dir %attr(750,root,http) %verify(not mode) %{_sysconfdir} |
d6b12d40 ER |
285 | %dir %attr(750,root,http) %{_sysconfdir}/lang |
286 | %dir %attr(750,root,http) %{_sysconfdir}/plugin_lang | |
d73655e0 SP |
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 | |
99646b81 ER |
289 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
290 | ||
881190a4 | 291 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
566f6bd4 | 292 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.php |
392eaabe | 293 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scheme.conf |
a4053ed1 | 294 | |
566f6bd4 | 295 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acl.auth.php |
a4053ed1 ER |
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 | |
7df7f76f ER |
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 | |
a4053ed1 | 301 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf |
392eaabe | 302 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php |
a4053ed1 | 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 |
a4053ed1 ER |
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 | |
fc7417e4 | 314 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf |
a4053ed1 ER |
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 | |
566f6bd4 | 317 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/wordblock.conf |
392eaabe | 318 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/manifest.json |
b9fff555 | 319 | |
26e4ef5b ER |
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 | ||
641b29cc | 324 | %dir %{_appdir} |
afdae6ca | 325 | %{_appdir}/VERSION |
fe631b5b ER |
326 | %{_appdir}/doku.php |
327 | %{_appdir}/feed.php | |
328 | %{_appdir}/index.php | |
641b29cc ER |
329 | %dir %{_appdir}/bin |
330 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
87424c97 | 331 | %attr(755,root,root) %{_appdir}/bin/gittool.php |
641b29cc | 332 | %attr(755,root,root) %{_appdir}/bin/indexer.php |
392eaabe | 333 | %attr(755,root,root) %{_appdir}/bin/plugin.php |
c4df8b0c | 334 | %attr(755,root,root) %{_appdir}/bin/render.php |
4b73b5a6 | 335 | %attr(755,root,root) %{_appdir}/bin/striplangs.php |
87424c97 | 336 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php |
fe631b5b ER |
337 | |
338 | %dir %{_appdir}/inc | |
339 | %{_appdir}/inc/*.php | |
883cc49a | 340 | %{_appdir}/inc/preload.php.dist |
392eaabe | 341 | %{_appdir}/inc/Action |
f350088e ER |
342 | %{_appdir}/inc/Cache |
343 | %{_appdir}/inc/ChangeLog | |
344 | %{_appdir}/inc/Debug | |
686c51ad | 345 | %{_appdir}/inc/Exception |
f350088e | 346 | %{_appdir}/inc/Extension |
686c51ad | 347 | %{_appdir}/inc/File |
94aee042 | 348 | %{_appdir}/inc/Form |
f350088e ER |
349 | %{_appdir}/inc/HTTP |
350 | %{_appdir}/inc/Input | |
392eaabe | 351 | %{_appdir}/inc/Menu |
f350088e ER |
352 | %{_appdir}/inc/Parsing |
353 | %{_appdir}/inc/Remote | |
354 | %{_appdir}/inc/Search | |
355 | %{_appdir}/inc/Sitemap | |
356 | %{_appdir}/inc/Subscriptions | |
73ba3035 | 357 | %{_appdir}/inc/Ui |
f350088e | 358 | %{_appdir}/inc/Utf8 |
fe631b5b ER |
359 | %{_appdir}/inc/parser |
360 | ||
a1fe08cf ER |
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 | |
73ba3035 | 368 | # verbose files to detect new addons |
392eaabe | 369 | %dir %{_appdir}/vendor/aziraphale |
597576a3 | 370 | %dir %{_appdir}/vendor/geshi |
686c51ad | 371 | %dir %{_appdir}/vendor/kissifrot |
392eaabe ER |
372 | %dir %{_appdir}/vendor/marcusschwarz |
373 | %dir %{_appdir}/vendor/openpsa | |
73ba3035 | 374 | %dir %{_appdir}/vendor/phpseclib |
73ba3035 | 375 | %dir %{_appdir}/vendor/simplepie |
392eaabe ER |
376 | %dir %{_appdir}/vendor/splitbrain |
377 | %{_appdir}/vendor/aziraphale/email-address-validator | |
597576a3 | 378 | %{_appdir}/vendor/geshi/geshi |
686c51ad | 379 | %{_appdir}/vendor/kissifrot/php-ixr |
392eaabe ER |
380 | %{_appdir}/vendor/marcusschwarz/lesserphp |
381 | %{_appdir}/vendor/openpsa/universalfeedcreator | |
392eaabe | 382 | %{_appdir}/vendor/phpseclib/phpseclib |
73ba3035 | 383 | %{_appdir}/vendor/simplepie/simplepie |
392eaabe ER |
384 | %{_appdir}/vendor/splitbrain/php-archive |
385 | %{_appdir}/vendor/splitbrain/php-cli | |
686c51ad | 386 | %{_appdir}/vendor/splitbrain/slika |
73ba3035 | 387 | |
fe631b5b | 388 | %dir %{_appdir}/lib |
a8bc33b8 ER |
389 | # allow plugins dir permission change to allow installation of plugins from admin |
390 | # however does not work with rpm 4.5 | |
e527288b | 391 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins |
94aee042 | 392 | |
87424c97 | 393 | %{_appdir}/lib/plugins/*.php |
fe631b5b ER |
394 | %dir %{_appdir}/lib/plugins/acl |
395 | %{_appdir}/lib/plugins/acl/*.* | |
08b33253 | 396 | %{_appdir}/lib/plugins/acl/pix |
abd065b9 ER |
397 | %dir %{_appdir}/lib/plugins/authad |
398 | %{_appdir}/lib/plugins/authad/*.php | |
399 | %{_appdir}/lib/plugins/authad/*.txt | |
a9f50810 | 400 | %{_appdir}/lib/plugins/authad/adLDAP |
abd065b9 ER |
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 | |
9f49b269 ER |
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 | |
abd065b9 ER |
411 | %dir %{_appdir}/lib/plugins/authplain |
412 | %{_appdir}/lib/plugins/authplain/*.php | |
413 | %{_appdir}/lib/plugins/authplain/*.txt | |
fe631b5b ER |
414 | %dir %{_appdir}/lib/plugins/config |
415 | %{_appdir}/lib/plugins/config/*.* | |
f350088e | 416 | %{_appdir}/lib/plugins/config/core |
107aba6f | 417 | %{_appdir}/lib/plugins/config/images |
fe631b5b | 418 | %{_appdir}/lib/plugins/config/settings |
87424c97 ER |
419 | %dir %{_appdir}/lib/plugins/extension |
420 | %{_appdir}/lib/plugins/extension/*.* | |
421 | %{_appdir}/lib/plugins/extension/helper | |
422 | %{_appdir}/lib/plugins/extension/images | |
686c51ad ER |
423 | %dir %{_appdir}/lib/plugins/logviewer |
424 | %{_appdir}/lib/plugins/logviewer/*.* | |
fe631b5b ER |
425 | %dir %{_appdir}/lib/plugins/revert |
426 | %{_appdir}/lib/plugins/revert/*.* | |
4b73b5a6 ER |
427 | %dir %{_appdir}/lib/plugins/safefnrecode |
428 | %{_appdir}/lib/plugins/safefnrecode/*.* | |
fe631b5b ER |
429 | %dir %{_appdir}/lib/plugins/usermanager |
430 | %{_appdir}/lib/plugins/usermanager/*.* | |
431 | %{_appdir}/lib/plugins/usermanager/images | |
4b73b5a6 ER |
432 | %dir %{_appdir}/lib/plugins/info |
433 | %{_appdir}/lib/plugins/info/*.* | |
08b33253 ER |
434 | %dir %{_appdir}/lib/plugins/popularity |
435 | %{_appdir}/lib/plugins/popularity/*.* | |
94aee042 ER |
436 | %dir %{_appdir}/lib/plugins/styling |
437 | %{_appdir}/lib/plugins/styling/README | |
438 | %{_appdir}/lib/plugins/styling/*.* | |
5089b23b | 439 | |
fe631b5b ER |
440 | %{_appdir}/lib/images |
441 | %{_appdir}/lib/scripts | |
442 | %{_appdir}/lib/styles | |
fe631b5b | 443 | %{_appdir}/lib/exe |
881190a4 | 444 | |
ed688b2c ER |
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 | ||
881190a4 ER |
456 | %dir %attr(770,root,http) %{_localstatedir} |
457 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
881190a4 ER |
458 | %dir %attr(770,root,http) %{_localstatedir}/index |
459 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
460 | %dir %attr(770,root,http) %{_localstatedir}/media | |
26e4ef5b ER |
461 | %dir %attr(770,root,http) %{_localstatedir}/media_attic |
462 | %dir %attr(770,root,http) %{_localstatedir}/media_meta | |
881190a4 ER |
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 | |
af5aefcd | 466 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground |
881190a4 | 467 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki |
08b33253 | 468 | %dir %attr(770,root,http) %{_localstatedir}/tmp |
26e4ef5b | 469 | |
b9fff555 | 470 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png |
392eaabe | 471 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki.svg |
b9fff555 ER |
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 | |
f40adff2 | 474 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt |
8e4e22ac | 475 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt |
392eaabe | 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 |
641b29cc | 477 | |
566f6bd4 ER |
478 | %dir %attr(770,root,http) %{_cachedir} |
479 | ||
641b29cc ER |
480 | %files setup |
481 | %defattr(644,root,root,755) | |
482 | %{_appdir}/install.php |