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
10 URL: http://www.dokuwiki.org/plugin:note
11 BuildRequires: rpmbuild(macros) >= 1.520
12 Requires: dokuwiki >= 20090214
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define dokuconf /etc/webapps/dokuwiki
17 %define dokudir /usr/share/dokuwiki
18 %define plugindir %{dokudir}/lib/plugins/%{plugin}
21 This plugin allows you to create nice notes in your DokuWiki pages.
26 rm %{plugin}/.gitignore
28 version=$(awk '/date/{print $2}' info.txt)
29 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
30 : %%{version} mismatch
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{plugindir}
37 cp -a . $RPM_BUILD_ROOT%{plugindir}
40 rm -rf $RPM_BUILD_ROOT
43 # force js/css cache refresh
44 if [ -f %{dokuconf}/local.php ]; then
45 touch %{dokuconf}/local.php
49 %defattr(644,root,root,755)