1 %define subver 2018-04-28
2 %define ver %(echo %{subver} | tr -d -)
4 %define php_min_version 5.3.0
5 %include /usr/lib/rpm/macros.php
6 Summary: DokuWiki note plugin
7 Name: dokuwiki-plugin-%{plugin}
11 Group: Applications/WWW
12 Source0: https://github.com/LarsGit223/dokuwiki_note/archive/%{subver}/%{plugin}-%{subver}.tar.gz
13 # Source0-md5: 827086b608ae9a2f5ce49dade8b4ed75
15 URL: https://www.dokuwiki.org/plugin:note
16 BuildRequires: rpmbuild(macros) >= 1.520
17 Requires: dokuwiki >= 20090214
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define dokuconf /etc/webapps/dokuwiki
22 %define dokudir /usr/share/dokuwiki
23 %define plugindir %{dokudir}/lib/plugins/%{plugin}
26 This plugin allows you to create nice notes in your DokuWiki pages.
30 mv dokuwiki_note-*/* .
34 version=$(awk '/^date/{print $2}' plugin.info.txt)
35 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
36 : %%{version} mismatch
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{plugindir}
43 cp -a . $RPM_BUILD_ROOT%{plugindir}
44 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{COPYING,README.rdoc}
47 rm -rf $RPM_BUILD_ROOT
50 # force js/css cache refresh
51 if [ -f %{dokuconf}/local.php ]; then
52 touch %{dokuconf}/local.php
56 %defattr(644,root,root,755)