]>
Commit | Line | Data |
---|---|---|
d73655e0 | 1 | Summary: PHP-based Wiki webapplication |
b9cde090 | 2 | Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP |
d73655e0 SP |
3 | Name: dokuwiki |
4 | Version: 20070626b | |
19f4a739 | 5 | Release: 0.33 |
d73655e0 SP |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
8 | Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz | |
9 | # Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3 | |
99646b81 ER |
10 | Source1: %{name}-apache.conf |
11 | Source2: %{name}-lighttpd.conf | |
1c3d3c8e | 12 | Source3: %{name}-find-lang.sh |
e8e5a964 ER |
13 | Source4: jude.png |
14 | # Source4-md5: 623344128960e18f86097dfee213ad4a | |
641b29cc ER |
15 | Patch0: %{name}-paths.patch |
16 | Patch1: %{name}-config.patch | |
59f818e0 | 17 | Patch2: %{name}-mysqlauth.patch |
0a785872 | 18 | Patch3: %{name}-config-allow-require.patch |
48993817 | 19 | Patch4: %{name}-geshi.patch |
9e409dbc | 20 | Patch5: %{name}-http_auth-option.patch |
ff1d703f | 21 | Patch6: %{name}-nice_exit.patch |
19f4a739 | 22 | Patch7: %{name}-mail-headerencodequotes.patch |
dcd487f1 | 23 | URL: http://wiki.splitbrain.org/wiki:dokuwiki |
d73655e0 | 24 | BuildRequires: rpmbuild(macros) >= 1.268 |
b3528e0c | 25 | Requires: geshi >= 1.0.7.19 |
394e97c5 | 26 | Requires: php(xml) |
d73655e0 | 27 | Requires: webapps |
24a3d556 | 28 | Requires: webserver(alias) |
5e55ff85 ER |
29 | Requires: webserver(php) >= 4.3.3 |
30 | Suggests: php(gd) | |
083e173b ER |
31 | # can use gz compression to store attic pages |
32 | Suggests: php(zlib) | |
d73655e0 SP |
33 | BuildArch: noarch |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %define _webapps /etc/webapps | |
37 | %define _webapp %{name} | |
38 | %define _sysconfdir %{_webapps}/%{_webapp} | |
39 | %define _appdir %{_datadir}/%{_webapp} | |
881190a4 | 40 | %define _localstatedir /var/lib/%{name} |
b3528e0c | 41 | %define _phpdir /usr/share/php |
d73655e0 SP |
42 | |
43 | %description | |
44 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
45 | creating documentation of any kind. It is targeted at developer teams, | |
46 | workgroups and small companies. It has a simple but powerful syntax | |
47 | which makes sure the datafiles remain readable outside the Wiki and | |
48 | eases the creation of structured texts. All data is stored in plain | |
b9cde090 JB |
49 | text files - no database is required. |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
53 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
54 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
55 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
56 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
57 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
58 | nie jest wymagana baza danych. | |
d73655e0 | 59 | |
641b29cc | 60 | %package setup |
4c94baaa JB |
61 | Summary: DokuWiki setup package |
62 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji DokuWiki | |
641b29cc ER |
63 | Group: Applications/WWW |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description setup | |
4c94baaa | 67 | Install this package to configure initial DokuWiki installation. You |
641b29cc ER |
68 | should uninstall this package when you're done, as it considered |
69 | insecure to keep the setup files in place. | |
70 | ||
71 | %description setup -l pl.UTF-8 | |
4c94baaa | 72 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji DokuWiki |
641b29cc ER |
73 | po pierwszej instalacji. Potem należy go odinstalować, jako że |
74 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
75 | ||
d73655e0 SP |
76 | %prep |
77 | %setup -q -n %{name}-2007-06-26b | |
641b29cc ER |
78 | %patch0 -p1 |
79 | %patch1 -p1 | |
59f818e0 | 80 | %patch2 -p1 |
0a785872 | 81 | %patch3 -p1 |
48993817 | 82 | %patch4 -p1 |
9e409dbc | 83 | %patch5 -p1 |
ff1d703f | 84 | %patch6 -p1 |
19f4a739 | 85 | %patch7 -p1 |
d73655e0 | 86 | |
fe631b5b | 87 | rm -f inc/lang/.htaccess |
2d01b400 ER |
88 | # safe file |
89 | mv conf/words.aspell{.dist,} | |
90 | ||
b3528e0c | 91 | # use system geshi package |
48993817 | 92 | rm -f inc/geshi.php |
b3528e0c ER |
93 | rm -rf inc/geshi |
94 | ||
d73655e0 SP |
95 | %install |
96 | rm -rf $RPM_BUILD_ROOT | |
641b29cc | 97 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_localstatedir},%{_appdir}/{bin,inc,lib}} |
d73655e0 SP |
98 | |
99 | cp -a *.php $RPM_BUILD_ROOT%{_appdir} | |
641b29cc ER |
100 | cp -a bin/* $RPM_BUILD_ROOT%{_appdir}/bin |
101 | cp -a inc/* $RPM_BUILD_ROOT%{_appdir}/inc | |
102 | cp -a lib/* $RPM_BUILD_ROOT%{_appdir}/lib | |
881190a4 ER |
103 | cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir} |
104 | cp -a data/* $RPM_BUILD_ROOT%{_localstatedir} | |
99646b81 ER |
105 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
106 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
107 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
7cbddfe6 ER |
108 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.php |
109 | touch $RPM_BUILD_ROOT%{_sysconfdir}/local.protected.php | |
a4053ed1 ER |
110 | touch $RPM_BUILD_ROOT%{_sysconfdir}/acronyms.local.conf |
111 | touch $RPM_BUILD_ROOT%{_sysconfdir}/entities.local.conf | |
112 | touch $RPM_BUILD_ROOT%{_sysconfdir}/interwiki.local.conf | |
113 | touch $RPM_BUILD_ROOT%{_sysconfdir}/mime.local.conf | |
114 | touch $RPM_BUILD_ROOT%{_sysconfdir}/smileys.local.conf | |
d73655e0 | 115 | |
2d01b400 ER |
116 | ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,issue}.gif |
117 | ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif | |
e8e5a964 | 118 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_appdir}/lib/images/fileicons |
2d01b400 | 119 | |
fe631b5b | 120 | # find locales |
1c3d3c8e | 121 | sh %{SOURCE3} %{name}.lang |
fe631b5b | 122 | |
d73655e0 SP |
123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
641b29cc ER |
126 | %post setup |
127 | chmod 770 %{_sysconfdir} | |
128 | chmod 660 %{_sysconfdir}/dokuwiki.php | |
129 | ||
130 | %postun setup | |
131 | if [ "$1" = "0" ]; then | |
132 | chmod 750 %{_sysconfdir} | |
133 | chmod 640 %{_sysconfdir}/dokuwiki.php | |
134 | fi | |
135 | ||
d73655e0 SP |
136 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
137 | %webapp_register apache %{_webapp} | |
138 | ||
139 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
140 | %webapp_unregister apache %{_webapp} | |
141 | ||
142 | %triggerin -- apache < 2.2.0, apache-base | |
143 | %webapp_register httpd %{_webapp} | |
144 | ||
145 | %triggerun -- apache < 2.2.0, apache-base | |
146 | %webapp_unregister httpd %{_webapp} | |
147 | ||
99646b81 ER |
148 | %triggerin -- lighttpd |
149 | %webapp_register lighttpd %{_webapp} | |
150 | ||
151 | %triggerun -- lighttpd | |
152 | %webapp_unregister lighttpd %{_webapp} | |
153 | ||
881190a4 ER |
154 | %pretrans |
155 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
156 | mv -f %{_appdir}/data/* %{_localstatedir} | |
157 | rm -rf %{_appdir}/data | |
158 | fi | |
159 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
160 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
161 | rm -rf %{_appdir}/conf | |
162 | fi | |
163 | exit 0 | |
164 | ||
fe631b5b | 165 | %files -f %{name}.lang |
d73655e0 | 166 | %defattr(644,root,root,755) |
881190a4 | 167 | %doc README VERSION |
d73655e0 SP |
168 | %dir %attr(750,root,http) %{_sysconfdir} |
169 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
170 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
99646b81 ER |
171 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
172 | ||
881190a4 | 173 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
881190a4 | 174 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msg |
2d01b400 | 175 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/words.aspell |
a4053ed1 | 176 | |
7cbddfe6 ER |
177 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.php |
178 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local.protected.php | |
a4053ed1 ER |
179 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.local.conf |
180 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.local.conf | |
181 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.local.conf | |
182 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.local.conf | |
183 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.local.conf | |
2d01b400 | 184 | |
a4053ed1 | 185 | # use local.php,local.protected.php, etc for local changes |
fc7417e4 | 186 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php |
a4053ed1 ER |
187 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
188 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
fc7417e4 | 189 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf |
a4053ed1 ER |
190 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/mime.conf |
191 | %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf | |
b9fff555 | 192 | |
a4053ed1 | 193 | # samples. perhaps move to %doc instead? |
b9fff555 ER |
194 | %attr(640,root,http) %{_sysconfdir}/mysql.conf.php.example |
195 | %attr(640,root,http) %{_sysconfdir}/acl.auth.php.dist | |
196 | %attr(640,root,http) %{_sysconfdir}/wordblock.conf | |
197 | %attr(640,root,http) %{_sysconfdir}/local.php.dist | |
198 | %attr(640,root,http) %{_sysconfdir}/users.auth.php.dist | |
881190a4 | 199 | |
641b29cc | 200 | %dir %{_appdir} |
fe631b5b ER |
201 | %{_appdir}/doku.php |
202 | %{_appdir}/feed.php | |
203 | %{_appdir}/index.php | |
641b29cc ER |
204 | %dir %{_appdir}/bin |
205 | %attr(755,root,root) %{_appdir}/bin/dwpage.php | |
206 | %attr(755,root,root) %{_appdir}/bin/indexer.php | |
207 | %attr(755,root,root) %{_appdir}/bin/wantedpages.php | |
fe631b5b ER |
208 | |
209 | %dir %{_appdir}/inc | |
210 | %{_appdir}/inc/*.php | |
211 | %{_appdir}/inc/auth | |
212 | %{_appdir}/inc/parser | |
213 | ||
214 | %dir %{_appdir}/lib | |
215 | %dir %{_appdir}/lib/plugins | |
216 | %dir %{_appdir}/lib/plugins/acl | |
217 | %{_appdir}/lib/plugins/acl/*.* | |
218 | %dir %{_appdir}/lib/plugins/config | |
219 | %{_appdir}/lib/plugins/config/*.* | |
220 | %{_appdir}/lib/plugins/config/settings | |
221 | %dir %{_appdir}/lib/plugins/plugin | |
222 | %{_appdir}/lib/plugins/plugin/*.* | |
223 | %dir %{_appdir}/lib/plugins/revert | |
224 | %{_appdir}/lib/plugins/revert/*.* | |
225 | %dir %{_appdir}/lib/plugins/usermanager | |
226 | %{_appdir}/lib/plugins/usermanager/*.* | |
227 | %{_appdir}/lib/plugins/usermanager/images | |
228 | %{_appdir}/lib/plugins/importoldchangelog | |
229 | %{_appdir}/lib/plugins/importoldindex | |
230 | %{_appdir}/lib/plugins/info | |
231 | %{_appdir}/lib/plugins/*.php | |
232 | %{_appdir}/lib/images | |
233 | %{_appdir}/lib/scripts | |
234 | %{_appdir}/lib/styles | |
235 | %{_appdir}/lib/tpl | |
236 | %{_appdir}/lib/exe | |
881190a4 ER |
237 | |
238 | %dir %attr(770,root,http) %{_localstatedir} | |
239 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
240 | %dir %attr(770,root,http) %{_localstatedir}/cache | |
241 | %dir %attr(770,root,http) %{_localstatedir}/index | |
242 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
243 | %dir %attr(770,root,http) %{_localstatedir}/media | |
244 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki | |
245 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
246 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
247 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground | |
248 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki | |
b9fff555 ER |
249 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/attic/_dummy |
250 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/cache/_dummy | |
251 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/index/_dummy | |
252 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/locks/_dummy | |
253 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png | |
254 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/meta/_dummy | |
255 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt | |
256 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt | |
257 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt | |
641b29cc ER |
258 | |
259 | %files setup | |
260 | %defattr(644,root,root,755) | |
261 | %{_appdir}/install.php |