2 Summary: DokuWiki Tag Plugin
3 Name: dokuwiki-plugin-%{plugin}
7 Group: Applications/WWW
8 Source0: https://github.com/dokufreaks/plugin-tag/archive/39c0568/%{name}-%{version}.tar.gz
9 # Source0-md5: cc1b3fd8eabd3fbf468d04e1c7e467b5
10 URL: https://www.dokuwiki.org/plugin:tag
11 Requires: dokuwiki >= 20131208
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.
31 version=$(awk '/^date/{print $2}' plugin.info.txt)
32 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
33 : %%{version} mismatch
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{plugindir}
39 cp -a . $RPM_BUILD_ROOT%{plugindir}
40 rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
42 %find_lang %{name}.lang
45 rm -rf $RPM_BUILD_ROOT
48 # force css cache refresh
49 if [ -f %{dokuconf}/local.php ]; then
50 touch %{dokuconf}/local.php
53 %files -f %{name}.lang
54 %defattr(644,root,root,755)