%global srcname blindspin
%global _description\
Spinner class to show a simple spinner where a progress bar is not a\
feasible option.
Name: python-%{srcname}
Version: 2.0.1
Release: 2%{?dist}
Summary: Braille Spinner for Click
License: MIT
URL: https://github.com/kennethreitz/blindspin
Source0: https://github.com/kennethreitz/blindspin/archive/v%{version}/%{srcname}/%{srcname}-%{version}.tar.gz
#Source0: https://files.pythonhosted.org/packages/source/b/%%{srcname}/%%{srcname}-%%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
# tests deps, click spinner not available yet:
#BuildRequires: python3dist(click)
#BuildRequires: python3dist(click-spinner)
#BuildRequires: python3dist(pytest)
#BuildRequires: python3dist(six)
%description %_description
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname} %_description
%prep
%autosetup -n %{srcname}-%{version}
# Remove bundled egg-info
rm -rf %{srcname}.egg-info
%build
%py3_build
%install
%py3_install
#check
#__python3 -m pytest -v
%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
%changelog
* Sat Jun 23 2018 Miro HronĨok <mhroncok@redhat.com> - 2.0.1-2
- Prepare for tests
- Remove unneeded runtime requirements
* Fri Jun 08 2018 Dhanesh B. Sabane <dhanesh95@fedoraproject.org> - 2.0.1-1
- Initial package.