diff --git a/python-cryptography.changes b/python-cryptography.changes index bad330e..d102538 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -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 diff --git a/python-cryptography.spec b/python-cryptography.spec index f67ad94..ad95ef2 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -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}/*