]> git.pld-linux.org Git - packages/dokuwiki.git/blob - dokuwiki.spec
- pl
[packages/dokuwiki.git] / dokuwiki.spec
1 Summary:        PHP-based Wiki webapplication
2 Summary(pl.UTF-8):      Aplikacja WWW Wiki oparta na PHP
3 Name:           dokuwiki
4 Version:        20070626b
5 Release:        0.1
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
10 URL:            http://wiki.splitbrain.org/wiki:dokuwiki
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}
21
22 %description
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.
29
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.
38
39 %prep
40 %setup -q -n %{name}-2007-06-26b
41
42 cat > apache.conf <<EOF
43 Alias /%{_webapp} %{_appdir}
44 <Directory %{_appdir}/>
45 Deny from all
46 Allow from 127.0.0.1
47 </Directory>
48 EOF
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/%{name}}
53
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
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %triggerin -- apache1 < 1.3.37-3, apache1-base
64 %webapp_register apache %{_webapp}
65
66 %triggerun -- apache1 < 1.3.37-3, apache1-base
67 %webapp_unregister apache %{_webapp}
68
69 %triggerin -- apache < 2.2.0, apache-base
70 %webapp_register httpd %{_webapp}
71
72 %triggerun -- apache < 2.2.0, apache-base
73 %webapp_unregister httpd %{_webapp}
74
75 %files
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}
This page took 0.035012 seconds and 4 git commands to generate.