Accepting request 867499 from devel:languages:python
- OpenLeap is not SLE - Use _multibuild to only have the test dependencies as buildrequires of the test build. - Have optional test dependencies (Django and scrypt) that are not available in SLE only be buildrequired in TW. OBS-URL: https://build.opensuse.org/request/show/867499 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-passlib?expand=0&rev=24
This commit is contained in:
commit
0fa5e30311
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 28 13:47:51 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- OpenLeap is not SLE
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 28 08:50:11 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Use _multibuild to only have the test dependencies as
|
||||||
|
buildrequires of the test build.
|
||||||
|
- Have optional test dependencies (Django and scrypt) that are not
|
||||||
|
available in SLE only be buildrequired in TW.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 21 00:01:52 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Sat Nov 21 00:01:52 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-passlib
|
# spec file for package python-passlib-test
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -16,8 +16,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define skip_python2 1
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-passlib
|
Name: python-passlib%{psuffix}
|
||||||
Version: 1.7.4
|
Version: 1.7.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Password hashing framework supporting over 20 schemes
|
Summary: Password hashing framework supporting over 20 schemes
|
||||||
@ -25,16 +35,20 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://foss.heptapod.net/python-libs/passlib
|
URL: https://foss.heptapod.net/python-libs/passlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module argon2_cffi}
|
BuildRequires: %{python_module argon2_cffi}
|
||||||
BuildRequires: %{python_module bcrypt}
|
BuildRequires: %{python_module bcrypt}
|
||||||
BuildRequires: %{python_module cryptography}
|
BuildRequires: %{python_module cryptography}
|
||||||
BuildRequires: %{python_module Django}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
%if 0%{?suse_version} >= 1550 || 0%{?is_opensuse}
|
||||||
|
BuildRequires: %{python_module Django}
|
||||||
BuildRequires: %{python_module scrypt}
|
BuildRequires: %{python_module scrypt}
|
||||||
BuildRequires: %{python_module setuptools}
|
%endif
|
||||||
BuildRequires: apache2-utils
|
BuildRequires: apache2-utils
|
||||||
BuildRequires: fdupes
|
%endif
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
Recommends: python-argon2_cffi
|
Recommends: python-argon2_cffi
|
||||||
Recommends: python-bcrypt
|
Recommends: python-bcrypt
|
||||||
Recommends: python-cryptography
|
Recommends: python-cryptography
|
||||||
@ -56,16 +70,22 @@ applications.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%pytest -rs
|
%pytest -rs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README
|
%doc README
|
||||||
%{python_sitelib}/passlib
|
%{python_sitelib}/passlib
|
||||||
%{python_sitelib}/passlib-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/passlib-%{version}-py%{python_version}.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user