1
0
forked from pool/python-scrypt
python-scrypt/python-scrypt.spec
Tomáš Chvátal 1e5f39a209 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
2019-03-28 13:40:32 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-scrypt
#
# 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
# 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-%{**}}
Name: python-scrypt
Version: 0.8.13
Release: 0
Summary: Bindings for scrypt
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://bitbucket.org/mhallin/py-scrypt
Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(openssl)
# SECTION test requires
BuildRequires: %{python_module pytest}
# /SECTION
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
Bindings for the scrypt key derivation function library.
%prep
%setup -q -n scrypt-%{version}
%build
%python_build
%install
%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/
%{python_sitearch}/scrypt-%{version}-py%{python_version}.egg-info
%changelog