File python-cryptography.spec of Package python-cryptography

#
# spec file for package python-cryptography
#
# Copyright (c) 2018 COMBES Pascal <pascom@orange.fr>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:		python-cryptography
Version:	2.9
Release:	0
Summary:	Cryptographic recipes and primitives for Python
Url:		https://cryptography.io/en/latest/
License:	Apache-2.0 OR BSD-3-Clause
Group:		Development/Languages/Python
Source0:	cryptography-%{version}.tar.gz
BuildRequires:	python-rpm-macros
BuildRequires:	fdupes
BuildRequires:	%{python_module devel}
BuildRequires:	%{python_module setuptools >= 20.2}
BuildRequires:	%{python_module cffi >= 1.7}
BuildRequires:	%{python_module pycparser}
BuildRequires:	%{python_module xml}
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(openssl)

%python_subpackages

%description
This package contains a Python library exposing cryptographic recipes and
primitives. Our goal is for it to be your "cryptographic standard library".
It supports Python 2.6-2.7, Python 3.2+ and Pypy.

The library includes both high level recipes, and low level interfaces
to common cryptographic algorithms such as symmetric ciphers, message digests
and key derivation functions.

%prep
%setup -q -n cryptography-%{version}

%build
%python_build

%install
%python_install
%fdupes %{buildroot}%{_prefix}

%files %{python_files}
%{python_sitearch}/*

%changelog

openSUSE Build Service is sponsored by