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}
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
14 BuildRequires: rpmbuild(macros) >= 1.553
15 Requires: dokuwiki >= 20091225
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define dokuconf /etc/webapps/dokuwiki
20 %define dokudir /usr/share/dokuwiki
21 %define plugindir %{dokudir}/lib/plugins/%{plugin}
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 " *...".
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.
36 cp -a %{SOURCE0} syntax.php
38 version=$(awk -F"'" '/date/{print $4}' syntax.php)
39 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
40 : %%{version} mismatch
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{plugindir}
47 cp -a . $RPM_BUILD_ROOT%{plugindir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)