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