Package python-module-hitchcron: Specfile
%define oname hitchcron %def_with python3 Name: python-module-%oname Version: 0.2 Release: alt1.git20150621 Summary: Plugin to mimic a cron for use with the Hitch testing framework License: AGPLv3+ Group: Development/Python Url: https://pypi.python.org/pypi/hitchcron/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://github.com/hitchtest/hitchcron.git Source: %name-%version.tar BuildArch: noarch BuildPreReq: python-devel python-module-setuptools-tests BuildPreReq: python-module-hitch python-module-hitchserve %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel python3-module-setuptools-tests BuildPreReq: python3-module-hitch python3-module-hitchserve %endif %py_provides %oname %py_requires hitch hitchserve %description HitchCron is a plugin for the Hitch test framework that lets you mimic the effect of having a cron run during your tests by running a command repeatedly. %if_with python3 %package -n python3-module-%oname Summary: Plugin to mimic a cron for use with the Hitch testing framework Group: Development/Python3 %py3_provides %oname %py3_requires hitch hitchserve %description -n python3-module-%oname HitchCron is a plugin for the Hitch test framework that lets you mimic the effect of having a cron run during your tests by running a command repeatedly. %endif %prep %setup %if_with python3 cp -fR . ../python3 %endif %build %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check python setup.py test -v %if_with python3 pushd ../python3 python3 setup.py test -v popd %endif %files %doc *.rst %python_sitelibdir/* %if_with python3 %files -n python3-module-%oname %doc *.rst %python3_sitelibdir/* %endif %changelog * Fri Jul 31 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.2-alt1.git20150621 - Initial build for Sisyphus |