LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

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

Name:           python27-%{pypi_name}
Version:        2.2.1
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

%{?filter_provides_in: %filter_provides_in %{python27_sitearch}/%{pypi_name}/hazmat/bindings/.*\.so}

BuildRequires:  epel-rpm-macros
BuildRequires:  python27-devel
BuildRequires:  python27-cffi >= 1.7
BuildRequires:  python27-setuptools
BuildRequires:  openssl-devel

Requires:       python27-asn1crypto >= 0.21.0
Requires:       python27-cffi >= 1.7
Requires:       python27-enum34
Requires:       python27-idna >= 2.1
Requires:       python27-ipaddress
Requires:       python27-six >= 1.4.1
Requires:	    openssl

%description
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
%py27_build

%install
%py27_install

%files -n python27-%{pypi_name}
%license LICENSE LICENSE.APACHE LICENSE.BSD
%doc README.rst
%{python27_sitearch}/%{pypi_name}
%{python27_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Fri Dec 25 2018 Yunfei Shi <shiyf2@lenovo.com> - 2.2.1-1
- Upgrade to 2.2.1.

* 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.