2 Summary: Provides the jQuery JavaScript Framework for other plugins/templates
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://wiki.birth-online.de/_media/software/php/jquery.tar.gz
9 # Source0-md5: 3fe95631afdd7a300d6696cb3ba699a6
10 URL: http://www.dokuwiki.org/plugin:jquery
11 BuildRequires: rpmbuild(macros) >= 1.520
12 BuildRequires: sed >= 4.0
13 Requires: dokuwiki >= 20090206
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}
21 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
24 Provides the jQuery JavaScript Framework for other plugins/templates.
31 sed -i -e 's,INFO.txt,info.txt,' *.php
33 version=$(awk '/date/{print $2}' info.txt)
34 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
35 : %%{version} mismatch
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{plugindir}
42 cp -a . $RPM_BUILD_ROOT%{plugindir}
43 ln -snf %{_datadir}/jquery/jquery.js $RPM_BUILD_ROOT%{plugindir}/script.js
46 rm -rf $RPM_BUILD_ROOT
49 # force css cache refresh
50 if [ -f %{dokuconf}/local.php ]; then
51 touch %{dokuconf}/local.php
55 %defattr(644,root,root,755)