14
0
Files
python-oscrypto/python-oscrypto.spec
Markéta Machová 507e0bbc5b Accepting request 1008026 from home:yarunachalam:branches:devel:languages:python
- Update to 1.3.0
  * Add support for OpenSSL 3.0
  * Add first-class support for RSASSA-PSS certificates
  * Add user-friendly handling of the error message with TLS on macOS when a ceritificate has a lifetime that is longer than the CAB forum guidelines
  * Fix AES 192/256 encryption on OpenSSL and Windows to allow no padding when plaintext is an exact multiple of 16 bytes long. Previously AES192
    would require plaintext with a length that was a multiple of 24 AND 16, and AES256 would require plaintext with a length that was a multiple of 32.
  * Add the ability to skip tests that require internet connectivity via @jnahmias
  * Fix a bug throwing an exception when passing an invalid type to asymmetric.load_public_key() via @Arbitrage0
  * Fix a number of typos in doc strings via @frennkie and @kianmeng 

- Update to 1.2.1
  * Fix running in an environment with a custom OpenSSL install on macOS 10.15
  * Fix compatibility with macOS 11, where ctype.find_library() no longer works due to system .dylibs no longer being present on the filesystem
  * Handle the Mac EPROTOTYPE error that may be returned when a TLS connection is terminated
  * Fixed the oscrypto-tests sdist on PyPi to work properly to generate a .whl

OBS-URL: https://build.opensuse.org/request/show/1008026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oscrypto?expand=0&rev=7
2022-10-05 14:53:54 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-oscrypto%{psuffix}
Version: 1.3.0
Release: 0
Summary: Python crypto using OS libraries
License: MIT
Group: Development/Languages/Python
URL: https://github.com/wbond/oscrypto
Source: https://github.com/wbond/oscrypto/archive/%{version}.tar.gz#/oscrypto-%{version}.tar.gz
BuildRequires: %{python_module asn1crypto >= 1.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
# needed for TrustListTests to succeed
BuildRequires: ca-certificates
BuildRequires: ca-certificates-mozilla
%endif
BuildArch: noarch
Requires: python-asn1crypto >= 1.0.0
%python_subpackages
%description
TLS (SSL) sockets, key generation, encryption, decryption, signing, verification
and KDFs using the OS crypto libraries. Does not require a compiler, and relies
on the OS for patching. Works on Windows, OS X and Linux/BSD.
%prep
%setup -q -n oscrypto-%{version}
# /docs has a different readme.md file - should not overwrite main readme.md
mv docs/readme.md docs/docs_readme.md
%build
%python_build
%if %{with test}
%check
# TLSTests need network connectivity -> diabled with regular expression
%python_exec run.py tests ^\(\?\!test_tls\)
%endif
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc readme.md changelog.md docs/*
%{python_sitelib}/*
%endif
%changelog