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