2 Summary: DokuWiki Tag Plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: http://github.com/dokufreaks/plugin-tag/tarball/master/%{name}-%{version}.tgz
9 # Source0-md5: ddfb8d16b315e61ca68e5b6daa7d305d
10 URL: http://www.dokuwiki.org/plugin:tag
11 Requires: dokuwiki >= 20070626
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define dokuconf /etc/webapps/dokuwiki
16 %define dokudir /usr/share/dokuwiki
17 %define plugindir %{dokudir}/lib/plugins/%{plugin}
18 %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
21 The Tag Plugin lets you assign category tags to wiki pages. It will
22 display a list of links to the tag pages in the tag namespace
23 specified in the configuration.
29 version=$(awk '/^date/{print $2}' plugin.info.txt)
30 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
31 : %%{version} mismatch
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{plugindir}
38 cp -a . $RPM_BUILD_ROOT%{plugindir}
39 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
41 %find_lang %{name}.lang
44 rm -rf $RPM_BUILD_ROOT
47 # force css cache refresh
48 if [ -f %{dokuconf}/local.php ]; then
49 touch %{dokuconf}/local.php
52 %files -f %{name}.lang
53 %defattr(644,root,root,755)