]>
Commit | Line | Data |
---|---|---|
0ae1bb95 | 1 | %define subver 2017-02-19c |
b54d08c7 | 2 | %define ver %(echo %{subver} | tr -d -) |
5089b23b | 3 | #define snap 1 |
8b678166 | 4 | #define rc_ 1 |
94aee042 | 5 | %define php_min_version 5.3.3 |
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} |
aaf95edf | 11 | Release: 0.4 |
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 | |
16 | # Source0-md5: 324ae70a6322057604edc04b39c9b334 | |
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 |
e527288b | 37 | Patch2: style-width.patch |
48993817 | 38 | Patch4: %{name}-geshi.patch |
9e409dbc | 39 | Patch5: %{name}-http_auth-option.patch |
e79c8784 | 40 | Patch8: %{name}-notify-respect-minor.patch |
aea2faa7 | 41 | Patch10: %{name}-mailtext.patch |
1bf63c70 | 42 | Patch11: %{name}-notifyns.patch |
dff16d0a | 43 | Patch19: pld-branding.patch |
a3e2b241 | 44 | Patch20: fixprivilegeescalationbug.diff |
638afb06 | 45 | Patch21: task-1821.patch |
d056ce86 | 46 | Patch24: more-buttons.patch |
9e71cc6a | 47 | Patch26: system-lessphp.patch |
1813e16c | 48 | Patch27: iconsizes-dump.patch |
b87189d5 | 49 | URL: https://www.dokuwiki.org/ |
89510765 | 50 | BuildRequires: fslint |
067355f7 | 51 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
87424c97 | 52 | BuildRequires: rpmbuild(macros) >= 1.693 |
9e71cc6a | 53 | Requires: lessphp >= 0.3.9 |
1d8d77eb | 54 | Requires: php(core) >= %{php_min_version} |
204838be ER |
55 | Requires: php(session) |
56 | Requires: php(xml) | |
1807986d | 57 | Requires: php-geshi >= 1.0.7.19 |
2d6a5769 | 58 | Requires: php-seclib >= 0.3.5 |
c4df8b0c | 59 | Requires: php-simplepie >= 1.0.1 |
d73655e0 | 60 | Requires: webapps |
105a71ba | 61 | Requires: webserver(access) |
24a3d556 | 62 | Requires: webserver(alias) |
bd481dc8 | 63 | Requires: webserver(php) |
94aee042 | 64 | Suggests: php(gd) |
58ad8de5 | 65 | Obsoletes: dokuwiki-plugin-jquery |
09d97df3 | 66 | Conflicts: dokuwiki-plugin-gallery < 20161222 |
e527288b | 67 | Conflicts: dokuwiki-plugin-icalevents < 20120909 |
aaf95edf | 68 | Conflicts: dokuwiki-plugin-odt < 20170218 |
083e173b | 69 | # can use gz compression to store attic pages |
94aee042 | 70 | Suggests: php(zlib) |
d73655e0 SP |
71 | BuildArch: noarch |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
73 | ||
74 | %define _webapps /etc/webapps | |
75 | %define _webapp %{name} | |
76 | %define _sysconfdir %{_webapps}/%{_webapp} | |
77 | %define _appdir %{_datadir}/%{_webapp} | |
881190a4 | 78 | %define _localstatedir /var/lib/%{name} |
566f6bd4 | 79 | %define _cachedir /var/cache/%{name} |
db16581c | 80 | %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot} |
d73655e0 | 81 | |
a9f50810 | 82 | %define _noautoreq_pear /usr/share/php/geshi.php |
1807986d ER |
83 | |
84 | # exclude optional php dependencies | |
616a9f7a | 85 | %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 | 86 | |
570b5f0a | 87 | %define _noautoreq %{_noautophp} |
067355f7 | 88 | |
d73655e0 SP |
89 | %description |
90 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
91 | creating documentation of any kind. It is targeted at developer teams, | |
92 | workgroups and small companies. It has a simple but powerful syntax | |
93 | which makes sure the datafiles remain readable outside the Wiki and | |
94 | eases the creation of structured texts. All data is stored in plain | |
b9cde090 JB |
95 | text files - no database is required. |
96 | ||
97 | %description -l pl.UTF-8 | |
98 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
99 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
100 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
101 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
102 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
103 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
104 | nie jest wymagana baza danych. | |
d73655e0 | 105 | |
641b29cc | 106 | %package setup |
4c94baaa JB |
107 | Summary: DokuWiki setup package |
108 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji DokuWiki | |
641b29cc ER |
109 | Group: Applications/WWW |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description setup | |
4c94baaa | 113 | Install this package to configure initial DokuWiki installation. You |
641b29cc ER |
114 | should uninstall this package when you're done, as it considered |
115 | insecure to keep the setup files in place. | |
116 | ||
117 | %description setup -l pl.UTF-8 | |
4c94baaa | 118 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji DokuWiki |
641b29cc ER |
119 | po pierwszej instalacji. Potem należy go odinstalować, jako że |
120 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
121 | ||
d73655e0 | 122 | %prep |
38d46c46 | 123 | %setup -q -n %{name}-%{?rc_:rc}%{subver} %{?snap:-c} |
566f6bd4 ER |
124 | %if 0%{?snap:1} |
125 | mv *-dokuwiki-*/* . | |
126 | test -e VERSION || echo %{subver}-git > VERSION | |
566f6bd4 | 127 | %endif |
22e856fc ER |
128 | install -d data/pages/playground |
129 | test -e data/pages/playground/playground.txt || \ | |
130 | echo '====== PlayGround ======' > data/pages/playground/playground.txt | |
131 | ||
641b29cc | 132 | %patch0 -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 ER |
139 | %patch19 -p1 |
140 | %patch20 -p1 | |
b38bd2f0 | 141 | %patch21 -p1 |
d056ce86 | 142 | %patch24 -p1 |
9e71cc6a | 143 | %patch26 -p1 |
1813e16c | 144 | %patch27 -p1 |
d73655e0 | 145 | |
107aba6f ER |
146 | %patch66 -p1 |
147 | ||
566f6bd4 ER |
148 | # package as basenames, upgrade overwrite protected with .rpmnew |
149 | mv conf/local.php{.dist,} | |
150 | mv conf/acl.auth.php{.dist,} | |
151 | mv conf/users.auth.php{.dist,} | |
152 | mv conf/mysql.conf.php{.example,} | |
153 | ||
51769953 ER |
154 | find -name _dummy | xargs %{__rm} |
155 | %{__rm} lib/index.html lib/plugins/index.html lib/images/index.html | |
156 | %{__rm} {conf,inc,bin,data,inc/lang}/.htaccess | |
7df7f76f | 157 | |
566f6bd4 | 158 | # we just don't package deleted files, these get removed automatically on rpm upgrades |
4b73b5a6 | 159 | %{__rm} data/deleted.files |
58ad8de5 ER |
160 | # source for security.png |
161 | %{__rm} data/security.xcf | |
4b73b5a6 | 162 | |
73ba3035 ER |
163 | %{__rm} vendor/composer/installed.json |
164 | %{__rm} lib/scripts/jquery/update.sh | |
165 | ||
b3528e0c | 166 | # use system geshi package |
94aee042 ER |
167 | %{__rm} -r vendor/easybook/geshi |
168 | rmdir vendor/easybook | |
b3528e0c | 169 | |
ae5a5f57 | 170 | # use system simplepie package |
73ba3035 | 171 | #%{__rm} inc/SimplePie.php |
7df7f76f | 172 | |
9e71cc6a ER |
173 | # use system lessphp package |
174 | %{__rm} inc/lessc.inc.php | |
175 | ||
4b73b5a6 | 176 | # flash source on git tarballs |
566f6bd4 | 177 | rm -rf lib/plugins/testing |
38d46c46 | 178 | rm -rf lib/plugins/*/_test |
107aba6f | 179 | |
ed688b2c | 180 | # pagetools - tools for development |
c3ef2560 ER |
181 | %{__rm} -r lib/tpl/dokuwiki/images/pagetools |
182 | %{__rm} lib/tpl/dokuwiki/images/pagetools-build* | |
ed688b2c | 183 | |
08b33253 | 184 | # cleanup backups after patching |
566f6bd4 | 185 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
08b33253 | 186 | |
107aba6f ER |
187 | %build |
188 | md5=$(md5sum -b conf/dokuwiki.php | awk '{print $1}') | |
189 | if ! grep $md5 install.php; then | |
af5aefcd | 190 | : update %{name}-config.patch -- it is outdated |
107aba6f ER |
191 | exit 1 |
192 | fi | |
193 | ||
d73655e0 SP |
194 | %install |
195 | rm -rf $RPM_BUILD_ROOT | |
a1fe08cf | 196 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{lang,plugin_lang},%{_localstatedir},%{_cachedir},%{_appdir}} |
d73655e0 | 197 | |
84c485ca ER |
198 | # hardlink test |
199 | cp -al VERSION $RPM_BUILD_ROOT%{_appdir} 2>/dev/null && l=l | |
200 | ||
201 | cp -a$l *.php $RPM_BUILD_ROOT%{_appdir} | |
202 | cp -p$l VERSION $RPM_BUILD_ROOT%{_appdir} | |
a1fe08cf ER |
203 | cp -a$l bin $RPM_BUILD_ROOT%{_appdir} |
204 | cp -a$l inc $RPM_BUILD_ROOT%{_appdir} | |
205 | cp -a$l lib $RPM_BUILD_ROOT%{_appdir} | |
206 | cp -a$l vendor $RPM_BUILD_ROOT%{_appdir} | |
84c485ca ER |
207 | cp -a$l conf/* $RPM_BUILD_ROOT%{_sysconfdir} |
208 | cp -a$l data/* $RPM_BUILD_ROOT%{_localstatedir} | |
a4053ed1 ER |
209 | touch $RPM_BUILD_ROOT%{_sysconfdir}/acronyms.local.conf |
210 | touch $RPM_BUILD_ROOT%{_sysconfdir}/entities.local.conf | |
211 | touch $RPM_BUILD_ROOT%{_sysconfdir}/interwiki.local.conf | |
7df7f76f | 212 | touch $RPM_BUILD_ROOT%{_sysconfdir}/license.local.php |
58ad8de5 | 213 | touch $RPM_BUILD_ROOT%{_sysconfdir}/plugins.local.php |
7df7f76f | 214 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.protected.php |
a4053ed1 ER |
215 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mime.local.conf |
216 | touch $RPM_BUILD_ROOT%{_sysconfdir}/smileys.local.conf | |
a5bcfb9d | 217 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userscript.js |
d6d39525 | 218 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userstyle.css |
d73655e0 | 219 | |
94aee042 ER |
220 | # https://github.com/splitbrain/dokuwiki/pull/1247 |
221 | #ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif | |
84c485ca ER |
222 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/eventum.gif |
223 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/cacti.gif | |
224 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/nagios.gif | |
84c485ca ER |
225 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/trac.png |
226 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/pld.gif | |
94d29788 | 227 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/gitlab.png |
33faff2d | 228 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/jenkins.png |
89510765 | 229 | |
84c485ca ER |
230 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/jude.png |
231 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/asta.png | |
89510765 | 232 | |
0e84e1c3 | 233 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_appdir}/lib/tpl/dokuwiki/images/button-pld.png |
2d01b400 | 234 | |
89510765 ER |
235 | # hardlink identical icons. |
236 | findup -m $RPM_BUILD_ROOT | |
237 | ||
12dbb5f0 ER |
238 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
239 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
240 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
241 | ||
fe631b5b | 242 | # find locales |
db16581c | 243 | %find_lang %{name}.lang |
fe631b5b | 244 | |
d73655e0 SP |
245 | %clean |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
641b29cc ER |
248 | %post setup |
249 | chmod 770 %{_sysconfdir} | |
58ad8de5 ER |
250 | chmod 660 %{_sysconfdir}/local.php |
251 | chmod 660 %{_sysconfdir}/plugins.local.php | |
641b29cc ER |
252 | |
253 | %postun setup | |
254 | if [ "$1" = "0" ]; then | |
1bf63c70 ER |
255 | if [ -f %{_sysconfdir}/dokuwiki.php ]; then |
256 | chmod 750 %{_sysconfdir} | |
58ad8de5 ER |
257 | chmod 640 %{_sysconfdir}/local.php |
258 | chmod 640 %{_sysconfdir}/plugins.local.php | |
1bf63c70 | 259 | fi |
641b29cc ER |
260 | fi |
261 | ||
d73655e0 SP |
262 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
263 | %webapp_register apache %{_webapp} | |
264 | ||
265 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
266 | %webapp_unregister apache %{_webapp} | |
267 | ||
268 | %triggerin -- apache < 2.2.0, apache-base | |
269 | %webapp_register httpd %{_webapp} | |
270 | ||
271 | %triggerun -- apache < 2.2.0, apache-base | |
272 | %webapp_unregister httpd %{_webapp} | |
273 | ||
99646b81 ER |
274 | %triggerin -- lighttpd |
275 | %webapp_register lighttpd %{_webapp} | |
276 | ||
277 | %triggerun -- lighttpd | |
278 | %webapp_unregister lighttpd %{_webapp} | |
279 | ||
881190a4 ER |
280 | %pretrans |
281 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
282 | mv -f %{_appdir}/data/* %{_localstatedir} | |
283 | rm -rf %{_appdir}/data | |
284 | fi | |
285 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
286 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
287 | rm -rf %{_appdir}/conf | |
288 | fi | |
566f6bd4 ER |
289 | if [ -d %{_localstatedir}/cache ]; then |
290 | rm -rf %{_localstatedir}/cache | |
291 | fi | |
881190a4 ER |
292 | exit 0 |
293 | ||
fe631b5b | 294 | %files -f %{name}.lang |
d73655e0 | 295 | %defattr(644,root,root,755) |
08b33253 | 296 | %doc README |
58ad8de5 | 297 | %dir %attr(750,root,http) %verify(not mode) %{_sysconfdir} |
d6b12d40 ER |
298 | %dir %attr(750,root,http) %{_sysconfdir}/lang |
299 | %dir %attr(750,root,http) %{_sysconfdir}/plugin_lang | |
d73655e0 SP |
300 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf |
301 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
99646b81 ER |
302 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
303 | ||
881190a4 | 304 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
566f6bd4 | 305 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.php |
7df7f76f | 306 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scheme.conf |
a4053ed1 | 307 | |
566f6bd4 | 308 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acl.auth.php |
a4053ed1 ER |
309 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.local.conf |
310 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.local.conf | |
311 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.local.conf | |
7df7f76f ER |
312 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/license.local.php |
313 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.protected.php | |
a4053ed1 ER |
314 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf |
315 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.local.conf | |
a5bcfb9d | 316 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userscript.js |
d6d39525 | 317 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userstyle.css |
566f6bd4 ER |
318 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/users.auth.php |
319 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php | |
320 | ||
1ea0db3c ER |
321 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/local.php |
322 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/plugins.local.php | |
2d01b400 | 323 | |
26e4ef5b | 324 | # use local.php, local.protected.php, etc for local changes |
a4053ed1 ER |
325 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
326 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
fc7417e4 | 327 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf |
a4053ed1 ER |
328 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/mime.conf |
329 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf | |
566f6bd4 | 330 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/wordblock.conf |
b9fff555 | 331 | |
26e4ef5b ER |
332 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php |
333 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/license.php | |
334 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/plugins.required.php | |
335 | ||
641b29cc | 336 | %dir %{_appdir} |
afdae6ca | 337 | %{_appdir}/VERSION |
fe631b5b ER |
338 | %{_appdir}/doku.php |
339 | %{_appdir}/feed.php | |
340 | %{_appdir}/index.php | |
641b29cc ER |
341 | %dir %{_appdir}/bin |
342 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
87424c97 | 343 | %attr(755,root,root) %{_appdir}/bin/gittool.php |
641b29cc | 344 | %attr(755,root,root) %{_appdir}/bin/indexer.php |
c4df8b0c | 345 | %attr(755,root,root) %{_appdir}/bin/render.php |
4b73b5a6 | 346 | %attr(755,root,root) %{_appdir}/bin/striplangs.php |
87424c97 | 347 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php |
fe631b5b ER |
348 | |
349 | %dir %{_appdir}/inc | |
350 | %{_appdir}/inc/*.php | |
883cc49a | 351 | %{_appdir}/inc/preload.php.dist |
94aee042 | 352 | %{_appdir}/inc/Form |
73ba3035 | 353 | %{_appdir}/inc/Ui |
fe631b5b ER |
354 | %{_appdir}/inc/parser |
355 | ||
a1fe08cf ER |
356 | # composer generated vendor autoload |
357 | %dir %{_appdir}/vendor | |
358 | %{_appdir}/vendor/README | |
359 | %{_appdir}/vendor/autoload.php | |
360 | %{_appdir}/vendor/composer | |
361 | ||
362 | # bundled packages | |
73ba3035 | 363 | # verbose files to detect new addons |
a1fe08cf ER |
364 | %dir %{_appdir}/vendor/splitbrain |
365 | %{_appdir}/vendor/splitbrain/php-archive | |
366 | ||
73ba3035 ER |
367 | %dir %{_appdir}/vendor/paragonie |
368 | %{_appdir}/vendor/paragonie/random_compat | |
369 | ||
370 | %dir %{_appdir}/vendor/phpseclib | |
371 | %{_appdir}/vendor/phpseclib/phpseclib | |
372 | ||
373 | %dir %{_appdir}/vendor/simplepie | |
374 | %{_appdir}/vendor/simplepie/simplepie | |
375 | ||
fe631b5b | 376 | %dir %{_appdir}/lib |
a8bc33b8 ER |
377 | # allow plugins dir permission change to allow installation of plugins from admin |
378 | # however does not work with rpm 4.5 | |
e527288b | 379 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins |
94aee042 | 380 | |
87424c97 | 381 | %{_appdir}/lib/plugins/*.php |
fe631b5b ER |
382 | %dir %{_appdir}/lib/plugins/acl |
383 | %{_appdir}/lib/plugins/acl/*.* | |
08b33253 | 384 | %{_appdir}/lib/plugins/acl/pix |
abd065b9 ER |
385 | %dir %{_appdir}/lib/plugins/authad |
386 | %{_appdir}/lib/plugins/authad/*.php | |
387 | %{_appdir}/lib/plugins/authad/*.txt | |
a9f50810 | 388 | %{_appdir}/lib/plugins/authad/adLDAP |
abd065b9 ER |
389 | %{_appdir}/lib/plugins/authad/conf |
390 | %dir %{_appdir}/lib/plugins/authldap | |
391 | %{_appdir}/lib/plugins/authldap/*.php | |
392 | %{_appdir}/lib/plugins/authldap/*.txt | |
393 | %{_appdir}/lib/plugins/authldap/conf | |
394 | %dir %{_appdir}/lib/plugins/authmysql | |
395 | %{_appdir}/lib/plugins/authmysql/*.php | |
396 | %{_appdir}/lib/plugins/authmysql/*.txt | |
397 | %{_appdir}/lib/plugins/authmysql/conf | |
9f49b269 ER |
398 | %dir %{_appdir}/lib/plugins/authpdo |
399 | %{_appdir}/lib/plugins/authpdo/*.php | |
400 | %{_appdir}/lib/plugins/authpdo/*.txt | |
401 | %{_appdir}/lib/plugins/authpdo/README | |
402 | %{_appdir}/lib/plugins/authpdo/conf | |
abd065b9 ER |
403 | %{_appdir}/lib/plugins/authpgsql/*.php |
404 | %{_appdir}/lib/plugins/authpgsql/conf | |
405 | %{_appdir}/lib/plugins/authpgsql/*.txt | |
406 | %dir %{_appdir}/lib/plugins/authpgsql | |
407 | %dir %{_appdir}/lib/plugins/authplain | |
408 | %{_appdir}/lib/plugins/authplain/*.php | |
409 | %{_appdir}/lib/plugins/authplain/*.txt | |
fe631b5b ER |
410 | %dir %{_appdir}/lib/plugins/config |
411 | %{_appdir}/lib/plugins/config/*.* | |
107aba6f | 412 | %{_appdir}/lib/plugins/config/images |
fe631b5b | 413 | %{_appdir}/lib/plugins/config/settings |
87424c97 ER |
414 | %dir %{_appdir}/lib/plugins/extension |
415 | %{_appdir}/lib/plugins/extension/*.* | |
416 | %{_appdir}/lib/plugins/extension/helper | |
417 | %{_appdir}/lib/plugins/extension/images | |
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 |
b9fff555 ER |
464 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt |
465 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
f40adff2 | 466 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt |
8e4e22ac | 467 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt |
c4df8b0c | 468 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/security.png |
641b29cc | 469 | |
566f6bd4 ER |
470 | %dir %attr(770,root,http) %{_cachedir} |
471 | ||
641b29cc ER |
472 | %files setup |
473 | %defattr(644,root,root,755) | |
474 | %{_appdir}/install.php | |
73ba3035 ER |
475 | |
476 |