Release: 1
License: GPL v2
Group: Applications/WWW
-Source0: http://github.com/splitbrain/%{name}/zipball/master#/%{plugin}.zip
+Source0: http://github.com/splitbrain/dokuwiki-plugin-%{plugin}/zipball/master#/%{plugin}.zip
# Source0-md5: 54f864d57574daef265c36840b3fffca
+Patch0: mediainclude.patch
URL: http://www.dokuwiki.org/plugin:graphviz
BuildRequires: rpmbuild(macros) >= 1.520
Requires: dokuwiki >= 20091225
+Suggests: graphviz
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -qc
mv *-%{plugin}-*/* .
+%patch0 -p1
version=$(awk '/date/{print $2}' plugin.info.txt)
if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
--- /dev/null
+From 3d7b5b0faf63c5634ebee922aa3d24cb718d6aac Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@delfi.ee>
+Date: Sun, 3 Oct 2010 14:00:23 +0300
+Subject: [PATCH] - fix missing include for local graphviz install. ticket #1
+
+---
+ syntax.php | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/syntax.php b/syntax.php
+index 2102b5a..6cffd11 100644
+--- a/syntax.php
++++ b/syntax.php
+@@ -9,6 +9,7 @@
+
+ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
+ require_once(DOKU_INC.'inc/init.php');
++require_once(DOKU_INC.'inc/media.php');
+ if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+ require_once(DOKU_PLUGIN.'syntax.php');
+
+--
+1.7.2.2
+