commit 031142fbd8040df3484fe5edf0bb3c77163d51b5a2de8ca4058dbc248d5dac1e Author: Matej Cepl Date: Mon Jun 24 17:12:03 2019 +0000 Accepting request 711704 from home:cunix:pythondevel %{psuffix} added to Name OBS-URL: https://build.opensuse.org/request/show/711704 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oscrypto?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/oscrypto-0.19.1.tar.gz b/oscrypto-0.19.1.tar.gz new file mode 100644 index 0000000..ac22d79 --- /dev/null +++ b/oscrypto-0.19.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a07fb15d2d4f0ee1fe6d447410584f92db330e4c80c874a2dd03840922bdfbb8 +size 273546 diff --git a/python-oscrypto.changes b/python-oscrypto.changes new file mode 100644 index 0000000..51339a5 --- /dev/null +++ b/python-oscrypto.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jun 12 20:00:00 UTC 2019 - cunix@mail.de + +- Initial package diff --git a/python-oscrypto.spec b/python-oscrypto.spec new file mode 100644 index 0000000..da77522 --- /dev/null +++ b/python-oscrypto.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-oscrypto +# +# Copyright (c) 2019 cunix +# +# 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: 0.19.1 +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/oscrypto-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module asn1crypto >= 0.22.0} +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 >= 0.22.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 readme.md 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