forked from pool/python-cryptography
Accepting request 234746 from home:matejcik:branches:devel:languages:python
- update to 0.4 * added IDEA algorithm * added HOTP, TOTP and CMAC primitives * improved support for RSA and DSA public key cryptography - include cryptography_vectors as a source, in order to run the full test suite (cryptography_vectors seems only useful for testing this module, so it's probably not worth making a separate installable package for it) - drop upstreamed cryptography-custom-install-cmd.patch OBS-URL: https://build.opensuse.org/request/show/234746 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
4708b8f1b5
commit
2f7c228585
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-cryptography
|
||||
Version: 0.2.1
|
||||
Version: 0.4
|
||||
Release: 0
|
||||
Url: https://cryptography.io/en/latest/
|
||||
Summary: Python library which exposes cryptographic recipes and primitives
|
||||
@@ -26,8 +26,8 @@ Group: Development/Languages/Python
|
||||
Source0: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
|
||||
Source1: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
|
||||
Source2: %{name}.keyring
|
||||
# PATCH-FIX-UPSTREAM speilicke@suse.com -- Backport of https://github.com/pyca/cryptography/pull/872
|
||||
Patch0: cryptography-custom-install-cmd.patch
|
||||
Source3: https://pypi.python.org/packages/source/c/cryptography/cryptography_vectors-%{version}.tar.gz
|
||||
Source4: https://pypi.python.org/packages/source/c/cryptography/cryptography_vectors-%{version}.tar.gz.asc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{suse_version} && 0%{?suse_version} >= 1220
|
||||
BuildRequires: gpg-offline
|
||||
@@ -40,6 +40,7 @@ BuildRequires: python-six >= 1.4.1
|
||||
# Test requirements
|
||||
BuildRequires: python-iso8601
|
||||
BuildRequires: python-pretend
|
||||
BuildRequires: python-pyasn1
|
||||
BuildRequires: python-pytest
|
||||
Requires: python-cffi >= 0.8
|
||||
Requires: python-six >= 1.4.1
|
||||
@@ -66,17 +67,22 @@ functions.
|
||||
%gpg_verify %{SOURCE1}
|
||||
%endif
|
||||
%setup -q -n cryptography-%{version}
|
||||
%patch0 -p1
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
#TODO(saschpe): Failing on SP3, debug later:
|
||||
rm tests/hazmat/primitives/test_rsa.py
|
||||
%endif
|
||||
|
||||
# prepare vectors module
|
||||
tar xvzf %{S:3}
|
||||
mv cryptography_vectors-%{version}/cryptography_vectors .
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
# do not install cryptography_vectors
|
||||
rm -r %{buildroot}%{python_sitearch}/cryptography_vectors
|
||||
|
||||
%check
|
||||
py.test
|
||||
|
Reference in New Issue
Block a user