From 0be2945ac6ad3494c1a88e3c3b47b542dec0d4bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 13 Sep 2010 14:13:39 +0000 Subject: [PATCH] - new Changed files: dokuwiki-plugin-phpwikify.spec -> 1.1 --- dokuwiki-plugin-phpwikify.spec | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dokuwiki-plugin-phpwikify.spec diff --git a/dokuwiki-plugin-phpwikify.spec b/dokuwiki-plugin-phpwikify.spec new file mode 100644 index 0000000..5aba228 --- /dev/null +++ b/dokuwiki-plugin-phpwikify.spec @@ -0,0 +1,55 @@ +%define plugin phpwikify +Summary: DokuWiki plugin to render PHP output as Wiki text +Summary(pl.UTF-8): Wtyczka phpwikify dla DokuWiki +Name: dokuwiki-plugin-%{plugin} +Version: 20050722 +Release: 1 +License: GPL v2 +Group: Applications/WWW +Source0: http://glen.alkohol.ee/pld/dokuwiki-plugin-phpwikify.php.txt +# Source0-md5: 9b4011292cfb04a69226a2290ae7e207 +URL: http://www.dokuwiki.org/plugin:phpwikify +BuildRequires: rpmbuild(macros) >= 1.520 +# for %%undos macro +BuildRequires: rpmbuild(macros) >= 1.553 +Requires: dokuwiki >= 20091225 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define dokuconf /etc/webapps/dokuwiki +%define dokudir /usr/share/dokuwiki +%define plugindir %{dokudir}/lib/plugins/%{plugin} + +%description +This plugin enables you to use PHP scripts in the wiki pages in the +same way as by using the tag. The difference is that the PHP +script output is feed through the DokuWiki parser/renderer and you +could create for example bulleted lists using " *...". + +Security warning! This plugin is not recommended for a public wiki +Security wise it is the same as having the Configuration Setting: +phpok enabled. Even if the script output is parsed, any other actions +taken by the script is NOT checked. + +%prep +%setup -qcT +cp -a %{SOURCE0} syntax.php + +version=$(awk -F"'" '/date/{print $4}' syntax.php) +if [ "$(echo "$version" | tr -d -)" != %{version} ]; then + : %%{version} mismatch + exit 1 +fi + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{plugindir} +cp -a . $RPM_BUILD_ROOT%{plugindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%dir %{plugindir} +%{plugindir}/*.php -- 2.43.0