- fix build for sle11 (disable testsuite as it depends on python-hypothesis

which is not available for sle11 anymore)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=24
This commit is contained in:
Dirk Mueller 2015-12-09 10:20:38 +00:00 committed by Git OBS Bridge
parent eb54b1a6ae
commit c6867b02fd
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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,-)