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