!5 remove python2-bcrypt subpackage
From: @jinzhimin369 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
88281bdee5
@ -1,29 +1,18 @@
|
|||||||
Name: python-bcrypt
|
Name: python-bcrypt
|
||||||
Summary: Good password hashing for your software and your servers
|
Summary: Good password hashing for your software and your servers
|
||||||
Version: 3.1.4
|
Version: 3.1.4
|
||||||
Release: 7
|
Release: 8
|
||||||
License: ASL 2.0 and Public Domain and BSD
|
License: ASL 2.0 and Public Domain and BSD
|
||||||
URL: http://pypi.python.org/pypi/bcrypt
|
URL: http://pypi.python.org/pypi/bcrypt
|
||||||
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc python2-devel python2-setuptools python2-six python2-pytest python2-cffi
|
BuildRequires: gcc
|
||||||
BuildRequires: python3-devel python3-setuptools python3-cffi python3-six python3-pytest
|
BuildRequires: python3-devel python3-setuptools python3-cffi python3-six python3-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Good password hashing for your software and your servers.
|
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+.
|
This library should be compatible with py-bcrypt and it will run on Python 2.7, 3.4+, and PyPy 2.6+.
|
||||||
|
|
||||||
%package -n python2-bcrypt
|
|
||||||
Summary: Good password hashing for your software and your servers
|
|
||||||
Requires: python2-six python2-cffi
|
|
||||||
Provides: py-bcrypt = 0.4-11
|
|
||||||
Obsoletes: py-bcrypt < 0.4-11
|
|
||||||
%{?python_provide:%python_provide python2-bcrypt}
|
|
||||||
|
|
||||||
%description -n python2-bcrypt
|
|
||||||
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 and PyPy 2.6+.
|
|
||||||
|
|
||||||
%package -n python3-bcrypt
|
%package -n python3-bcrypt
|
||||||
Summary: Good password hashing for your software and your servers
|
Summary: Good password hashing for your software and your servers
|
||||||
Requires: python3-six python3-cffi
|
Requires: python3-six python3-cffi
|
||||||
@ -40,27 +29,16 @@ This library should be compatible with py-bcrypt and it will run on Python 3.4+
|
|||||||
%autosetup -n bcrypt-%{version}
|
%autosetup -n bcrypt-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python2} setup.py build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
#find %{buildroot}%{python2_sitearch} -name '*.so' -exec chmod 755 {} ';'
|
|
||||||
|
|
||||||
#find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';'
|
#find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';'
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python2-bcrypt
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitearch}/bcrypt/
|
|
||||||
%{python2_sitearch}/bcrypt-%{version}*
|
|
||||||
|
|
||||||
%files -n python3-bcrypt
|
%files -n python3-bcrypt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -69,5 +47,8 @@ This library should be compatible with py-bcrypt and it will run on Python 3.4+
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Nov 13 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.4-7
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user