LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-cryptography.spec of Package python-cryptography (Project home:lenovo-lico:lico-dep:5.1:el6)

%{!?_licensedir:%global license %%doc}
%global pypi_name cryptography

Name:           python-%{pypi_name}
Version:        2.1.4
Release:        2%{?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:  epel-rpm-macros
BuildRequires:  python2-devel
BuildRequires:  python2-cffi >= 1.7
BuildRequires:  python2-setuptools
BuildRequires:  openssl-devel

%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}}
# Don't want provides for python shared objects
%{?filter_provides_in: %filter_provides_in %{python2_sitearch}/%{pypi_name}/hazmat/bindings/.*\.so}

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

%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}
%license LICENSE LICENSE.APACHE LICENSE.BSD
%doc README.rst
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Fri Dec 29 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.1.4-2
- Add python27-cryptography for python2.7 on el6.

* Fri Dec 22 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.1.4-1
- Initial package.