- 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:
parent
eb54b1a6ae
commit
c6867b02fd
@ -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
|
Tue Nov 10 04:16:13 UTC 2015 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -34,13 +34,17 @@ BuildRequires: libopenssl-devel
|
|||||||
BuildRequires: python-cffi >= 1.1.0
|
BuildRequires: python-cffi >= 1.1.0
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-enum34
|
BuildRequires: python-enum34
|
||||||
BuildRequires: python-hypothesis
|
|
||||||
BuildRequires: python-idna >= 2.0
|
BuildRequires: python-idna >= 2.0
|
||||||
BuildRequires: python-ipaddress
|
BuildRequires: python-ipaddress
|
||||||
BuildRequires: python-pyasn1-modules
|
BuildRequires: python-pyasn1-modules
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python-six >= 1.4.1
|
BuildRequires: python-six >= 1.4.1
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
|
BuildRequires: libffi43-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: python-hypothesis
|
||||||
BuildRequires: pkgconfig(libffi)
|
BuildRequires: pkgconfig(libffi)
|
||||||
|
%endif
|
||||||
# Test requirements
|
# Test requirements
|
||||||
BuildRequires: python-iso8601
|
BuildRequires: python-iso8601
|
||||||
BuildRequires: python-pretend
|
BuildRequires: python-pretend
|
||||||
@ -81,6 +85,7 @@ CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
|||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if 0%{?suse_version} >= 1210
|
||||||
# this is going to be fun
|
# this is going to be fun
|
||||||
# create virtualenv
|
# create virtualenv
|
||||||
virtualenv --system-site-packages TESTROOT
|
virtualenv --system-site-packages TESTROOT
|
||||||
@ -94,6 +99,7 @@ python setup.py install
|
|||||||
python /usr/bin/py.test tests
|
python /usr/bin/py.test tests
|
||||||
# finish
|
# finish
|
||||||
deactivate
|
deactivate
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user