File python-bcrypt.spec of Package python-bcrypt

# Created by pyp2rpm-3.2.3
%global pypi_name bcrypt

Name:           python-%{pypi_name}
Version:        3.1.4
Release:        1%{?dist}
Summary:        Modern password hashing for your software and your servers

License:        Apache License, Version 2.0
URL:            https://github.com/pyca/bcrypt/
Source0:        https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 
BuildRequires:  python2-devel
BuildRequires:  python2-cffi >= 1.1
BuildRequires:  python2-setuptools

%global __provides_exclude_from ^(%{python2_sitearch}/%{pypi_name}/.*\.so)$

%description
Modern password hashing for your software and your servers.

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
 
Requires:       python2-cffi >= 1.1
Requires:       python2-six >= 1.4.1

%description -n python2-%{pypi_name}
Modern password hashing for your software and your servers.


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build

%install
%py2_install

%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE
%endif
%doc README.rst
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Tue Dec 26 2017 Yunfei Shi <shiyf2@lenovo.com> - 3.1.4-1
- Initial package.
openSUSE Build Service is sponsored by