forked from pool/python-scrypt
Accepting request 863918 from home:bnavigator:branches:devel:languages:python
- Fix test call (the old non-macro pytest call did conflict with _build directories from other python3 flavors) - Fix line endings and remove interpreter lines in sitelib OBS-URL: https://build.opensuse.org/request/show/863918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scrypt?expand=0&rev=11
This commit is contained in:
parent
467bc15c8e
commit
44e4e8be92
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 17 21:50:47 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix test call (the old non-macro pytest call did conflict with
|
||||||
|
_build directories from other python3 flavors)
|
||||||
|
- Fix line endings and remove interpreter lines in sitelib
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 1 14:31:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Tue Dec 1 14:31:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-scrypt
|
# spec file for package python-scrypt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,18 +22,16 @@ Version: 0.8.17
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Bindings for scrypt
|
Summary: Bindings for scrypt
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://bitbucket.org/mhallin/py-scrypt
|
URL: https://github.com/holgern/py-scrypt
|
||||||
Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
# SECTION test requires
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
# /SECTION
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -41,6 +39,8 @@ Bindings for the scrypt key derivation function library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n scrypt-%{version}
|
%setup -q -n scrypt-%{version}
|
||||||
|
dos2unix -R README.rst scrypt/*.py
|
||||||
|
sed -i '1{/^#!/ d}' scrypt/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -50,7 +50,7 @@ Bindings for the scrypt key derivation function library.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -mpytest
|
%pyunittest_arch discover -s scrypt/tests -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user