]> git.pld-linux.org Git - packages/dokuwiki.git/blame - dokuwiki.spec
- pl
[packages/dokuwiki.git] / dokuwiki.spec
CommitLineData
d73655e0 1Summary: PHP-based Wiki webapplication
b9cde090 2Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP
d73655e0
SP
3Name: dokuwiki
4Version: 20070626b
5Release: 0.1
6License: GPL v2
7Group: Applications/WWW
8Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz
9# Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3
dcd487f1 10URL: http://wiki.splitbrain.org/wiki:dokuwiki
d73655e0
SP
11BuildRequires: rpmbuild(macros) >= 1.268
12Requires: webapps
13Requires: webserver(php) >= 4.0.6
14BuildArch: noarch
15BuildRoot: %{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
23DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
24creating documentation of any kind. It is targeted at developer teams,
25workgroups and small companies. It has a simple but powerful syntax
26which makes sure the datafiles remain readable outside the Wiki and
27eases the creation of structured texts. All data is stored in plain
b9cde090
JB
28text files - no database is required.
29
30%description -l pl.UTF-8
31DokuWiki to zgodne ze standardami i proste w użyciu Wiki, przeznaczone
32głównie do tworzenia dokumentów wszelkiego rodzaju. Jest przeznaczone
33dla zespołów programistów, grup roboczych i małych firm. Ma prostą,
34ale mającą duże możliwości składnię, dzięki której pliki danych
35pozostają czytelne poza Wiki, a także ułatwiającą tworzenie tekstów
36strukturalnych. Wszystkie dane są przechowywane w plikach tekstowych -
37nie jest wymagana baza danych.
d73655e0
SP
38
39%prep
40%setup -q -n %{name}-2007-06-26b
41
42cat > apache.conf <<EOF
43Alias /%{_webapp} %{_appdir}
44<Directory %{_appdir}/>
45Deny from all
46Allow from 127.0.0.1
47</Directory>
48EOF
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/%{name}}
53
54cp -a *.php $RPM_BUILD_ROOT%{_appdir}
55cp -a bin conf data inc lib $RPM_BUILD_ROOT%{_appdir}
56#cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}
57install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
58install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
59
60%clean
61rm -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.03553 seconds and 4 git commands to generate.