2 Summary: Dokuwiki Plugin to Set Metadata
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://www.chimeric.de/_src/plugin-meta.tgz
9 # Source0-md5: 81f428efcce5b0193bf0be51c8919e1c
10 URL: http://www.dokuwiki.org/plugin:meta
11 BuildRequires: rpmbuild(macros) >= 1.520
12 Requires: dokuwiki >= 20061106
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}
19 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
22 This plugin allows you to set metadata for a page. This is useful for
23 overriding default DokuWiki metadata, for example if you want to
24 display someone else than the user who pasted the text into the wiki
25 as the author of a blog entry.
31 version=$(awk -F"'" '/date/&&/=>/{print $4}' syntax.php)
32 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
33 : %%{version} mismatch
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{plugindir}
40 cp -a . $RPM_BUILD_ROOT%{plugindir}
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)