]>
Commit | Line | Data |
---|---|---|
0be2945a ER |
1 | %define plugin phpwikify |
2 | Summary: DokuWiki plugin to render PHP output as Wiki text | |
3 | Summary(pl.UTF-8): Wtyczka phpwikify dla DokuWiki | |
4 | Name: dokuwiki-plugin-%{plugin} | |
5 | Version: 20050722 | |
6 | Release: 1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://glen.alkohol.ee/pld/dokuwiki-plugin-phpwikify.php.txt | |
10 | # Source0-md5: 9b4011292cfb04a69226a2290ae7e207 | |
11 | URL: http://www.dokuwiki.org/plugin:phpwikify | |
12 | BuildRequires: rpmbuild(macros) >= 1.520 | |
13 | # for %%undos macro | |
14 | BuildRequires: rpmbuild(macros) >= 1.553 | |
15 | Requires: dokuwiki >= 20091225 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define dokuconf /etc/webapps/dokuwiki | |
20 | %define dokudir /usr/share/dokuwiki | |
21 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
22 | ||
23 | %description | |
24 | This plugin enables you to use PHP scripts in the wiki pages in the | |
25 | same way as by using the <php> tag. The difference is that the PHP | |
26 | script output is feed through the DokuWiki parser/renderer and you | |
27 | could create for example bulleted lists using " *...". | |
28 | ||
29 | Security warning! This plugin is not recommended for a public wiki | |
30 | Security wise it is the same as having the Configuration Setting: | |
31 | phpok enabled. Even if the script output is parsed, any other actions | |
32 | taken by the script is NOT checked. | |
33 | ||
34 | %prep | |
35 | %setup -qcT | |
36 | cp -a %{SOURCE0} syntax.php | |
37 | ||
38 | version=$(awk -F"'" '/date/{print $4}' syntax.php) | |
39 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then | |
40 | : %%{version} mismatch | |
41 | exit 1 | |
42 | fi | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{plugindir} | |
47 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %dir %{plugindir} | |
55 | %{plugindir}/*.php |