Accepting request 538281 from home:mimi_vx:branches:devel:languages:python

- fix BuildRequires conditions for python3

OBS-URL: https://build.opensuse.org/request/show/538281
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=74
This commit is contained in:
Jan Matejek 2017-11-02 15:19:19 +00:00 committed by Git OBS Bridge
parent d2b7b6e0d6
commit 48aa0c1e36
2 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 2 08:41:18 UTC 2017 - mimi.vx@gmail.com
- fix BuildRequires conditions for python3
-------------------------------------------------------------------
Thu Oct 12 07:41:48 UTC 2017 - michael@stroeder.com

View File

@ -21,7 +21,7 @@ Name: python-cryptography
Version: 2.1.1
Release: 0
Summary: Python library which exposes cryptographic recipes and primitives
License: Apache-2.0 or BSD-3-Clause
License: Apache-2.0 OR BSD-3-Clause
Group: Development/Languages/Python
Url: https://cryptography.io/en/latest/
Source0: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
@ -40,9 +40,22 @@ BuildRequires: %{python_module pyasn1-modules}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools >= 11.3}
BuildRequires: %{python_module six >= 1.4.1}
BuildRequires: fdupes
BuildRequires: libopenssl-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libffi)
Requires: python-asn1crypto >= 0.21.0
Requires: python-idna >= 2.1
Requires: python-packaging
Requires: python-pyasn1 >= 0.1.8
Requires: python-setuptools >= 11.3
Requires: python-six >= 1.4.1
%requires_eq python-cffi
%ifpython2
BuildRequires: python2-enum34
BuildRequires: python2-ipaddress
%endif
# SECTION Test requirements
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module iso8601}
@ -52,18 +65,6 @@ BuildRequires: %{python_module pyasn1 >= 0.1.8}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
# /SECTION
BuildRequires: fdupes
BuildRequires: libopenssl-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libffi)
Requires: python-asn1crypto >= 0.21.0
Requires: python-idna >= 2.1
Requires: python-packaging
Requires: python-pyasn1 >= 0.1.8
Requires: python-setuptools >= 11.3
Requires: python-six >= 1.4.1
%requires_eq python-cffi
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%ifpython2
Requires: python-enum34
Requires: python-ipaddress
@ -117,7 +118,6 @@ deactivate
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE LICENSE.APACHE LICENSE.BSD
%doc AUTHORS.rst CONTRIBUTING.rst CHANGELOG.rst README.rst
%{python_sitearch}/*