diff --git a/python-extras.spec b/python-extras.spec index 797fc34..c122dd5 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -2,9 +2,11 @@ %global with_python3 1 %endif +%global with_tests 0 + Name: python-extras Version: 0.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Useful extra bits for Python License: MIT @@ -14,11 +16,16 @@ Source0: https://pypi.python.org/packages/source/e/extras/extras-%{versio BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools +%if 0%{?with_tests} BuildRequires: python-testtools +%endif + %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools +%if 0%{?with_tests} BuildRequires: python3-testtools +%endif # with_tests %endif %description @@ -75,6 +82,7 @@ popd %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %check +%if 0%{?with_tests} %{__python} setup.py test %if 0%{?with_python3} @@ -82,6 +90,7 @@ pushd %{py3dir} %{__python3} setup.py test popd %endif # with_python3 +%endif # with_tests @@ -98,6 +107,10 @@ popd %changelog +* Wed May 14 2014 Bohuslav Kabrda - 0.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 +- Bootstrap tests to break circular dependency with python-testtools + * Sun Aug 04 2013 Fedora Release Engineering - 0.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild