File python-cryptography.spec of Package python-cryptography
# Created by pyp2rpm-3.2.3
%global pypi_name cryptography
Name: python-%{pypi_name}
Version: 2.1.4
Release: 1%{?dist}
Summary: PyCA's cryptography library
License: BSD or Apache License, Version 2.0
URL: https://github.com/pyca/cryptography
Source0: https://pypi.io/packages/source/c/cryptography/cryptography-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python2-cffi >= 1.7
BuildRequires: python2-setuptools
BuildRequires: openssl-devel
%global __provides_exclude_from ^(%{python2_sitearch}/%{pypi_name}/hazmat/bindings/.*\.so)$
%description
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-asn1crypto >= 0.21.0
Requires: python2-cffi >= 1.7
Requires: python2-enum34
Requires: python2-idna >= 2.1
Requires: python2-ipaddress
Requires: python2-six >= 1.4.1
Requires: openssl
%if 0%{?suse_version} >= 1315
Requires: python
%endif
%description -n python2-%{pypi_name}
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%install
%py2_install
%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE LICENSE.APACHE LICENSE.BSD
%endif
%doc README.rst
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Fri Dec 22 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.1.4-1
- Initial package.