Don't force do_unittests in spec. Also, fake username and email in
'%check' section to work around unconfigured git.
Change-Id: Ibb0da9d8a40eb15e517c293c225577f5c28f3c54
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-%define do_unittests 0
-
Name: obs-service-git-buildpackage
License: GPL-2.0+
Group: Development/Tools/Building
%if 0%{?do_unittests}
%check
-%{__python} setup.py nosetests
+GIT_AUTHOR_EMAIL=rpmbuild@example.com GIT_AUTHOR_NAME=rpmbuild \
+ GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL \
+ %{__python} setup.py nosetests
%endif