|
|
4b9e776 |
# Created by pyp2rpm-3.3.4
|
|
|
4b9e776 |
%global pypi_name click-spinner
|
|
|
eea4ad4 |
%global commit b27b8d1e2785ce75be1433e579e05193a9b3a782
|
|
|
eea4ad4 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
4b9e776 |
|
|
|
4b9e776 |
Name: python-%{pypi_name}
|
|
|
4b9e776 |
Version: 0.1.10
|
|
|
eea4ad4 |
Release: %autorelease
|
|
|
4b9e776 |
Summary: Spinner for Click
|
|
|
4b9e776 |
|
|
|
4b9e776 |
License: MIT
|
|
|
4b9e776 |
URL: https://github.com/click-contrib/click-spinner
|
|
|
eea4ad4 |
# We *should* use the latest release + upstream's pull request #39, but versioneer plays with the output of git-archive
|
|
|
eea4ad4 |
# This prevents us cleanly applying upstream's patch, so we have to do the next best thing and pull that commit
|
|
|
eea4ad4 |
# If upstream publishes a new release, we can remove this
|
|
|
eea4ad4 |
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
4b9e776 |
BuildArch: noarch
|
|
|
4b9e776 |
|
|
|
e1359a5 |
Provides: python-blindspin = %{version}-%{release}
|
|
|
e1359a5 |
Obsoletes: python-blindspin < 2.0.1
|
|
|
e1359a5 |
|
|
|
4b9e776 |
%description
|
|
|
4b9e776 |
Click Spinner shows the user some progress when a progress bar is
|
|
|
4b9e776 |
not suitable because you don’t know how much longer it would take.
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%package -n python3-%{pypi_name}
|
|
|
4b9e776 |
Summary: %{summary}
|
|
|
4b9e776 |
|
|
|
eea4ad4 |
BuildRequires: sed
|
|
|
eea4ad4 |
|
|
|
4b9e776 |
BuildRequires: python3-devel
|
|
|
4b9e776 |
BuildRequires: python3dist(click)
|
|
|
4b9e776 |
BuildRequires: python3dist(pytest)
|
|
|
4b9e776 |
BuildRequires: python3dist(setuptools)
|
|
|
4b9e776 |
BuildRequires: python3dist(six)
|
|
|
eea4ad4 |
BuildRequires: python3dist(wheel)
|
|
|
eea4ad4 |
BuildRequires: python3dist(pip)
|
|
|
4b9e776 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%description -n python3-%{pypi_name}
|
|
|
4b9e776 |
Click Spinner shows the user some progress when a progress bar is
|
|
|
4b9e776 |
not suitable because you don’t know how much longer it would take.
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%prep
|
|
|
eea4ad4 |
%autosetup -n %{pypi_name}-%{commit}
|
|
|
eea4ad4 |
# These are bad and should be removed once upstream takes a release
|
|
|
eea4ad4 |
sed -i "s/versioneer.get_version()/'%{version}'/g" setup.py
|
|
|
eea4ad4 |
sed -i "s/description-file/description_file/g" setup.py
|
|
|
eea4ad4 |
sed -i "/from . import _version/d" click_spinner/__init__.py
|
|
|
eea4ad4 |
sed -i "s/_version.get_versions()\['version'\]/'%{version}'/g" click_spinner/__init__.py
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%build
|
|
|
eea4ad4 |
%pyproject_wheel
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%install
|
|
|
eea4ad4 |
%pyproject_install
|
|
|
eea4ad4 |
%pyproject_save_files click_spinner
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%check
|
|
|
4b9e776 |
%pytest -v tests
|
|
|
eea4ad4 |
%pyproject_check_import
|
|
|
4b9e776 |
|
|
|
eea4ad4 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
4b9e776 |
%doc README.md
|
|
|
eea4ad4 |
%license LICENSE
|
|
|
4b9e776 |
|
|
|
4b9e776 |
%changelog
|
|
|
eea4ad4 |
%autochangelog
|