1 Summary: PHP-based Wiki webapplication
6 Group: Applications/WWW
7 Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz
8 # Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3
9 URL: http://phpwiki.sourceforge.net/
10 BuildRequires: rpmbuild(macros) >= 1.268
12 Requires: webserver(php) >= 4.0.6
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _webapps /etc/webapps
17 %define _webapp %{name}
18 %define _sysconfdir %{_webapps}/%{_webapp}
19 %define _appdir %{_datadir}/%{_webapp}
22 DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
23 creating documentation of any kind. It is targeted at developer teams,
24 workgroups and small companies. It has a simple but powerful syntax
25 which makes sure the datafiles remain readable outside the Wiki and
26 eases the creation of structured texts. All data is stored in plain
27 text files – no database is required.
30 %setup -q -n %{name}-2007-06-26b
32 cat > apache.conf <<EOF
33 Alias /%{_webapp} %{_appdir}
34 <Directory %{_appdir}/>
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/%{name}}
44 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
45 cp -a bin conf data inc lib $RPM_BUILD_ROOT%{_appdir}
46 #cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}
47 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
48 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
51 rm -rf $RPM_BUILD_ROOT
53 %triggerin -- apache1 < 1.3.37-3, apache1-base
54 %webapp_register apache %{_webapp}
56 %triggerun -- apache1 < 1.3.37-3, apache1-base
57 %webapp_unregister apache %{_webapp}
59 %triggerin -- apache < 2.2.0, apache-base
60 %webapp_register httpd %{_webapp}
62 %triggerun -- apache < 2.2.0, apache-base
63 %webapp_unregister httpd %{_webapp}
66 %defattr(644,root,root,755)
67 %doc COPYING README VERSION
68 %dir %attr(750,root,http) %{_sysconfdir}
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
70 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
71 %attr(670,root,http) %{_appdir}
72 %dir %attr(770,root,http) /var/lib/%{name}