14
0
forked from pool/python-scrypt

Accepting request 689329 from home:pgajdos

- version update to 0.8.13
  * improve build for conda forge
  * Add SCRYPT_WINDOWS_LINK_LEGACY_OPENSSL environment variable,
    when set, openssl 1.0.2 is linked
  * fix build for conda feedstock
  * use the static libcrypto_static for windows and openssl 1.1.1
- enable testsuite
- package LICENSE

OBS-URL: https://build.opensuse.org/request/show/689329
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scrypt?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2019-03-28 13:40:32 +00:00
committed by Git OBS Bridge
parent 23f2e5535e
commit 1e5f39a209
4 changed files with 26 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-scrypt
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,13 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-scrypt
Version: 0.8.6
Version: 0.8.13
Release: 0
Summary: Bindings for scrypt
License: BSD-2-Clause
@@ -29,8 +29,11 @@ BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: pkgconfig(openssl)
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(openssl)
# SECTION test requires
BuildRequires: %{python_module pytest}
# /SECTION
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
@@ -47,9 +50,13 @@ Bindings for the scrypt key derivation function library.
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -mpytest
%files %{python_files}
%defattr(-,root,root)
%doc README.rst
%license LICENSE
%pycache_only %{python_sitearch}/scrypt/__pycache__
%{python_sitearch}/_scrypt*.so
%{python_sitearch}/scrypt/