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