]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- use system jquery packages
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 8 Jul 2012 07:41:44 +0000 (07:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki.spec -> 1.108
    system-jquery.patch -> 1.1

dokuwiki.spec
system-jquery.patch [new file with mode: 0644]

index 27dcf5d8f55862a6eee89c85eeff11d218d0eb45..2dc86593c3dbfab6d31a1e3ab4b1a44c4a67a16f 100644 (file)
@@ -7,7 +7,7 @@ Summary:        PHP-based Wiki webapplication
 Summary(pl.UTF-8):     Aplikacja WWW Wiki oparta na PHP
 Name:          dokuwiki
 Version:       %{ver}
-Release:       1.5
+Release:       1.11
 License:       GPL v2
 Group:         Applications/WWW
 #Source0:      http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-%{subver}.tgz
@@ -31,6 +31,7 @@ Source11:     http://glen.alkohol.ee/pld/astah.png
 # Source11-md5:        b1c999e6988440c9e2af6a12e9a56451
 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
@@ -53,6 +54,9 @@ URL:          http://www.dokuwiki.org/dokuwiki
 BuildRequires: fslint
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.520
+Requires:      jquery >= 1.6
+Requires:      jquery-cookie
+Requires:      jquery-ui
 Requires:      php-common >= 4:%{php_min_version}
 Requires:      php-geshi >= 1.0.7.19
 Requires:      php-session
@@ -79,7 +83,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
 
 # bad depsolver
-%define                _noautopear     'pear(/usr/share/php/geshi.php)' 'pear(/usr/share/php/adLDAP.php)'
+%define                _noautopear     pear(/usr/share/php/geshi.php) pear(/usr/share/php/adLDAP.php)
 
 # exclude optional php dependencies
 %define                _noautophp      php-bzip2 php-bcmath php-zip php-date php-ftp php-hash php-ldap php-mbstring php-mysql php-pgsql php-tokenizer
@@ -128,6 +132,7 @@ install -d data/pages/playground
 touch data/pages/playground/playground.txt
 %endif
 %patch0 -p1
+%patch1 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
@@ -308,8 +313,8 @@ exit 0
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/users.auth.php
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql.conf.php
 
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size mode) %{_sysconfdir}/local.php
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size mode) %{_sysconfdir}/plugins.local.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/local.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mode mtime size) %{_sysconfdir}/plugins.local.php
 
 # use local.php, local.protected.php, etc for local changes
 %attr(640,root,http) %config %verify(not md5 mtime size) %{_sysconfdir}/acronyms.conf
diff --git a/system-jquery.patch b/system-jquery.patch
new file mode 100644 (file)
index 0000000..267c876
--- /dev/null
@@ -0,0 +1,15 @@
+--- dokuwiki-2012-01-25a/lib/exe/js.php        2012-04-19 13:09:54.000000000 +0300
++++ ./lib/exe/js.php   2012-05-05 15:29:01.000000000 +0300
+@@ -40,9 +40,9 @@
+     // array of core files
+     $files = array(
+-                DOKU_INC."lib/scripts/jquery/jquery$min.js",
+-                DOKU_INC.'lib/scripts/jquery/jquery.cookie.js',
+-                DOKU_INC."lib/scripts/jquery/jquery-ui$min.js",
++                "/usr/share/jquery/jquery$min.js",
++                '/usr/share/jquery/cookie/cookie.js',
++                "/usr/share/jquery/ui/jquery-ui.js",
+                 DOKU_INC."lib/scripts/fileuploader.js",
+                 DOKU_INC."lib/scripts/fileuploaderextended.js",
+                 DOKU_INC.'lib/scripts/helpers.js',
This page took 0.20098 seconds and 4 git commands to generate.