1 %define subver 2018-04-28
2 %define ver %(echo %{subver} | tr -d -)
4 %define php_min_version 5.3.0
5 Summary: DokuWiki note plugin
6 Name: dokuwiki-plugin-%{plugin}
10 Group: Applications/WWW
11 Source0: https://github.com/LarsGit223/dokuwiki_note/archive/%{subver}/%{plugin}-%{subver}.tar.gz
12 # Source0-md5: 827086b608ae9a2f5ce49dade8b4ed75
14 URL: https://www.dokuwiki.org/plugin:note
15 BuildRequires: rpmbuild(macros) >= 1.520
16 Requires: dokuwiki >= 20090214
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dokuconf /etc/webapps/dokuwiki
21 %define dokudir /usr/share/dokuwiki
22 %define plugindir %{dokudir}/lib/plugins/%{plugin}
25 This plugin allows you to create nice notes in your DokuWiki pages.
29 mv dokuwiki_note-*/* .
33 version=$(awk '/^date/{print $2}' plugin.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 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{COPYING,README.rdoc}
46 rm -rf $RPM_BUILD_ROOT
49 # force js/css cache refresh
50 if [ -f %{dokuconf}/local.php ]; then
51 touch %{dokuconf}/local.php
55 %defattr(644,root,root,755)