2 Summary: Plugin to make Windows Share Links globally accessible
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://doku-smblink.googlecode.com/files/smblink.zip
9 # Source0-md5: b880e7d257904050c97396ffbd7a9d5e
10 Patch0: syntax.1.patch
11 URL: http://wiki.splitbrain.org/plugin:smblink
12 BuildRequires: rpmbuild(macros) >= 1.553
14 Requires: dokuwiki >= 20091225-7
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define dokuconf /etc/webapps/dokuwiki
19 %define dokudir /usr/share/dokuwiki
20 %define plugindir %{dokudir}/lib/plugins/%{plugin}
23 A replacement for DokuWiki's default Windows Share Link feature which
24 supports Firefox-like browsers.
26 This plugin replaces the default action of Windows Share Links (WSL)
27 to better support the Firefox browser.
35 version=$(awk -F"'" '/date/{print $4}' syntax.php)
36 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
37 : %%{version} mismatch
41 cat <<'EOF' > script.js
42 addInitEvent(function() {
43 // Reset warning as we now handle the links for all OS
44 LANG['nosmblinks'] = '';
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{plugindir}
51 cp -a . $RPM_BUILD_ROOT%{plugindir}
54 rm -rf $RPM_BUILD_ROOT
57 # force css cache refresh
58 if [ -f %{dokuconf}/local.php ]; then
59 touch %{dokuconf}/local.php
63 %defattr(644,root,root,755)