diff --git a/bcrypt-3.1.1.tar.gz b/bcrypt-3.1.1.tar.gz deleted file mode 100644 index fca5b98..0000000 --- a/bcrypt-3.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0309a4a72bd1dc314279cf1ee14e277227732f14c9b63ab96715654e13fe9321 -size 40103 diff --git a/bcrypt-3.1.3.tar.gz b/bcrypt-3.1.3.tar.gz new file mode 100644 index 0000000..013539d --- /dev/null +++ b/bcrypt-3.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6645c8d0ad845308de3eb9be98b6fd22a46ec5412bfc664a423e411cdd8f5488 +size 40806 diff --git a/python-bcrypt.changes b/python-bcrypt.changes index 00dce76..04242b2 100644 --- a/python-bcrypt.changes +++ b/python-bcrypt.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Apr 30 03:02:13 UTC 2017 - toddrme2178@gmail.com + +- Update to version 3.1.3 + * Fixed a compilation issue on Solaris. + * Added a warning when using too few rounds with kdf. +- Update to version 3.1.2 + * Fixed a compile issue affecting big endian platforms. + * Fixed invalid escape sequence warnings on Python 3.6. + * Fixed building in non-UTF8 environments on Python 2. +- Provides/Obsoletes "python-py-bcrypt" exactly. +- Change Summary/Description. Apparently "bcrypt is not "modern", + not anymore." + ------------------------------------------------------------------- Thu Apr 27 18:20:04 UTC 2017 - toddrme2178@gmail.com diff --git a/python-bcrypt.spec b/python-bcrypt.spec index 83a03d0..a06a1bb 100644 --- a/python-bcrypt.spec +++ b/python-bcrypt.spec @@ -16,34 +16,42 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without tests +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-bcrypt -Version: 3.1.1 +Version: 3.1.3 Release: 0 -Summary: Modern password hashing for your software and your servers +Summary: Password hashing for your software and your servers License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/pyca/bcrypt/ Source: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: fdupes +BuildRequires: pkgconfig(libffi) BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -BuildRequires: pkgconfig(libffi) +%if %{with tests} +BuildRequires: %{python_module pytest} +%endif Requires: python-six %requires_eq python-cffi # This is intended as a drop-in replacement for py-bcrypt Provides: python-py-bcrypt = %{version} Obsoletes: python-py-bcrypt < %{version} +%ifpython2 +Provides: %{oldpython}-py-bcrypt = %{version} +Obsoletes: %{oldpython}-py-bcrypt < %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description -Modern password hashing for your software and your servers. +Provides password hashing for your software and your servers. %prep %setup -q -n bcrypt-%{version} @@ -56,8 +64,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %python_install %python_expand %fdupes %{buildroot}/%{$python_sitearch} +%if %{with tests} %check %python_exec setup.py test +%endif %files %{python_files} %defattr(-,root,root,-)