1 %define plugin alertbox
2 Summary: Add Bootstrap style alert boxes to your wiki
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: https://github.com/sjlevine/dokuwiki-alertbox/archive/master/%{plugin}-%{version}.tar.gz
9 # Source0-md5: 3023fb439fc1b5807f97efcfe51074cb
10 URL: https://www.dokuwiki.org/plugin:alertbox
11 BuildRequires: rpmbuild(macros) >= 1.520
12 Requires: dokuwiki >= 20131208
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 Add Bootstrap style alert boxes to your wiki.
23 First, make sure you have a template that provides Bootstrap (such as
24 dokubootstrapsimplified or dokutwitterbootstrap)! These provide
25 necessary CSS, and without them, the alert boxes won't show up.
29 mv dokuwiki-%{plugin}-*/* .
32 version=$(awk '/date/{print $2}' plugin.info.txt)
33 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
34 : %%{version} mismatch
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{plugindir}
41 cp -a . $RPM_BUILD_ROOT%{plugindir}
42 %{__rm} $RPM_BUILD_ROOT%{plugindir}/README.md
45 rm -rf $RPM_BUILD_ROOT
48 # force js/css cache refresh
49 if [ -f %{dokuconf}/local.php ]; then
50 touch %{dokuconf}/local.php
54 %defattr(644,root,root,755)