diff --git a/python-bcrypt.changes b/python-bcrypt.changes index 532bb73..b7888c4 100644 --- a/python-bcrypt.changes +++ b/python-bcrypt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 17 08:41:04 UTC 2017 - axel.braun@gmx.de + +- changes for singlespec + ------------------------------------------------------------------- Wed Oct 5 11:57:45 UTC 2016 - dmueller@suse.com diff --git a/python-bcrypt.spec b/python-bcrypt.spec index d3ed332..d8993d8 100644 --- a/python-bcrypt.spec +++ b/python-bcrypt.spec @@ -16,6 +16,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-bcrypt Version: 3.1.1 @@ -25,16 +26,18 @@ License: APL-1.0 Group: Development/Languages/Python Url: https://github.com/pyca/bcrypt/ Source: https://pypi.io/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz +BuildRequires: python-rpm-macros BuildRequires: fdupes -BuildRequires: python-cffi -BuildRequires: python-devel -BuildRequires: python-pytest -BuildRequires: python-setuptools -BuildRequires: python-six +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: pkgconfig(libffi) -Requires: python-six +Requires: python-six %requires_eq python-cffi BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages %description Modern password hashing for your software and your servers. @@ -44,16 +47,23 @@ Modern password hashing for your software and your servers. %build export CFLAGS="%{optflags} -fno-strict-aliasing" -python setup.py build +%python_build +#python setup.py build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +#python setup.py install --prefix=%{_prefix} --root=%{buildroot} %fdupes -s %{buildroot}/%{python_sitearch} %check +%ifpython2 python setup.py test +%endif +%ifpython3 +python3 setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitearch}/bcrypt