From 7452395116bdbe5d6a7bbde4bb13c28ff8fb3e53d658c765e44dc689089c1912 Mon Sep 17 00:00:00 2001 From: Stephan Barth Date: Mon, 24 Apr 2017 13:36:05 +0000 Subject: [PATCH] Accepting request 489058 from home:DocB:branches:devel:languages:python singlespec changes OBS-URL: https://build.opensuse.org/request/show/489058 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=3 --- python-bcrypt.changes | 5 +++++ python-bcrypt.spec | 28 +++++++++++++++++++--------- 2 files changed, 24 insertions(+), 9 deletions(-) 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