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