1 %define plugin datatemplate
2 %define php_min_version 5.1.0
3 Summary: DokuWiki plugin to add template capabilities to the data plugin
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: https://github.com/ccl/dokuwiki-plugin-datatemplate/tarball/master#/%{plugin}-%{version}.tgz
10 # Source0-md5: 011bca52756c29137d1715a37395cc45
11 URL: http://www.dokuwiki.org/plugin:datatemplate
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.520
14 Requires: dokuwiki >= 20090214
15 Requires: dokuwiki-plugin-data
16 Requires: php(core) >= %{php_min_version}
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}
25 # this is data plugin dependency
26 %define _noautophp php-sqlite
28 # put it together for rpmbuild
29 %define _noautoreq %{?_noautophp} %{?_noautopear}
32 This plugin adds the possibility to display the structered data of the
33 data plugin using templates. Templates can be applied to individual
34 data entries or lists of multiple entries. Additionally, this plugin
35 offers a custom search form, pagination and result caching.
40 rm *-%{plugin}-*/.gitignore
42 version=$(awk '/^date/{print $2}' plugin.info.txt)
43 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
44 : %%{version} mismatch
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{plugindir}
51 cp -a . $RPM_BUILD_ROOT%{plugindir}
54 rm -rf $RPM_BUILD_ROOT
56 # use this post section if you package .css or .js files
58 # force js/css cache refresh
59 if [ -f %{dokuconf}/local.php ]; then
60 touch %{dokuconf}/local.php
64 %defattr(644,root,root,755)