- Update to version 3.1.3 - Provides/Obsoletes "python-py-bcrypt" exactly. - Change Summary/Description. OBS-URL: https://build.opensuse.org/request/show/492171 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=7
79 lines
2.4 KiB
RPMSpec
79 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-bcrypt
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
%bcond_without tests
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define oldpython python
|
|
Name: python-bcrypt
|
|
Version: 3.1.3
|
|
Release: 0
|
|
Summary: Password hashing for your software and your servers
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/pyca/bcrypt/
|
|
Source: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: fdupes
|
|
BuildRequires: pkgconfig(libffi)
|
|
BuildRequires: %{python_module cffi}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
%if %{with tests}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
Requires: python-six
|
|
%requires_eq python-cffi
|
|
# This is intended as a drop-in replacement for py-bcrypt
|
|
Provides: python-py-bcrypt = %{version}
|
|
Obsoletes: python-py-bcrypt < %{version}
|
|
%ifpython2
|
|
Provides: %{oldpython}-py-bcrypt = %{version}
|
|
Obsoletes: %{oldpython}-py-bcrypt < %{version}
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%python_subpackages
|
|
|
|
%description
|
|
Provides password hashing for your software and your servers.
|
|
|
|
%prep
|
|
%setup -q -n bcrypt-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitearch}
|
|
|
|
%if %{with tests}
|
|
%check
|
|
%python_exec setup.py test
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.rst
|
|
%{python_sitearch}/bcrypt
|
|
%{python_sitearch}/bcrypt-%{version}-py*.egg-info
|
|
|
|
%changelog
|