1 Star 0 Fork 31

guozhengxin1999/python-bcrypt

forked from src-openEuler/python-bcrypt
关闭
 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-bcrypt.spec 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
guozhengxin1999 提交于 2022-09-25 09:27 +08:00 . Upgrade package to version 4.0.0
%global _empty_manifest_terminate_build 0
Name: python-bcrypt
Version: 4.0.0
Release: 1
Summary: Modern password hashing for your software and your servers
License: Apache-2.0
URL: https://github.com/pyca/bcrypt/
Source0: https://files.pythonhosted.org/packages/99/f2/b71b9b5b2400fffac7d42c560ac89f302c4d8e328337b2f05f0a4d9e590d/bcrypt-4.0.0.tar.gz
%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: Modern password hashing for your software and your servers
Provides: python-bcrypt
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_rust
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+.
%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
%autosetup -n bcrypt-%{version}
%build
%py3_build
%install
%py3_install
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 .
%check
%{__python3} setup.py test
%files -n python3-bcrypt -f filelist.lst
%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Sun Sep 25 2022 guozhengxin <guozhengxin@kylinos.cn> - 4.0.0-1
- Upgrade package to version 4.0.0
* 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
- init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Gzx1999/python-bcrypt.git
git@gitee.com:Gzx1999/python-bcrypt.git
Gzx1999
python-bcrypt
python-bcrypt
master

搜索帮助