Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3d37f1e368
!27 Update to 3.2.2
From: @starlet-dx 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-28 06:01:10 +00:00
starlet-dx
2b14c109ec Update to 3.2.2 2023-04-28 13:52:18 +08:00
openeuler-ci-bot
c865328ddc
!20 Delete unnecessary gdb from BuildRequires
From: @tanyulong2021 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-28 06:09:18 +00:00
tanyulong2021
5af2946458 Delete unnecessary gdb from BuildRequires 2022-06-20 14:17:36 +08:00
openeuler-ci-bot
d29db1f4ec !18 Upgrade package version for OpenStack Wallaby support
From: @sean-lau
Reviewed-by: 
Signed-off-by:
2021-08-20 01:14:26 +00:00
sean-lau
fce41c51e8 Add package for OpenStack Wallaby support 2021-08-11 09:54:18 +08:00
openeuler-ci-bot
68b983c1b7 !8 Don't emit warning in test_kdf, there's no point whoops here
From: @extinctfire
Reviewed-by: @licihua,@small_leek
Signed-off-by: @licihua,@small_leek
2021-02-27 14:49:46 +08:00
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
openeuler-ci-bot
88281bdee5 !5 remove python2-bcrypt subpackage
From: @jinzhimin369
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-29 20:23:10 +08:00
jinzhimin369
83eac744ef remove python2-bcrypt subpackage 2020-10-29 17:18:35 +08:00
3 changed files with 74 additions and 48 deletions

Binary file not shown.

BIN
bcrypt-3.2.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,73 +1,99 @@
%global _empty_manifest_terminate_build 0
Name: python-bcrypt Name: python-bcrypt
Summary: Good password hashing for your software and your servers Version: 3.2.2
Version: 3.1.4 Release: 1
Release: 7 Summary: Modern password hashing for your software and your servers
License: ASL 2.0 and Public Domain and BSD License: Apache-2.0
URL: http://pypi.python.org/pypi/bcrypt URL: https://github.com/pyca/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: 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: Modern password hashing for your software and your servers
Requires: python3-six python3-cffi Provides: python-bcrypt
Conflicts: python3-py-bcritp
Provides: python3-py-bcrypt = 0.4-11
Obsoletes: python3-py-bcrypt < 0.4-11
%{?python_provide:%python_provide python3-bcrypt}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-cffi
BuildRequires: gcc
BuildRequires: python3-six
BuildRequires: python3-pytest
%description -n python3-bcrypt %description -n python3-bcrypt
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 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 help
Summary: Modern password hashing for your software and your servers
Provides: python3-bcrypt-doc
%description help
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+.
%prep %prep
%autosetup -n bcrypt-%{version} %autosetup -n bcrypt-%{version} -p1
%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 {} ';' install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
#find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';' if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check %check
%{__python2} setup.py test export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{__python3} setup.py test pytest
%files -n python2-bcrypt %files -n python3-bcrypt -f filelist.lst
%doc README.rst %dir %{python3_sitearch}/*
%license LICENSE
%{python2_sitearch}/bcrypt/
%{python2_sitearch}/bcrypt-%{version}*
%files -n python3-bcrypt
%doc README.rst
%license LICENSE
%{python3_sitearch}/bcrypt/
%{python3_sitearch}/bcrypt-%{version}*
%files help -f doclist.lst
%{_docdir}/*
%changelog %changelog
* Fri Apr 28 2023 yaoxin <yao_xin001@hoperun.com> - 3.2.2-1
- Update to 3.2.2
* Mon Jun 20 2022 tanyulong <tanyulong@kylinos.cn> - 3.2.0-2
- Delete unnecessary gdb from BuildRequires
* Wed Jul 14 2021 OpenStack_SIG <openstack@openeuler.org> - 3.2.0-1
- Upgrade to version 3.2.0
* 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 * Wed Nov 13 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.4-7
- init package - init package