2 Summary: DokuWiki poldek Plugin
3 Summary(pl.UTF-8): Wtyczka Include (dołączania) dla poldek
4 Name: dokuwiki-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: https://github.com/glensc/dokuwiki-plugin-poldek/tarball/master/%{plugin}.tgz
10 # Source0-md5: 2defb6b14ffa7d3d09f75de3db6f1d54
11 URL: https://github.com/glensc/dokuwiki-plugin-poldek
12 Requires: dokuwiki >= 20080505
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define dokudir /usr/share/dokuwiki
18 %define plugindir %{dokudir}/lib/plugins/%{plugin}
21 Plugin to display package NVR from repository.
23 {{poldek>PKGNAME}} is the syntax.
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}
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)