%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