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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user