2021-07-14 11:05:00 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-bcrypt
|
2023-04-28 13:52:18 +08:00
|
|
|
Version: 3.2.2
|
|
|
|
|
Release: 1
|
2021-07-14 11:05:00 +08:00
|
|
|
Summary: Modern password hashing for your software and your servers
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://github.com/pyca/bcrypt/
|
2023-04-28 13:52:18 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
2019-11-19 11:53:31 +08:00
|
|
|
%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+.
|
|
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
%package -n python3-bcrypt
|
|
|
|
|
Summary: Modern password hashing for your software and your servers
|
|
|
|
|
Provides: python-bcrypt
|
2022-06-20 14:17:36 +08:00
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-cffi
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
%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 2.7, 3.4+, and PyPy 2.6+.
|
2019-11-19 11:53:31 +08:00
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
%package help
|
|
|
|
|
Summary: Modern password hashing for your software and your servers
|
|
|
|
|
Provides: python3-bcrypt-doc
|
|
|
|
|
%description help
|
2019-11-19 11:53:31 +08:00
|
|
|
Good password hashing for your software and your servers.
|
2021-07-14 11:05:00 +08:00
|
|
|
This library should be compatible with py-bcrypt and it will run on Python 2.7, 3.4+, and PyPy 2.6+.
|
2019-11-19 11:53:31 +08:00
|
|
|
|
|
|
|
|
%prep
|
2023-04-28 13:52:18 +08:00
|
|
|
%autosetup -n bcrypt-%{version} -p1
|
2019-11-19 11:53:31 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
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 .
|
2019-11-19 11:53:31 +08:00
|
|
|
|
|
|
|
|
%check
|
2023-04-28 13:52:18 +08:00
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|
|
|
|
pytest
|
2019-11-19 11:53:31 +08:00
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
%files -n python3-bcrypt -f filelist.lst
|
|
|
|
|
%dir %{python3_sitearch}/*
|
2019-11-19 11:53:31 +08:00
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
2019-11-19 11:53:31 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-04-28 13:52:18 +08:00
|
|
|
* Fri Apr 28 2023 yaoxin <yao_xin001@hoperun.com> - 3.2.2-1
|
|
|
|
|
- Update to 3.2.2
|
|
|
|
|
|
2022-06-20 14:17:36 +08:00
|
|
|
* Mon Jun 20 2022 tanyulong <tanyulong@kylinos.cn> - 3.2.0-2
|
|
|
|
|
- Delete unnecessary gdb from BuildRequires
|
|
|
|
|
|
2021-07-14 11:05:00 +08:00
|
|
|
* Wed Jul 14 2021 OpenStack_SIG <openstack@openeuler.org> - 3.2.0-1
|
|
|
|
|
- Upgrade to version 3.2.0
|
|
|
|
|
|
2021-02-27 10:31:59 +08:00
|
|
|
* 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
|
|
|
|
|
|
2020-10-29 17:18:35 +08:00
|
|
|
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 3.1.4-8
|
|
|
|
|
- remove python2-bcrypt subpackage
|
|
|
|
|
|
2019-11-19 11:53:31 +08:00
|
|
|
* Wed Nov 13 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.4-7
|
|
|
|
|
- init package
|