python-bcrypt/python-bcrypt.spec
ExtinctFire f0497608ef Don't emit warnings in test_kdf, there's no point whoops here
Signed-off-by: ExtinctFire <shenyining_00@126.com>
2021-02-27 11:27:20 +08:00

63 lines
1.8 KiB
RPMSpec

Name: python-bcrypt
Summary: Good password hashing for your software and your servers
Version: 3.1.4
Release: 9
License: ASL 2.0 and Public Domain and BSD
URL: http://pypi.python.org/pypi/bcrypt
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
Patch6000: backport-Don-t-emit-warnings-here-there-s-no-point-137.patch
BuildRequires: gcc
BuildRequires: python3-devel python3-setuptools python3-cffi python3-six python3-pytest
%description
Good password hashing for your software and your servers.
This library should be compatible with py-bcrypt and it will run on Python 2.7, 3.4+, and PyPy 2.6+.
%package -n python3-bcrypt
Summary: Good password hashing for your software and your servers
Requires: python3-six python3-cffi
Conflicts: python3-py-bcritp
Provides: python3-py-bcrypt = 0.4-11
Obsoletes: python3-py-bcrypt < 0.4-11
%{?python_provide:%python_provide python3-bcrypt}
%description -n python3-bcrypt
Good password hashing for your software and your servers.
This library should be compatible with py-bcrypt and it will run on Python 3.4+ and PyPy 2.6+.
%prep
%autosetup -n bcrypt-%{version} -p1
%build
%py3_build
%install
%py3_install
#find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';'
%check
%{__python3} setup.py test
%files -n python3-bcrypt
%doc README.rst
%license LICENSE
%{python3_sitearch}/bcrypt/
%{python3_sitearch}/bcrypt-%{version}*
%changelog
* Sat Feb 27 2021 extinctfire <shenyining_00@126.com> - 3.1.4-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Don't emit warning in test_kdf, there's no point whoops here
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 3.1.4-8
- remove python2-bcrypt subpackage
* Wed Nov 13 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.4-7
- init package