]>
Commit | Line | Data |
---|---|---|
392eaabe | 1 | %define subver 2018-04-22a |
b54d08c7 | 2 | %define ver %(echo %{subver} | tr -d -) |
5089b23b | 3 | #define snap 1 |
8b678166 | 4 | #define rc_ 1 |
392eaabe | 5 | %define php_min_version 5.6.0 |
ffad6420 | 6 | %include /usr/lib/rpm/macros.php |
d73655e0 | 7 | Summary: PHP-based Wiki webapplication |
b9cde090 | 8 | Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP |
d73655e0 | 9 | Name: dokuwiki |
988b16db | 10 | Version: %{ver} |
a36a36f4 | 11 | Release: 1 |
d73655e0 SP |
12 | License: GPL v2 |
13 | Group: Applications/WWW | |
0ae1bb95 ER |
14 | # Source0Download: https://download.dokuwiki.org/archive |
15 | Source0: https://download.dokuwiki.org/src/dokuwiki/%{name}-%{subver}.tgz | |
392eaabe | 16 | # Source0-md5: 18765a29508f96f9882349a304bffc03 |
99646b81 ER |
17 | Source1: %{name}-apache.conf |
18 | Source2: %{name}-lighttpd.conf | |
89510765 | 19 | Source3: http://glen.alkohol.ee/pld/jude.png |
db16581c ER |
20 | # Source3-md5: 623344128960e18f86097dfee213ad4a |
21 | Source4: eventum.gif | |
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 |
392eaabe | 37 | Patch1: autoload.patch |
e527288b | 38 | Patch2: style-width.patch |
48993817 | 39 | Patch4: %{name}-geshi.patch |
9e409dbc | 40 | Patch5: %{name}-http_auth-option.patch |
e79c8784 | 41 | Patch8: %{name}-notify-respect-minor.patch |
aea2faa7 | 42 | Patch10: %{name}-mailtext.patch |
1bf63c70 | 43 | Patch11: %{name}-notifyns.patch |
dff16d0a | 44 | Patch19: pld-branding.patch |
638afb06 | 45 | Patch21: task-1821.patch |
d056ce86 | 46 | Patch24: more-buttons.patch |
1813e16c | 47 | Patch27: iconsizes-dump.patch |
b87189d5 | 48 | URL: https://www.dokuwiki.org/ |
89510765 | 49 | BuildRequires: fslint |
067355f7 | 50 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
87424c97 | 51 | BuildRequires: rpmbuild(macros) >= 1.693 |
1d8d77eb | 52 | Requires: php(core) >= %{php_min_version} |
204838be ER |
53 | Requires: php(session) |
54 | Requires: php(xml) | |
1807986d | 55 | Requires: php-geshi >= 1.0.7.19 |
2d6a5769 | 56 | Requires: php-seclib >= 0.3.5 |
c4df8b0c | 57 | Requires: php-simplepie >= 1.0.1 |
d73655e0 | 58 | Requires: webapps |
105a71ba | 59 | Requires: webserver(access) |
24a3d556 | 60 | Requires: webserver(alias) |
bd481dc8 | 61 | Requires: webserver(php) |
94aee042 | 62 | Suggests: php(gd) |
58ad8de5 | 63 | Obsoletes: dokuwiki-plugin-jquery |
fd683a66 | 64 | Obsoletes: dokuwiki-plugin-showlogin2 |
09d97df3 | 65 | Conflicts: dokuwiki-plugin-gallery < 20161222 |
e527288b | 66 | Conflicts: dokuwiki-plugin-icalevents < 20120909 |
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} |
db16581c | 79 | %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot} |
d73655e0 | 80 | |
3d0ad93b | 81 | %define _noautoreq_pear /usr/share/php/geshi.php lib/byte_safe_strings.php lib/cast_to_int.php lib/error_polyfill.php lib/random.php other/ide_stubs/libsodium.php |
1807986d ER |
82 | |
83 | # exclude optional php dependencies | |
616a9f7a | 84 | %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 | 85 | |
570b5f0a | 86 | %define _noautoreq %{_noautophp} |
067355f7 | 87 | |
d73655e0 SP |
88 | %description |
89 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
90 | creating documentation of any kind. It is targeted at developer teams, | |
91 | workgroups and small companies. It has a simple but powerful syntax | |
92 | which makes sure the datafiles remain readable outside the Wiki and | |
93 | eases the creation of structured texts. All data is stored in plain | |
b9cde090 JB |
94 | text files - no database is required. |
95 | ||
96 | %description -l pl.UTF-8 | |
97 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
98 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
99 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
100 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
101 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
102 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
103 | nie jest wymagana baza danych. | |
d73655e0 | 104 | |
641b29cc | 105 | %package setup |
4c94baaa JB |
106 | Summary: DokuWiki setup package |
107 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji DokuWiki | |
641b29cc ER |
108 | Group: Applications/WWW |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description setup | |
4c94baaa | 112 | Install this package to configure initial DokuWiki installation. You |
641b29cc ER |
113 | should uninstall this package when you're done, as it considered |
114 | insecure to keep the setup files in place. | |
115 | ||
116 | %description setup -l pl.UTF-8 | |
4c94baaa | 117 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji DokuWiki |
641b29cc ER |
118 | po pierwszej instalacji. Potem należy go odinstalować, jako że |
119 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
120 | ||
d73655e0 | 121 | %prep |
38d46c46 | 122 | %setup -q -n %{name}-%{?rc_:rc}%{subver} %{?snap:-c} |
566f6bd4 ER |
123 | %if 0%{?snap:1} |
124 | mv *-dokuwiki-*/* . | |
125 | test -e VERSION || echo %{subver}-git > VERSION | |
566f6bd4 | 126 | %endif |
22e856fc ER |
127 | install -d data/pages/playground |
128 | test -e data/pages/playground/playground.txt || \ | |
129 | echo '====== PlayGround ======' > data/pages/playground/playground.txt | |
130 | ||
641b29cc | 131 | %patch0 -p1 |
392eaabe | 132 | %patch1 -p1 |
e527288b | 133 | %patch2 -p1 |
48993817 | 134 | %patch4 -p1 |
9e409dbc | 135 | %patch5 -p1 |
e79c8784 | 136 | %patch8 -p1 |
aea2faa7 | 137 | %patch10 -p1 |
43747012 | 138 | %patch11 -p1 |
a3e2b241 | 139 | %patch19 -p1 |
b38bd2f0 | 140 | %patch21 -p1 |
392eaabe | 141 | #%patch24 -p1 |
1813e16c | 142 | %patch27 -p1 |
107aba6f ER |
143 | %patch66 -p1 |
144 | ||
566f6bd4 ER |
145 | # package as basenames, upgrade overwrite protected with .rpmnew |
146 | mv conf/local.php{.dist,} | |
147 | mv conf/acl.auth.php{.dist,} | |
148 | mv conf/users.auth.php{.dist,} | |
149 | mv conf/mysql.conf.php{.example,} | |
150 | ||
51769953 ER |
151 | find -name _dummy | xargs %{__rm} |
152 | %{__rm} lib/index.html lib/plugins/index.html lib/images/index.html | |
153 | %{__rm} {conf,inc,bin,data,inc/lang}/.htaccess | |
392eaabe | 154 | %{__rm} vendor/.htaccess |
7df7f76f | 155 | |
566f6bd4 | 156 | # we just don't package deleted files, these get removed automatically on rpm upgrades |
4b73b5a6 | 157 | %{__rm} data/deleted.files |
392eaabe ER |
158 | # source for dont-panic-if-you-see-this-in-your-logs-it-means-your-directory-permissions-are-correct.png |
159 | %{__rm} data/dont-panic-if-you-see-this-in-your-logs-it-means-your-directory-permissions-are-correct.xcf | |
4b73b5a6 | 160 | |
73ba3035 ER |
161 | %{__rm} lib/scripts/jquery/update.sh |
162 | ||
b3528e0c | 163 | # use system geshi package |
392eaabe ER |
164 | %{__rm} -r vendor/geshi/geshi |
165 | rmdir vendor/geshi | |
b3528e0c | 166 | |
ae5a5f57 | 167 | # use system simplepie package |
73ba3035 | 168 | #%{__rm} inc/SimplePie.php |
7df7f76f | 169 | |
4b73b5a6 | 170 | # flash source on git tarballs |
566f6bd4 | 171 | rm -rf lib/plugins/testing |
38d46c46 | 172 | rm -rf lib/plugins/*/_test |
107aba6f | 173 | |
ed688b2c | 174 | # pagetools - tools for development |
c3ef2560 ER |
175 | %{__rm} -r lib/tpl/dokuwiki/images/pagetools |
176 | %{__rm} lib/tpl/dokuwiki/images/pagetools-build* | |
ed688b2c | 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 |
db16581c | 230 | %find_lang %{name}.lang |
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 |
94aee042 | 342 | %{_appdir}/inc/Form |
392eaabe | 343 | %{_appdir}/inc/Menu |
73ba3035 | 344 | %{_appdir}/inc/Ui |
fe631b5b ER |
345 | %{_appdir}/inc/parser |
346 | ||
a1fe08cf ER |
347 | # composer generated vendor autoload |
348 | %dir %{_appdir}/vendor | |
349 | %{_appdir}/vendor/README | |
350 | %{_appdir}/vendor/autoload.php | |
351 | %{_appdir}/vendor/composer | |
352 | ||
353 | # bundled packages | |
73ba3035 | 354 | # verbose files to detect new addons |
392eaabe ER |
355 | %dir %{_appdir}/vendor/aziraphale |
356 | %dir %{_appdir}/vendor/marcusschwarz | |
357 | %dir %{_appdir}/vendor/openpsa | |
73ba3035 | 358 | %dir %{_appdir}/vendor/paragonie |
73ba3035 | 359 | %dir %{_appdir}/vendor/phpseclib |
73ba3035 | 360 | %dir %{_appdir}/vendor/simplepie |
392eaabe ER |
361 | %dir %{_appdir}/vendor/splitbrain |
362 | %{_appdir}/vendor/aziraphale/email-address-validator | |
363 | %{_appdir}/vendor/marcusschwarz/lesserphp | |
364 | %{_appdir}/vendor/openpsa/universalfeedcreator | |
365 | %{_appdir}/vendor/paragonie/random_compat | |
366 | %{_appdir}/vendor/phpseclib/phpseclib | |
73ba3035 | 367 | %{_appdir}/vendor/simplepie/simplepie |
392eaabe ER |
368 | %{_appdir}/vendor/splitbrain/php-archive |
369 | %{_appdir}/vendor/splitbrain/php-cli | |
73ba3035 | 370 | |
fe631b5b | 371 | %dir %{_appdir}/lib |
a8bc33b8 ER |
372 | # allow plugins dir permission change to allow installation of plugins from admin |
373 | # however does not work with rpm 4.5 | |
e527288b | 374 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins |
94aee042 | 375 | |
87424c97 | 376 | %{_appdir}/lib/plugins/*.php |
fe631b5b ER |
377 | %dir %{_appdir}/lib/plugins/acl |
378 | %{_appdir}/lib/plugins/acl/*.* | |
08b33253 | 379 | %{_appdir}/lib/plugins/acl/pix |
abd065b9 ER |
380 | %dir %{_appdir}/lib/plugins/authad |
381 | %{_appdir}/lib/plugins/authad/*.php | |
382 | %{_appdir}/lib/plugins/authad/*.txt | |
a9f50810 | 383 | %{_appdir}/lib/plugins/authad/adLDAP |
abd065b9 ER |
384 | %{_appdir}/lib/plugins/authad/conf |
385 | %dir %{_appdir}/lib/plugins/authldap | |
386 | %{_appdir}/lib/plugins/authldap/*.php | |
387 | %{_appdir}/lib/plugins/authldap/*.txt | |
388 | %{_appdir}/lib/plugins/authldap/conf | |
389 | %dir %{_appdir}/lib/plugins/authmysql | |
390 | %{_appdir}/lib/plugins/authmysql/*.php | |
391 | %{_appdir}/lib/plugins/authmysql/*.txt | |
392 | %{_appdir}/lib/plugins/authmysql/conf | |
9f49b269 ER |
393 | %dir %{_appdir}/lib/plugins/authpdo |
394 | %{_appdir}/lib/plugins/authpdo/*.php | |
395 | %{_appdir}/lib/plugins/authpdo/*.txt | |
396 | %{_appdir}/lib/plugins/authpdo/README | |
397 | %{_appdir}/lib/plugins/authpdo/conf | |
abd065b9 ER |
398 | %{_appdir}/lib/plugins/authpgsql/*.php |
399 | %{_appdir}/lib/plugins/authpgsql/conf | |
400 | %{_appdir}/lib/plugins/authpgsql/*.txt | |
401 | %dir %{_appdir}/lib/plugins/authpgsql | |
402 | %dir %{_appdir}/lib/plugins/authplain | |
403 | %{_appdir}/lib/plugins/authplain/*.php | |
404 | %{_appdir}/lib/plugins/authplain/*.txt | |
fe631b5b ER |
405 | %dir %{_appdir}/lib/plugins/config |
406 | %{_appdir}/lib/plugins/config/*.* | |
107aba6f | 407 | %{_appdir}/lib/plugins/config/images |
fe631b5b | 408 | %{_appdir}/lib/plugins/config/settings |
87424c97 ER |
409 | %dir %{_appdir}/lib/plugins/extension |
410 | %{_appdir}/lib/plugins/extension/*.* | |
411 | %{_appdir}/lib/plugins/extension/helper | |
412 | %{_appdir}/lib/plugins/extension/images | |
fe631b5b ER |
413 | %dir %{_appdir}/lib/plugins/revert |
414 | %{_appdir}/lib/plugins/revert/*.* | |
4b73b5a6 ER |
415 | %dir %{_appdir}/lib/plugins/safefnrecode |
416 | %{_appdir}/lib/plugins/safefnrecode/*.* | |
fe631b5b ER |
417 | %dir %{_appdir}/lib/plugins/usermanager |
418 | %{_appdir}/lib/plugins/usermanager/*.* | |
419 | %{_appdir}/lib/plugins/usermanager/images | |
4b73b5a6 ER |
420 | %dir %{_appdir}/lib/plugins/info |
421 | %{_appdir}/lib/plugins/info/*.* | |
08b33253 ER |
422 | %dir %{_appdir}/lib/plugins/popularity |
423 | %{_appdir}/lib/plugins/popularity/*.* | |
94aee042 ER |
424 | %dir %{_appdir}/lib/plugins/styling |
425 | %{_appdir}/lib/plugins/styling/README | |
426 | %{_appdir}/lib/plugins/styling/*.* | |
5089b23b | 427 | |
fe631b5b ER |
428 | %{_appdir}/lib/images |
429 | %{_appdir}/lib/scripts | |
430 | %{_appdir}/lib/styles | |
fe631b5b | 431 | %{_appdir}/lib/exe |
881190a4 | 432 | |
ed688b2c ER |
433 | %dir %{_appdir}/lib/tpl |
434 | %{_appdir}/lib/tpl/index.php | |
435 | ||
436 | %dir %{_appdir}/lib/tpl/dokuwiki | |
437 | %{_appdir}/lib/tpl/dokuwiki/css | |
438 | %{_appdir}/lib/tpl/dokuwiki/images | |
439 | %{_appdir}/lib/tpl/dokuwiki/*.info.txt | |
440 | %{_appdir}/lib/tpl/dokuwiki/*.ini | |
441 | %{_appdir}/lib/tpl/dokuwiki/*.js | |
442 | %{_appdir}/lib/tpl/dokuwiki/*.php | |
443 | ||
881190a4 ER |
444 | %dir %attr(770,root,http) %{_localstatedir} |
445 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
881190a4 ER |
446 | %dir %attr(770,root,http) %{_localstatedir}/index |
447 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
448 | %dir %attr(770,root,http) %{_localstatedir}/media | |
26e4ef5b ER |
449 | %dir %attr(770,root,http) %{_localstatedir}/media_attic |
450 | %dir %attr(770,root,http) %{_localstatedir}/media_meta | |
881190a4 ER |
451 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki |
452 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
453 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
af5aefcd | 454 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground |
881190a4 | 455 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki |
08b33253 | 456 | %dir %attr(770,root,http) %{_localstatedir}/tmp |
26e4ef5b | 457 | |
b9fff555 | 458 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png |
392eaabe | 459 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki.svg |
b9fff555 ER |
460 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt |
461 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
f40adff2 | 462 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt |
8e4e22ac | 463 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt |
392eaabe | 464 | %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 | 465 | |
566f6bd4 ER |
466 | %dir %attr(770,root,http) %{_cachedir} |
467 | ||
641b29cc ER |
468 | %files setup |
469 | %defattr(644,root,root,755) | |
470 | %{_appdir}/install.php |