diff --git a/bcrypt-4.1.3.tar.gz b/bcrypt-4.1.3.tar.gz deleted file mode 100644 index 52060075694a3641ec54f0ea4b3904bd5965b193..0000000000000000000000000000000000000000 Binary files a/bcrypt-4.1.3.tar.gz and /dev/null differ diff --git a/bcrypt-4.2.0.tar.gz b/bcrypt-4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..31f6de1424a8317cc1afbd6bf6c878ec4b5574dc Binary files /dev/null and b/bcrypt-4.2.0.tar.gz differ diff --git a/python-bcrypt.spec b/python-bcrypt.spec index 81b80d3f717904b09a47ce7c085473b5e2f54a99..8e69301e315ba5604acade17abe66730ba00fd06 100644 --- a/python-bcrypt.spec +++ b/python-bcrypt.spec @@ -1,6 +1,6 @@ %global _empty_manifest_terminate_build 0 Name: python-bcrypt -Version: 4.1.3 +Version: 4.2.0 Release: 1 Summary: Modern password hashing for your software and your servers License: Apache-2.0 @@ -15,13 +15,15 @@ Summary: Modern password hashing for your software and your servers Provides: python-bcrypt BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-setuptools-rust BuildRequires: rust cargo BuildRequires: python3-cffi BuildRequires: gcc BuildRequires: python3-six BuildRequires: python3-pytest +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit %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+. @@ -37,48 +39,31 @@ This library should be compatible with py-bcrypt and it will run on Python 2.7, %autosetup -n bcrypt-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install - +%pyproject_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 export PYTHONPATH=%{buildroot}%{python3_sitearch} pytest -%files -n python3-bcrypt -f filelist.lst -%dir %{python3_sitearch}/* +%files -n python3-bcrypt +%{python3_sitearch}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Thu Oct 17 2024 jiangxinyu - 4.2.0-1 +- Update package to version 4.2.0 +- Switch to using the new pyo3 syntax for declarative modules + Update for new ruff syntax + * Sat May 11 2024 wangxiaomeng - 4.1.3-1 - Update to 4.1.3 - Dropped support for Python 3.6.