forked from pool/python-bcrypt
Dirk Mueller
1ca984e8b3
initial package for python-bcrypt OBS-URL: https://build.opensuse.org/request/show/432642 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=1
60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-bcrypt
|
|
#
|
|
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-bcrypt
|
|
Version: 3.1.1
|
|
Release: 0
|
|
Summary: Modern password hashing for your software and your servers
|
|
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: fdupes
|
|
BuildRequires: pkgconfig(libffi)
|
|
BuildRequires: python-cffi
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-pytest
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-six
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Modern password hashing for your software and your servers.
|
|
|
|
%prep
|
|
%setup -q -n bcrypt-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
%fdupes -s %{buildroot}/%{python_sitearch}
|
|
|
|
%check
|
|
python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.rst
|
|
%{python_sitearch}/bcrypt
|
|
%{python_sitearch}/bcrypt-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|