%define ver %(echo %{subver} | tr -d -)
%define plugin PLUGIN_NAME
%define php_min_version 5.3.0
-%include /usr/lib/rpm/macros.php
Summary: DokuWiki PLUGIN_NAME plugin
Summary(pl.UTF-8): Wtyczka PLUGIN_NAME dla DokuWiki
Name: dokuwiki-plugin-%{plugin}
%prep
%setup -qc
# for github urls:
-mv *-%{plugin}-*/* .
+mv *-%{plugin}-*/{.??*,*} .
# for github tags:
%setup -q -n %{plugin}-%{subver}
+# nothing to do with tests
+%{__rm} -r _test
+%{__rm} .travis.yml
+
%build
version=$(awk '/^date/{print $2}' plugin.info.txt)
if [ "$(echo "$version" | tr -d -)" != %{version} ]; then