2 Summary: DokuWiki note plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-%{plugin}-%{version}.tgz
9 # Source0-md5: 9121176dcb0c83ebd1d9008e949191ec
11 URL: http://www.dokuwiki.org/plugin:note
12 BuildRequires: rpmbuild(macros) >= 1.520
13 Requires: dokuwiki >= 20090214
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokuconf /etc/webapps/dokuwiki
18 %define dokudir /usr/share/dokuwiki
19 %define plugindir %{dokudir}/lib/plugins/%{plugin}
22 This plugin allows you to create nice notes in your DokuWiki pages.
27 rm %{plugin}/.gitignore
30 version=$(awk '/date/{print $2}' info.txt)
31 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
32 : %%{version} mismatch
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{plugindir}
39 cp -a . $RPM_BUILD_ROOT%{plugindir}
42 rm -rf $RPM_BUILD_ROOT
45 # force js/css cache refresh
46 if [ -f %{dokuconf}/local.php ]; then
47 touch %{dokuconf}/local.php
51 %defattr(644,root,root,755)