1 %define subver 2015-07-24
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 Plugin to Set Metadata
7 Name: dokuwiki-plugin-%{plugin}
11 Group: Applications/WWW
12 Source0: https://github.com/dokufreaks/plugin-meta/archive/8752219/%{plugin}-%{subver}.tar.gz
13 # Source0-md5: c335f4ffd1ca022948955093a4d84dea
14 URL: https://www.dokuwiki.org/plugin:meta
15 BuildRequires: rpmbuild(macros) >= 1.520
16 Requires: dokuwiki >= 20061106
17 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}
24 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
27 This plugin allows you to set metadata for a page. This is useful for
28 overriding default DokuWiki metadata, for example if you want to
29 display someone else than the user who pasted the text into the wiki
30 as the author of a blog entry.
36 # nothing to do with tests
40 version=$(awk '/^date/{print $2}' plugin.info.txt)
41 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
42 : %%{version} mismatch
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{plugindir}
49 cp -a . $RPM_BUILD_ROOT%{plugindir}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)