forked from pool/python-cryptography
- 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:
@@ -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,-)
|
||||
|
Reference in New Issue
Block a user