]> git.pld-linux.org Git - packages/dokuwiki-plugin-phpwikify.git/commitdiff
- new master
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Sep 2010 14:13:39 +0000 (14:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-phpwikify.spec -> 1.1

dokuwiki-plugin-phpwikify.spec [new file with mode: 0644]

diff --git a/dokuwiki-plugin-phpwikify.spec b/dokuwiki-plugin-phpwikify.spec
new file mode 100644 (file)
index 0000000..5aba228
--- /dev/null
@@ -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 <php> 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
This page took 0.087172 seconds and 4 git commands to generate.