+++ /dev/null
---- dokuwiki/lib/plugins/config/settings/config.class.php 2007-06-26 21:27:15.000000000 +0300
-+++ dokuwiki/lib/plugins/config/settings/config.class.php 2007-11-20 01:42:59.722673768 +0200
-@@ -138,7 +138,7 @@
- }else{
- $contents = '';
- }
-- $pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$'.$this->_name.'|@include|$))/s';
-+ $pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$'.$this->_name.'|@?(?:require|include)(?:_once)?|$))/s';
- $matches=array();
- preg_match_all($pattern,$contents,$matches,PREG_SET_ORDER);
-
-%define subver 2012-07-08
+%define subver 2012-07-13
%define ver %(echo %{subver} | tr -d -)
%define snap 1
%define php_min_version 5.2.4
-%include /usr/lib/rpm/macros.php
+#include /usr/lib/rpm/macros.php
Summary: PHP-based Wiki webapplication
Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP
Name: dokuwiki
Version: %{ver}
-Release: 0.12
+Release: 0.1
License: GPL v2
Group: Applications/WWW
#Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-%{subver}.tgz
-Source0: http://github.com/splitbrain/dokuwiki/tarball/master/%{name}.tgz
-# Source0-md5: d7afe9a8a4a73637d4620017f16f4b6a
+Source0: http://github.com/splitbrain/dokuwiki/tarball/master/%{name}-%{subver}.tgz
+# Source0-md5: 21bb0371b5625789e8c1cf3e5052e291
Source1: %{name}-apache.conf
Source2: %{name}-lighttpd.conf
Source3: http://glen.alkohol.ee/pld/jude.png
Patch66: %{name}-config.patch
Patch0: %{name}-paths.patch
Patch1: system-jquery.patch
-Patch3: %{name}-config-allow-require.patch
Patch4: %{name}-geshi.patch
Patch5: %{name}-http_auth-option.patch
Patch6: %{name}-nice_exit.patch
Patch13: %{name}-media-directlink.patch
Patch14: interwiki-outputonly.patch
Patch15: simplepie.patch
-Patch18: install.patch
Patch19: pld-branding.patch
Patch20: fixprivilegeescalationbug.diff
Patch21: task-1821.patch
%endif
%patch0 -p1
%patch1 -p1
-%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
-%patch18 -p1
%patch19 -p1
%patch20 -p1
#%patch21 -p1 UPDATE to new mailer class
%dir %{_appdir}/inc
%{_appdir}/inc/*.php
+%{_appdir}/inc/preload.php.dist
%{_appdir}/inc/auth
%{_appdir}/inc/parser
+++ /dev/null
---- dokuwiki-2009-02-14/install.php~ 2009-11-10 07:54:33.847106003 +0200
-+++ dokuwiki-2009-02-14/install.php 2009-11-10 07:54:11.370025985 +0200
-@@ -373,7 +373,7 @@
-
- // configs shouldn't exist
- foreach ($config_files as $file) {
-- if (@file_exists($file)) {
-+ if (@file_exists($file) && filesize($file)) {
- $file = str_replace($_SERVER['DOCUMENT_ROOT'],'{DOCUMENT_ROOT}/', $file);
- $error[] = sprintf($lang['i_confexists'],$file);
- $ok = false;