1 Summary: PHP-based Wiki webapplication
2 Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP
7 Group: Applications/WWW
8 Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz
9 # Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3
10 URL: http://wiki.splitbrain.org/wiki:dokuwiki
11 BuildRequires: rpmbuild(macros) >= 1.268
13 Requires: webserver(php) >= 4.0.6
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _webapps /etc/webapps
18 %define _webapp %{name}
19 %define _sysconfdir %{_webapps}/%{_webapp}
20 %define _appdir %{_datadir}/%{_webapp}
23 DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
24 creating documentation of any kind. It is targeted at developer teams,
25 workgroups and small companies. It has a simple but powerful syntax
26 which makes sure the datafiles remain readable outside the Wiki and
27 eases the creation of structured texts. All data is stored in plain
28 text files - no database is required.
30 %description -l pl.UTF-8
31 DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone
32 głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone
33 dla zespołów programistów, grup roboczych i małych firm. Ma prostą,
34 ale mającą duże możliwości składnię, dzięki której pliki danych
35 pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów
36 strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych -
37 nie jest wymagana baza danych.
40 %setup -q -n %{name}-2007-06-26b
42 cat > apache.conf <<EOF
43 Alias /%{_webapp} %{_appdir}
44 <Directory %{_appdir}/>
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/%{name}}
54 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
55 cp -a bin conf data inc lib $RPM_BUILD_ROOT%{_appdir}
56 #cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}
57 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
58 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
61 rm -rf $RPM_BUILD_ROOT
63 %triggerin -- apache1 < 1.3.37-3, apache1-base
64 %webapp_register apache %{_webapp}
66 %triggerun -- apache1 < 1.3.37-3, apache1-base
67 %webapp_unregister apache %{_webapp}
69 %triggerin -- apache < 2.2.0, apache-base
70 %webapp_register httpd %{_webapp}
72 %triggerun -- apache < 2.2.0, apache-base
73 %webapp_unregister httpd %{_webapp}
76 %defattr(644,root,root,755)
77 %doc COPYING README VERSION
78 %dir %attr(750,root,http) %{_sysconfdir}
79 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
80 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
81 %attr(670,root,http) %{_appdir}
82 %dir %attr(770,root,http) /var/lib/%{name}