]>
Commit | Line | Data |
---|---|---|
a6dc161d | 1 | %define subver 2013-10-28 |
b54d08c7 | 2 | %define ver %(echo %{subver} | tr -d -) |
5089b23b | 3 | #define snap 1 |
a6dc161d | 4 | %define rc_ 1 |
982e1b45 | 5 | %define php_min_version 5.2.4 |
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} |
a5bcfb9d | 11 | Release: 0.3 |
d73655e0 SP |
12 | License: GPL v2 |
13 | Group: Applications/WWW | |
a6dc161d ER |
14 | #Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-%{subver}.tgz |
15 | Source0: http://download.dokuwiki.org/src/dokuwiki/%{name}-rc%{subver}.tgz | |
16 | # Source0-md5: f476b54a3679d35cdd8746db57c9c6a3 | |
5089b23b | 17 | #Source0: http://github.com/splitbrain/dokuwiki/tarball/master/%{name}-%{subver}.tgz |
99646b81 ER |
18 | Source1: %{name}-apache.conf |
19 | Source2: %{name}-lighttpd.conf | |
89510765 | 20 | Source3: http://glen.alkohol.ee/pld/jude.png |
db16581c ER |
21 | # Source3-md5: 623344128960e18f86097dfee213ad4a |
22 | Source4: eventum.gif | |
dff16d0a ER |
23 | Source6: pld_button.png |
24 | # Source6-md5: 185afa921e81bd726b9f0f9f0909dc6e | |
00c44498 ER |
25 | Source7: cacti.gif |
26 | Source8: nagios.gif | |
a154f52b ER |
27 | Source9: http://trac.edgewall.org/export/9404/trunk/doc/trac_icon_16x16.png |
28 | # Source9-md5: 0c19ed35bf677f33f6bea14b3a8a2e10 | |
c4df8b0c | 29 | Source10: pld.gif |
89510765 ER |
30 | Source11: http://glen.alkohol.ee/pld/astah.png |
31 | # Source11-md5: b1c999e6988440c9e2af6a12e9a56451 | |
107aba6f | 32 | Patch66: %{name}-config.patch |
641b29cc | 33 | Patch0: %{name}-paths.patch |
1ea0db3c | 34 | Patch1: system-jquery.patch |
e527288b | 35 | Patch2: style-width.patch |
5b9dd552 | 36 | Patch3: undeprecate.patch |
48993817 | 37 | Patch4: %{name}-geshi.patch |
9e409dbc | 38 | Patch5: %{name}-http_auth-option.patch |
ff1d703f | 39 | Patch6: %{name}-nice_exit.patch |
e79c8784 | 40 | Patch8: %{name}-notify-respect-minor.patch |
aea2faa7 | 41 | Patch10: %{name}-mailtext.patch |
1bf63c70 | 42 | Patch11: %{name}-notifyns.patch |
e5ce8ca9 | 43 | Patch14: interwiki-outputonly.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 |
b87189d5 | 52 | URL: https://www.dokuwiki.org/ |
89510765 | 53 | BuildRequires: fslint |
067355f7 | 54 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
db16581c | 55 | BuildRequires: rpmbuild(macros) >= 1.520 |
d6cd357a ER |
56 | Requires: jquery >= 1.8 |
57 | #Requires: jquery >= 1.9.1 | |
1ea0db3c | 58 | Requires: jquery-cookie |
d6cd357a ER |
59 | #Requires: jquery-migrate |
60 | #Requires: jquery-ui >= 1.10.2 | |
61 | Requires: jquery-ui >= 1.8 | |
9e71cc6a | 62 | Requires: lessphp >= 0.3.9 |
1d8d77eb | 63 | Requires: php(core) >= %{php_min_version} |
204838be ER |
64 | Requires: php(session) |
65 | Requires: php(xml) | |
1807986d | 66 | Requires: php-geshi >= 1.0.7.19 |
2d6a5769 | 67 | Requires: php-seclib >= 0.3.5 |
c4df8b0c | 68 | Requires: php-simplepie >= 1.0.1 |
d73655e0 | 69 | Requires: webapps |
105a71ba | 70 | Requires: webserver(access) |
24a3d556 | 71 | Requires: webserver(alias) |
bd481dc8 | 72 | Requires: webserver(php) |
259e9b01 | 73 | Suggests: php-adldap >= 3.3.1 |
bd481dc8 | 74 | Suggests: php-gd |
58ad8de5 | 75 | Obsoletes: dokuwiki-plugin-jquery |
e527288b | 76 | Conflicts: dokuwiki-plugin-icalevents < 20120909 |
083e173b | 77 | # can use gz compression to store attic pages |
bd481dc8 | 78 | Suggests: php-zlib |
d73655e0 SP |
79 | BuildArch: noarch |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
81 | ||
82 | %define _webapps /etc/webapps | |
83 | %define _webapp %{name} | |
84 | %define _sysconfdir %{_webapps}/%{_webapp} | |
85 | %define _appdir %{_datadir}/%{_webapp} | |
881190a4 | 86 | %define _localstatedir /var/lib/%{name} |
566f6bd4 | 87 | %define _cachedir /var/cache/%{name} |
db16581c | 88 | %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot} |
d73655e0 | 89 | |
067355f7 | 90 | # bad depsolver |
44880f04 | 91 | %define _noautopear pear./usr/share/php/geshi.php pear./usr/share/php/adLDAP.php |
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 ER |
95 | |
96 | %define _noautoreq %{_noautophp} %{_noautopear} | |
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 |
5089b23b | 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 | |
136 | install -d data/pages/playground | |
137 | touch data/pages/playground/playground.txt | |
138 | %endif | |
641b29cc | 139 | %patch0 -p1 |
1ea0db3c | 140 | %patch1 -p1 |
e527288b | 141 | %patch2 -p1 |
5b9dd552 | 142 | %patch3 -p1 |
48993817 | 143 | %patch4 -p1 |
9e409dbc | 144 | %patch5 -p1 |
ff1d703f | 145 | %patch6 -p1 |
e79c8784 | 146 | %patch8 -p1 |
aea2faa7 | 147 | %patch10 -p1 |
43747012 | 148 | %patch11 -p1 |
e5ce8ca9 | 149 | %patch14 -p1 |
ae5a5f57 | 150 | %patch15 -p1 |
a3e2b241 ER |
151 | %patch19 -p1 |
152 | %patch20 -p1 | |
b38bd2f0 | 153 | %patch21 -p1 |
259e9b01 | 154 | %patch22 -p1 |
d056ce86 | 155 | %patch24 -p1 |
fff14908 | 156 | %patch25 -p1 |
9e71cc6a | 157 | %patch26 -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 |
4b73b5a6 ER |
177 | %{__rm} inc/geshi.php |
178 | %{__rm} -r inc/geshi | |
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 |
107aba6f | 193 | rm -rf lib/_fla |
566f6bd4 | 194 | rm -rf lib/plugins/testing |
5089b23b | 195 | rm -rf lib/plugins/config/_test |
107aba6f | 196 | |
abd065b9 ER |
197 | # use system packages |
198 | %{__rm} lib/scripts/jquery/update.sh | |
d6cd357a ER |
199 | %{__rm} lib/scripts/jquery/jquery-ui.js |
200 | %{__rm} lib/scripts/jquery/jquery-ui.min.js | |
abd065b9 | 201 | %{__rm} lib/scripts/jquery/jquery.cookie.js |
d6cd357a ER |
202 | %{__rm} lib/scripts/jquery/jquery.js |
203 | %{__rm} lib/scripts/jquery/jquery.min.js | |
204 | %{__rm} lib/scripts/jquery/jquery-migrate.js | |
205 | %{__rm} lib/scripts/jquery/jquery-migrate.min.js | |
206 | %{__rm} -r lib/scripts/jquery/jquery-ui-theme | |
abd065b9 | 207 | |
08b33253 | 208 | # cleanup backups after patching |
566f6bd4 | 209 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
08b33253 | 210 | |
107aba6f ER |
211 | %build |
212 | md5=$(md5sum -b conf/dokuwiki.php | awk '{print $1}') | |
213 | if ! grep $md5 install.php; then | |
af5aefcd | 214 | : update %{name}-config.patch -- it is outdated |
107aba6f ER |
215 | exit 1 |
216 | fi | |
217 | ||
d73655e0 SP |
218 | %install |
219 | rm -rf $RPM_BUILD_ROOT | |
566f6bd4 | 220 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{lang,plugin_lang},%{_localstatedir},%{_cachedir},%{_appdir}/{bin,inc,lib}} |
d73655e0 | 221 | |
84c485ca ER |
222 | # hardlink test |
223 | cp -al VERSION $RPM_BUILD_ROOT%{_appdir} 2>/dev/null && l=l | |
224 | ||
225 | cp -a$l *.php $RPM_BUILD_ROOT%{_appdir} | |
226 | cp -p$l VERSION $RPM_BUILD_ROOT%{_appdir} | |
227 | cp -a$l bin/* $RPM_BUILD_ROOT%{_appdir}/bin | |
228 | cp -a$l inc/* $RPM_BUILD_ROOT%{_appdir}/inc | |
229 | cp -a$l lib/* $RPM_BUILD_ROOT%{_appdir}/lib | |
230 | cp -a$l conf/* $RPM_BUILD_ROOT%{_sysconfdir} | |
231 | cp -a$l data/* $RPM_BUILD_ROOT%{_localstatedir} | |
a4053ed1 ER |
232 | touch $RPM_BUILD_ROOT%{_sysconfdir}/acronyms.local.conf |
233 | touch $RPM_BUILD_ROOT%{_sysconfdir}/entities.local.conf | |
234 | touch $RPM_BUILD_ROOT%{_sysconfdir}/interwiki.local.conf | |
7df7f76f | 235 | touch $RPM_BUILD_ROOT%{_sysconfdir}/license.local.php |
58ad8de5 | 236 | touch $RPM_BUILD_ROOT%{_sysconfdir}/plugins.local.php |
7df7f76f | 237 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.protected.php |
a4053ed1 ER |
238 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mime.local.conf |
239 | touch $RPM_BUILD_ROOT%{_sysconfdir}/smileys.local.conf | |
a5bcfb9d | 240 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userscript.js |
d6d39525 | 241 | touch $RPM_BUILD_ROOT%{_sysconfdir}/userstyle.css |
d73655e0 | 242 | |
2d01b400 | 243 | ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif |
84c485ca ER |
244 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/eventum.gif |
245 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/cacti.gif | |
246 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/nagios.gif | |
84c485ca ER |
247 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/trac.png |
248 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/pld.gif | |
89510765 | 249 | |
84c485ca ER |
250 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/jude.png |
251 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons/asta.png | |
89510765 | 252 | |
0e84e1c3 | 253 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_appdir}/lib/tpl/dokuwiki/images/button-pld.png |
2d01b400 | 254 | |
89510765 ER |
255 | # hardlink identical icons. |
256 | findup -m $RPM_BUILD_ROOT | |
257 | ||
12dbb5f0 ER |
258 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
259 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
260 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
261 | ||
fe631b5b | 262 | # find locales |
db16581c | 263 | %find_lang %{name}.lang |
fe631b5b | 264 | |
d73655e0 SP |
265 | %clean |
266 | rm -rf $RPM_BUILD_ROOT | |
267 | ||
641b29cc ER |
268 | %post setup |
269 | chmod 770 %{_sysconfdir} | |
58ad8de5 ER |
270 | chmod 660 %{_sysconfdir}/local.php |
271 | chmod 660 %{_sysconfdir}/plugins.local.php | |
641b29cc ER |
272 | |
273 | %postun setup | |
274 | if [ "$1" = "0" ]; then | |
1bf63c70 ER |
275 | if [ -f %{_sysconfdir}/dokuwiki.php ]; then |
276 | chmod 750 %{_sysconfdir} | |
58ad8de5 ER |
277 | chmod 640 %{_sysconfdir}/local.php |
278 | chmod 640 %{_sysconfdir}/plugins.local.php | |
1bf63c70 | 279 | fi |
641b29cc ER |
280 | fi |
281 | ||
d73655e0 SP |
282 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
283 | %webapp_register apache %{_webapp} | |
284 | ||
285 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
286 | %webapp_unregister apache %{_webapp} | |
287 | ||
288 | %triggerin -- apache < 2.2.0, apache-base | |
289 | %webapp_register httpd %{_webapp} | |
290 | ||
291 | %triggerun -- apache < 2.2.0, apache-base | |
292 | %webapp_unregister httpd %{_webapp} | |
293 | ||
99646b81 ER |
294 | %triggerin -- lighttpd |
295 | %webapp_register lighttpd %{_webapp} | |
296 | ||
297 | %triggerun -- lighttpd | |
298 | %webapp_unregister lighttpd %{_webapp} | |
299 | ||
881190a4 ER |
300 | %pretrans |
301 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
302 | mv -f %{_appdir}/data/* %{_localstatedir} | |
303 | rm -rf %{_appdir}/data | |
304 | fi | |
305 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
306 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
307 | rm -rf %{_appdir}/conf | |
308 | fi | |
566f6bd4 ER |
309 | if [ -d %{_localstatedir}/cache ]; then |
310 | rm -rf %{_localstatedir}/cache | |
311 | fi | |
881190a4 ER |
312 | exit 0 |
313 | ||
fe631b5b | 314 | %files -f %{name}.lang |
d73655e0 | 315 | %defattr(644,root,root,755) |
08b33253 | 316 | %doc README |
58ad8de5 | 317 | %dir %attr(750,root,http) %verify(not mode) %{_sysconfdir} |
d6b12d40 ER |
318 | %dir %attr(750,root,http) %{_sysconfdir}/lang |
319 | %dir %attr(750,root,http) %{_sysconfdir}/plugin_lang | |
d73655e0 SP |
320 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf |
321 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
99646b81 ER |
322 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
323 | ||
881190a4 | 324 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
566f6bd4 | 325 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.php |
7df7f76f | 326 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scheme.conf |
a4053ed1 | 327 | |
566f6bd4 | 328 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acl.auth.php |
a4053ed1 ER |
329 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.local.conf |
330 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.local.conf | |
331 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.local.conf | |
7df7f76f ER |
332 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/license.local.php |
333 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.protected.php | |
a4053ed1 ER |
334 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf |
335 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.local.conf | |
a5bcfb9d | 336 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userscript.js |
d6d39525 | 337 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userstyle.css |
566f6bd4 ER |
338 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/users.auth.php |
339 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php | |
340 | ||
1ea0db3c ER |
341 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/local.php |
342 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/plugins.local.php | |
2d01b400 | 343 | |
26e4ef5b | 344 | # use local.php, local.protected.php, etc for local changes |
a4053ed1 ER |
345 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
346 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
fc7417e4 | 347 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf |
a4053ed1 ER |
348 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/mime.conf |
349 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf | |
566f6bd4 | 350 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/wordblock.conf |
b9fff555 | 351 | |
26e4ef5b ER |
352 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php |
353 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/license.php | |
354 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/plugins.required.php | |
355 | ||
641b29cc | 356 | %dir %{_appdir} |
afdae6ca | 357 | %{_appdir}/VERSION |
fe631b5b ER |
358 | %{_appdir}/doku.php |
359 | %{_appdir}/feed.php | |
360 | %{_appdir}/index.php | |
641b29cc ER |
361 | %dir %{_appdir}/bin |
362 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
363 | %attr(755,root,root) %{_appdir}/bin/indexer.php | |
c4df8b0c | 364 | %attr(755,root,root) %{_appdir}/bin/render.php |
641b29cc | 365 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php |
4b73b5a6 | 366 | %attr(755,root,root) %{_appdir}/bin/striplangs.php |
fe631b5b ER |
367 | |
368 | %dir %{_appdir}/inc | |
369 | %{_appdir}/inc/*.php | |
883cc49a | 370 | %{_appdir}/inc/preload.php.dist |
fe631b5b ER |
371 | %{_appdir}/inc/parser |
372 | ||
373 | %dir %{_appdir}/lib | |
a8bc33b8 ER |
374 | # allow plugins dir permission change to allow installation of plugins from admin |
375 | # however does not work with rpm 4.5 | |
e527288b | 376 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins |
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 | |
383 | %{_appdir}/lib/plugins/authad/conf | |
384 | %dir %{_appdir}/lib/plugins/authldap | |
385 | %{_appdir}/lib/plugins/authldap/*.php | |
386 | %{_appdir}/lib/plugins/authldap/*.txt | |
387 | %{_appdir}/lib/plugins/authldap/conf | |
388 | %dir %{_appdir}/lib/plugins/authmysql | |
389 | %{_appdir}/lib/plugins/authmysql/*.php | |
390 | %{_appdir}/lib/plugins/authmysql/*.txt | |
391 | %{_appdir}/lib/plugins/authmysql/conf | |
392 | %{_appdir}/lib/plugins/authpgsql/*.php | |
393 | %{_appdir}/lib/plugins/authpgsql/conf | |
394 | %{_appdir}/lib/plugins/authpgsql/*.txt | |
395 | %dir %{_appdir}/lib/plugins/authpgsql | |
396 | %dir %{_appdir}/lib/plugins/authplain | |
397 | %{_appdir}/lib/plugins/authplain/*.php | |
398 | %{_appdir}/lib/plugins/authplain/*.txt | |
fe631b5b ER |
399 | %dir %{_appdir}/lib/plugins/config |
400 | %{_appdir}/lib/plugins/config/*.* | |
107aba6f | 401 | %{_appdir}/lib/plugins/config/images |
fe631b5b ER |
402 | %{_appdir}/lib/plugins/config/settings |
403 | %dir %{_appdir}/lib/plugins/plugin | |
404 | %{_appdir}/lib/plugins/plugin/*.* | |
107aba6f | 405 | %{_appdir}/lib/plugins/plugin/classes |
fe631b5b ER |
406 | %dir %{_appdir}/lib/plugins/revert |
407 | %{_appdir}/lib/plugins/revert/*.* | |
4b73b5a6 ER |
408 | %dir %{_appdir}/lib/plugins/safefnrecode |
409 | %{_appdir}/lib/plugins/safefnrecode/*.* | |
fe631b5b ER |
410 | %dir %{_appdir}/lib/plugins/usermanager |
411 | %{_appdir}/lib/plugins/usermanager/*.* | |
412 | %{_appdir}/lib/plugins/usermanager/images | |
4b73b5a6 ER |
413 | %dir %{_appdir}/lib/plugins/info |
414 | %{_appdir}/lib/plugins/info/*.* | |
08b33253 ER |
415 | %dir %{_appdir}/lib/plugins/popularity |
416 | %{_appdir}/lib/plugins/popularity/*.* | |
fe631b5b | 417 | %{_appdir}/lib/plugins/*.php |
5089b23b | 418 | |
fe631b5b ER |
419 | %{_appdir}/lib/images |
420 | %{_appdir}/lib/scripts | |
421 | %{_appdir}/lib/styles | |
422 | %{_appdir}/lib/tpl | |
423 | %{_appdir}/lib/exe | |
881190a4 ER |
424 | |
425 | %dir %attr(770,root,http) %{_localstatedir} | |
426 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
881190a4 ER |
427 | %dir %attr(770,root,http) %{_localstatedir}/index |
428 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
429 | %dir %attr(770,root,http) %{_localstatedir}/media | |
26e4ef5b ER |
430 | %dir %attr(770,root,http) %{_localstatedir}/media_attic |
431 | %dir %attr(770,root,http) %{_localstatedir}/media_meta | |
881190a4 ER |
432 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki |
433 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
434 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
af5aefcd | 435 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground |
881190a4 | 436 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki |
08b33253 | 437 | %dir %attr(770,root,http) %{_localstatedir}/tmp |
26e4ef5b | 438 | |
b9fff555 | 439 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png |
b9fff555 ER |
440 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt |
441 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
f40adff2 | 442 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt |
8e4e22ac | 443 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt |
c4df8b0c | 444 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/security.png |
641b29cc | 445 | |
566f6bd4 ER |
446 | %dir %attr(770,root,http) %{_cachedir} |
447 | ||
641b29cc ER |
448 | %files setup |
449 | %defattr(644,root,root,755) | |
450 | %{_appdir}/install.php |