diff --git a/python-cryptography.changes b/python-cryptography.changes index c4b7bc7..6e105b7 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 9 10:19:45 UTC 2015 - dmueller@suse.com + +- fix build for sle11 (disable testsuite as it depends on python-hypothesis + which is not available for sle11 anymore) + ------------------------------------------------------------------- Tue Nov 10 04:16:13 UTC 2015 - tbechtold@suse.com diff --git a/python-cryptography.spec b/python-cryptography.spec index ac4b366..99fb9d0 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -34,13 +34,17 @@ BuildRequires: libopenssl-devel BuildRequires: python-cffi >= 1.1.0 BuildRequires: python-devel BuildRequires: python-enum34 -BuildRequires: python-hypothesis BuildRequires: python-idna >= 2.0 BuildRequires: python-ipaddress BuildRequires: python-pyasn1-modules BuildRequires: python-setuptools BuildRequires: python-six >= 1.4.1 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +BuildRequires: libffi43-devel +%else +BuildRequires: python-hypothesis BuildRequires: pkgconfig(libffi) +%endif # Test requirements BuildRequires: python-iso8601 BuildRequires: python-pretend @@ -81,6 +85,7 @@ CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check +%if 0%{?suse_version} >= 1210 # this is going to be fun # create virtualenv virtualenv --system-site-packages TESTROOT @@ -94,6 +99,7 @@ python setup.py install python /usr/bin/py.test tests # finish deactivate +%endif %files %defattr(-,root,root,-)