2 Summary: DokuWiki Structured Data Plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://dev.splitbrain.org/download/snapshots/data-plugin-latest.tgz
9 # Source0-md5: 6a3ee212496a60a343b62246e8002957
10 URL: http://wiki.splitbrain.org/plugin:data
11 BuildRequires: rpmbuild(macros) >= 1.520
12 Requires: dokuwiki >= 20071221
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokuconf /etc/webapps/dokuwiki
18 %define dokudir /usr/share/dokuwiki
19 %define plugindir %{dokudir}/lib/plugins/%{plugin}
20 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
23 This plugin allows you to add structured data to any DokuWiki page.
24 Think about this data as additional named attributes. Those attributes
25 can then be queried and aggregated. The plugin is similar to what was
26 done here for the repository plugin but its internals are very
27 different to the repository plugin.
30 %setup -q -n %{plugin}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{plugindir}
35 cp -a . $RPM_BUILD_ROOT%{plugindir}
38 %find_lang %{name}.lang
41 rm -rf $RPM_BUILD_ROOT
44 # force css cache refresh
45 if [ -f %{dokuconf}/local.php ]; then
46 touch %{dokuconf}/local.php
49 %files -f %{name}.lang
50 %defattr(644,root,root,755)