]>
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 | |
b9fff555 | 5 | Release: 0.7 |
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 | |
dcd487f1 | 10 | URL: http://wiki.splitbrain.org/wiki:dokuwiki |
d73655e0 SP |
11 | BuildRequires: rpmbuild(macros) >= 1.268 |
12 | Requires: webapps | |
13 | Requires: webserver(php) >= 4.0.6 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _webapps /etc/webapps | |
18 | %define _webapp %{name} | |
19 | %define _sysconfdir %{_webapps}/%{_webapp} | |
20 | %define _appdir %{_datadir}/%{_webapp} | |
881190a4 | 21 | %define _localstatedir /var/lib/%{name} |
d73655e0 SP |
22 | |
23 | %description | |
24 | DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at | |
25 | creating documentation of any kind. It is targeted at developer teams, | |
26 | workgroups and small companies. It has a simple but powerful syntax | |
27 | which makes sure the datafiles remain readable outside the Wiki and | |
28 | eases the creation of structured texts. All data is stored in plain | |
b9cde090 JB |
29 | text files - no database is required. |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone | |
33 | głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone | |
34 | dla zespołów programistów, grup roboczych i małych firm. Ma prostą, | |
35 | ale mającą duże możliwości składnię, dzięki której pliki danych | |
36 | pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów | |
37 | strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych - | |
38 | nie jest wymagana baza danych. | |
d73655e0 SP |
39 | |
40 | %prep | |
41 | %setup -q -n %{name}-2007-06-26b | |
42 | ||
43 | cat > apache.conf <<EOF | |
44 | Alias /%{_webapp} %{_appdir} | |
45 | <Directory %{_appdir}/> | |
881190a4 | 46 | Allow from all |
d73655e0 SP |
47 | </Directory> |
48 | EOF | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
881190a4 | 52 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_localstatedir}} |
d73655e0 SP |
53 | |
54 | cp -a *.php $RPM_BUILD_ROOT%{_appdir} | |
881190a4 ER |
55 | cp -a bin inc lib $RPM_BUILD_ROOT%{_appdir} |
56 | cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir} | |
57 | cp -a data/* $RPM_BUILD_ROOT%{_localstatedir} | |
58 | ln -s %{_localstatedir} $RPM_BUILD_ROOT%{_appdir}/data | |
59 | ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/conf | |
d73655e0 SP |
60 | install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
61 | install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %triggerin -- apache1 < 1.3.37-3, apache1-base | |
67 | %webapp_register apache %{_webapp} | |
68 | ||
69 | %triggerun -- apache1 < 1.3.37-3, apache1-base | |
70 | %webapp_unregister apache %{_webapp} | |
71 | ||
72 | %triggerin -- apache < 2.2.0, apache-base | |
73 | %webapp_register httpd %{_webapp} | |
74 | ||
75 | %triggerun -- apache < 2.2.0, apache-base | |
76 | %webapp_unregister httpd %{_webapp} | |
77 | ||
881190a4 ER |
78 | %pretrans |
79 | if [ -d %{_appdir}/data -a ! -L %{_appdir}/data ]; then | |
80 | mv -f %{_appdir}/data/* %{_localstatedir} | |
81 | rm -rf %{_appdir}/data | |
82 | fi | |
83 | if [ -d %{_appdir}/conf -a ! -L %{_appdir}/conf ]; then | |
84 | mv -f %{_appdir}/conf/* %{_sysconfdir} | |
85 | rm -rf %{_appdir}/conf | |
86 | fi | |
87 | exit 0 | |
88 | ||
d73655e0 SP |
89 | %files |
90 | %defattr(644,root,root,755) | |
881190a4 | 91 | %doc README VERSION |
d73655e0 SP |
92 | %dir %attr(750,root,http) %{_sysconfdir} |
93 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
94 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
881190a4 ER |
95 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf |
96 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dokuwiki.php | |
97 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/entities.conf | |
98 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/interwiki.conf | |
881190a4 ER |
99 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mediameta.php |
100 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.conf | |
101 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msg | |
881190a4 | 102 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smileys.conf |
b9fff555 ER |
103 | |
104 | %attr(640,root,http) %{_sysconfdir}/mysql.conf.php.example | |
105 | %attr(640,root,http) %{_sysconfdir}/acl.auth.php.dist | |
106 | %attr(640,root,http) %{_sysconfdir}/wordblock.conf | |
107 | %attr(640,root,http) %{_sysconfdir}/local.php.dist | |
108 | %attr(640,root,http) %{_sysconfdir}/users.auth.php.dist | |
109 | %attr(640,root,http) %{_sysconfdir}/words.aspell.dist | |
881190a4 ER |
110 | |
111 | %{_appdir} | |
112 | ||
113 | %dir %attr(770,root,http) %{_localstatedir} | |
114 | %dir %attr(770,root,http) %{_localstatedir}/attic | |
115 | %dir %attr(770,root,http) %{_localstatedir}/cache | |
116 | %dir %attr(770,root,http) %{_localstatedir}/index | |
117 | %dir %attr(770,root,http) %{_localstatedir}/locks | |
118 | %dir %attr(770,root,http) %{_localstatedir}/media | |
119 | %dir %attr(770,root,http) %{_localstatedir}/media/wiki | |
120 | %dir %attr(770,root,http) %{_localstatedir}/meta | |
121 | %dir %attr(770,root,http) %{_localstatedir}/pages | |
122 | %dir %attr(770,root,http) %{_localstatedir}/pages/playground | |
123 | %dir %attr(770,root,http) %{_localstatedir}/pages/wiki | |
b9fff555 ER |
124 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/attic/_dummy |
125 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/cache/_dummy | |
126 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/index/_dummy | |
127 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/locks/_dummy | |
128 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/media/wiki/dokuwiki-128.png | |
129 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/meta/_dummy | |
130 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/playground/playground.txt | |
131 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/dokuwiki.txt | |
132 | %attr(660,root,http) %config(noreplace,missingok) %verify(not md5 mtime size) %{_localstatedir}/pages/wiki/syntax.txt |