]>
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} |
71b06b0b | 11 | Release: 2 |
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 | |
71b06b0b | 32 | Patch100: git-fixes.patch |
107aba6f | 33 | Patch66: %{name}-config.patch |
641b29cc | 34 | Patch0: %{name}-paths.patch |
1ea0db3c | 35 | Patch1: system-jquery.patch |
e527288b | 36 | Patch2: style-width.patch |
5b9dd552 | 37 | Patch3: undeprecate.patch |
48993817 | 38 | Patch4: %{name}-geshi.patch |
9e409dbc | 39 | Patch5: %{name}-http_auth-option.patch |
ff1d703f | 40 | Patch6: %{name}-nice_exit.patch |
e79c8784 | 41 | Patch8: %{name}-notify-respect-minor.patch |
aea2faa7 | 42 | Patch10: %{name}-mailtext.patch |
1bf63c70 | 43 | Patch11: %{name}-notifyns.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 | |
71b06b0b | 137 | %patch100 -p1 |
641b29cc | 138 | %patch0 -p1 |
1ea0db3c | 139 | %patch1 -p1 |
e527288b | 140 | %patch2 -p1 |
5b9dd552 | 141 | %patch3 -p1 |
48993817 | 142 | %patch4 -p1 |
9e409dbc | 143 | %patch5 -p1 |
ff1d703f | 144 | %patch6 -p1 |
e79c8784 | 145 | %patch8 -p1 |
aea2faa7 | 146 | %patch10 -p1 |
43747012 | 147 | %patch11 -p1 |
e5ce8ca9 | 148 | %patch14 -p1 |
ae5a5f57 | 149 | %patch15 -p1 |
a3e2b241 ER |
150 | %patch19 -p1 |
151 | %patch20 -p1 | |
b38bd2f0 | 152 | %patch21 -p1 |
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 | ||
51769953 ER |
165 | find -name _dummy | xargs %{__rm} |
166 | %{__rm} lib/index.html lib/plugins/index.html lib/images/index.html | |
167 | %{__rm} {conf,inc,bin,data,inc/lang}/.htaccess | |
7df7f76f | 168 | |
566f6bd4 | 169 | # we just don't package deleted files, these get removed automatically on rpm upgrades |
4b73b5a6 | 170 | %{__rm} data/deleted.files |
58ad8de5 ER |
171 | # source for security.png |
172 | %{__rm} data/security.xcf | |
4b73b5a6 | 173 | |
b3528e0c | 174 | # use system geshi package |
4b73b5a6 ER |
175 | %{__rm} inc/geshi.php |
176 | %{__rm} -r inc/geshi | |
b3528e0c | 177 | |
259e9b01 | 178 | # use system adldap package |
5089b23b | 179 | %{__rm} -r lib/plugins/authad/adLDAP |
259e9b01 | 180 | |
ae5a5f57 | 181 | # use system simplepie package |
4b73b5a6 | 182 | %{__rm} inc/SimplePie.php |
7df7f76f | 183 | |
4b73b5a6 | 184 | # flash source on git tarballs |
107aba6f | 185 | rm -rf lib/_fla |
566f6bd4 | 186 | rm -rf lib/plugins/testing |
5089b23b | 187 | rm -rf lib/plugins/config/_test |
107aba6f | 188 | |
abd065b9 ER |
189 | # use system packages |
190 | %{__rm} lib/scripts/jquery/update.sh | |
d6cd357a ER |
191 | %{__rm} lib/scripts/jquery/jquery-ui.js |
192 | %{__rm} lib/scripts/jquery/jquery-ui.min.js | |
abd065b9 | 193 | %{__rm} lib/scripts/jquery/jquery.cookie.js |
d6cd357a ER |
194 | %{__rm} lib/scripts/jquery/jquery.js |
195 | %{__rm} lib/scripts/jquery/jquery.min.js | |
196 | %{__rm} lib/scripts/jquery/jquery-migrate.js | |
197 | %{__rm} lib/scripts/jquery/jquery-migrate.min.js | |
198 | %{__rm} -r lib/scripts/jquery/jquery-ui-theme | |
abd065b9 | 199 | |
08b33253 | 200 | # cleanup backups after patching |
566f6bd4 | 201 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
08b33253 | 202 | |
107aba6f ER |
203 | %build |
204 | md5=$(md5sum -b conf/dokuwiki.php | awk '{print $1}') | |
205 | if ! grep $md5 install.php; then | |
af5aefcd | 206 | : update %{name}-config.patch -- it is outdated |
107aba6f ER |
207 | exit 1 |
208 | fi | |
209 | ||
d73655e0 SP |
210 | %install |
211 | rm -rf $RPM_BUILD_ROOT | |
566f6bd4 | 212 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{lang,plugin_lang},%{_localstatedir},%{_cachedir},%{_appdir}/{bin,inc,lib}} |
d73655e0 | 213 | |
84c485ca ER |
214 | # hardlink test |
215 | cp -al VERSION $RPM_BUILD_ROOT%{_appdir} 2>/dev/null && l=l | |
216 | ||
217 | cp -a$l *.php $RPM_BUILD_ROOT%{_appdir} | |
218 | cp -p$l VERSION $RPM_BUILD_ROOT%{_appdir} | |
219 | cp -a$l bin/* $RPM_BUILD_ROOT%{_appdir}/bin | |
220 | cp -a$l inc/* $RPM_BUILD_ROOT%{_appdir}/inc | |
221 | cp -a$l lib/* $RPM_BUILD_ROOT%{_appdir}/lib | |
222 | cp -a$l conf/* $RPM_BUILD_ROOT%{_sysconfdir} | |
223 | cp -a$l data/* $RPM_BUILD_ROOT%{_localstatedir} | |
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 | ||
12dbb5f0 ER |
250 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
251 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
252 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
253 | ||
fe631b5b | 254 | # find locales |
db16581c | 255 | %find_lang %{name}.lang |
fe631b5b | 256 | |
d73655e0 SP |
257 | %clean |
258 | rm -rf $RPM_BUILD_ROOT | |
259 | ||
641b29cc ER |
260 | %post setup |
261 | chmod 770 %{_sysconfdir} | |
58ad8de5 ER |
262 | chmod 660 %{_sysconfdir}/local.php |
263 | chmod 660 %{_sysconfdir}/plugins.local.php | |
641b29cc ER |
264 | |
265 | %postun setup | |
266 | if [ "$1" = "0" ]; then | |
1bf63c70 ER |
267 | if [ -f %{_sysconfdir}/dokuwiki.php ]; then |
268 | chmod 750 %{_sysconfdir} | |
58ad8de5 ER |
269 | chmod 640 %{_sysconfdir}/local.php |
270 | chmod 640 %{_sysconfdir}/plugins.local.php | |
1bf63c70 | 271 | fi |
641b29cc ER |
272 | fi |
273 | ||
d73655e0 SP |
274 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
275 | %webapp_register apache %{_webapp} | |
276 | ||
277 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
278 | %webapp_unregister apache %{_webapp} | |
279 | ||
280 | %triggerin -- apache < 2.2.0, apache-base | |
281 | %webapp_register httpd %{_webapp} | |
282 | ||
283 | %triggerun -- apache < 2.2.0, apache-base | |
284 | %webapp_unregister httpd %{_webapp} | |
285 | ||
99646b81 ER |
286 | %triggerin -- lighttpd |
287 | %webapp_register lighttpd %{_webapp} | |
288 | ||
289 | %triggerun -- lighttpd | |
290 | %webapp_unregister lighttpd %{_webapp} | |
291 | ||
881190a4 ER |
292 | %pretrans |
293 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
294 | mv -f %{_appdir}/data/* %{_localstatedir} | |
295 | rm -rf %{_appdir}/data | |
296 | fi | |
297 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
298 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
299 | rm -rf %{_appdir}/conf | |
300 | fi | |
566f6bd4 ER |
301 | if [ -d %{_localstatedir}/cache ]; then |
302 | rm -rf %{_localstatedir}/cache | |
303 | fi | |
881190a4 ER |
304 | exit 0 |
305 | ||
fe631b5b | 306 | %files -f %{name}.lang |
d73655e0 | 307 | %defattr(644,root,root,755) |
08b33253 | 308 | %doc README |
58ad8de5 | 309 | %dir %attr(750,root,http) %verify(not mode) %{_sysconfdir} |
d6b12d40 ER |
310 | %dir %attr(750,root,http) %{_sysconfdir}/lang |
311 | %dir %attr(750,root,http) %{_sysconfdir}/plugin_lang | |
d73655e0 SP |
312 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf |
313 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
99646b81 ER |
314 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
315 | ||
881190a4 | 316 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
566f6bd4 | 317 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.php |
7df7f76f | 318 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scheme.conf |
a4053ed1 | 319 | |
566f6bd4 | 320 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acl.auth.php |
a4053ed1 ER |
321 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.local.conf |
322 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.local.conf | |
323 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.local.conf | |
7df7f76f ER |
324 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/license.local.php |
325 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.protected.php | |
a4053ed1 ER |
326 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf |
327 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.local.conf | |
d6d39525 | 328 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/userstyle.css |
566f6bd4 ER |
329 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/users.auth.php |
330 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php | |
331 | ||
1ea0db3c ER |
332 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/local.php |
333 | %attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/plugins.local.php | |
2d01b400 | 334 | |
26e4ef5b | 335 | # use local.php, local.protected.php, etc for local changes |
a4053ed1 ER |
336 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
337 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
fc7417e4 | 338 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf |
a4053ed1 ER |
339 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/mime.conf |
340 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf | |
566f6bd4 | 341 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/wordblock.conf |
b9fff555 | 342 | |
26e4ef5b ER |
343 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php |
344 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/license.php | |
345 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/plugins.required.php | |
346 | ||
641b29cc | 347 | %dir %{_appdir} |
afdae6ca | 348 | %{_appdir}/VERSION |
fe631b5b ER |
349 | %{_appdir}/doku.php |
350 | %{_appdir}/feed.php | |
351 | %{_appdir}/index.php | |
641b29cc ER |
352 | %dir %{_appdir}/bin |
353 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
354 | %attr(755,root,root) %{_appdir}/bin/indexer.php | |
c4df8b0c | 355 | %attr(755,root,root) %{_appdir}/bin/render.php |
641b29cc | 356 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php |
4b73b5a6 | 357 | %attr(755,root,root) %{_appdir}/bin/striplangs.php |
fe631b5b ER |
358 | |
359 | %dir %{_appdir}/inc | |
360 | %{_appdir}/inc/*.php | |
883cc49a | 361 | %{_appdir}/inc/preload.php.dist |
fe631b5b ER |
362 | %{_appdir}/inc/parser |
363 | ||
364 | %dir %{_appdir}/lib | |
a8bc33b8 ER |
365 | # allow plugins dir permission change to allow installation of plugins from admin |
366 | # however does not work with rpm 4.5 | |
e527288b | 367 | %dir %config %verify(not group mode) %{_appdir}/lib/plugins |
fe631b5b ER |
368 | %dir %{_appdir}/lib/plugins/acl |
369 | %{_appdir}/lib/plugins/acl/*.* | |
08b33253 | 370 | %{_appdir}/lib/plugins/acl/pix |
abd065b9 ER |
371 | %dir %{_appdir}/lib/plugins/authad |
372 | %{_appdir}/lib/plugins/authad/*.php | |
373 | %{_appdir}/lib/plugins/authad/*.txt | |
374 | %{_appdir}/lib/plugins/authad/conf | |
375 | %dir %{_appdir}/lib/plugins/authldap | |
376 | %{_appdir}/lib/plugins/authldap/*.php | |
377 | %{_appdir}/lib/plugins/authldap/*.txt | |
378 | %{_appdir}/lib/plugins/authldap/conf | |
379 | %dir %{_appdir}/lib/plugins/authmysql | |
380 | %{_appdir}/lib/plugins/authmysql/*.php | |
381 | %{_appdir}/lib/plugins/authmysql/*.txt | |
382 | %{_appdir}/lib/plugins/authmysql/conf | |
383 | %{_appdir}/lib/plugins/authpgsql/*.php | |
384 | %{_appdir}/lib/plugins/authpgsql/conf | |
385 | %{_appdir}/lib/plugins/authpgsql/*.txt | |
386 | %dir %{_appdir}/lib/plugins/authpgsql | |
387 | %dir %{_appdir}/lib/plugins/authplain | |
388 | %{_appdir}/lib/plugins/authplain/*.php | |
389 | %{_appdir}/lib/plugins/authplain/*.txt | |
fe631b5b ER |
390 | %dir %{_appdir}/lib/plugins/config |
391 | %{_appdir}/lib/plugins/config/*.* | |
107aba6f | 392 | %{_appdir}/lib/plugins/config/images |
fe631b5b ER |
393 | %{_appdir}/lib/plugins/config/settings |
394 | %dir %{_appdir}/lib/plugins/plugin | |
395 | %{_appdir}/lib/plugins/plugin/*.* | |
107aba6f | 396 | %{_appdir}/lib/plugins/plugin/classes |
fe631b5b ER |
397 | %dir %{_appdir}/lib/plugins/revert |
398 | %{_appdir}/lib/plugins/revert/*.* | |
4b73b5a6 ER |
399 | %dir %{_appdir}/lib/plugins/safefnrecode |
400 | %{_appdir}/lib/plugins/safefnrecode/*.* | |
fe631b5b ER |
401 | %dir %{_appdir}/lib/plugins/usermanager |
402 | %{_appdir}/lib/plugins/usermanager/*.* | |
403 | %{_appdir}/lib/plugins/usermanager/images | |
4b73b5a6 ER |
404 | %dir %{_appdir}/lib/plugins/info |
405 | %{_appdir}/lib/plugins/info/*.* | |
08b33253 ER |
406 | %dir %{_appdir}/lib/plugins/popularity |
407 | %{_appdir}/lib/plugins/popularity/*.* | |
fe631b5b | 408 | %{_appdir}/lib/plugins/*.php |
5089b23b | 409 | |
fe631b5b ER |
410 | %{_appdir}/lib/images |
411 | %{_appdir}/lib/scripts | |
412 | %{_appdir}/lib/styles | |
413 | %{_appdir}/lib/tpl | |
414 | %{_appdir}/lib/exe | |
881190a4 ER |
415 | |
416 | %dir %attr(770,root,http) %{_localstatedir} | |
417 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
881190a4 ER |
418 | %dir %attr(770,root,http) %{_localstatedir}/index |
419 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
420 | %dir %attr(770,root,http) %{_localstatedir}/media | |
26e4ef5b ER |
421 | %dir %attr(770,root,http) %{_localstatedir}/media_attic |
422 | %dir %attr(770,root,http) %{_localstatedir}/media_meta | |
881190a4 ER |
423 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki |
424 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
425 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
af5aefcd | 426 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground |
881190a4 | 427 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki |
08b33253 | 428 | %dir %attr(770,root,http) %{_localstatedir}/tmp |
26e4ef5b | 429 | |
b9fff555 | 430 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png |
b9fff555 ER |
431 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt |
432 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
f40adff2 | 433 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/welcome.txt |
8e4e22ac | 434 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt |
c4df8b0c | 435 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/security.png |
641b29cc | 436 | |
566f6bd4 ER |
437 | %dir %attr(770,root,http) %{_cachedir} |
438 | ||
641b29cc ER |
439 | %files setup |
440 | %defattr(644,root,root,755) | |
441 | %{_appdir}/install.php |