diff --git a/cloud-init.spec b/cloud-init.spec index b0ce5c3..6e90c48 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -55,6 +55,7 @@ BuildRequires: python-devel BuildRequires: python-setuptools # pkg-config is needed to find correct systemd unit dir BuildRequires: pkg-config +%if 0%{?suse_version} > 1320 # Test requirements BuildRequires: python-Cheetah BuildRequires: python-Jinja2 @@ -69,6 +70,7 @@ BuildRequires: python-mock BuildRequires: python-oauthlib BuildRequires: python-requests BuildRequires: python-testtools +%endif Requires: bash Requires: file Requires: growpart @@ -179,13 +181,15 @@ echo "ssh_genkeytypes: ['rsa', 'dsa']" >> %{SOURCE1} %build python setup.py build + +%if 0%{?suse_version} > 1320 %check # these tests are currently failing due to suse patches rm -v tests/unittests/test_distros/test_netconfig.py rm -v tests/unittests/test_net.py rm -v tests/unittests/test_datasource/test_opennebula.py python -m testtools.run - +%endif %install