%global pypi_name matplotlib-scalebar %global _description %{expand: Provides a new artist for matplotlib to display a scale bar, aka micron bar. It is particularly useful when displaying calibrated images plotted using plt.imshow(…). The artist supports customization either directly from the ScaleBar object or from the matplotlibrc.} Name: python-%{pypi_name} Version: 0.6.1 Release: 2%{?dist} Summary: Artist for matplotlib to display a scale bar License: BSD URL: https://pypi.python.org/pypi/%{pypi_name} Source0: %pypi_source %{pypi_name} BuildArch: noarch %{?python_enable_dependency_generator} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: %{py3_dist matplotlib} BuildRequires: %{py3_dist nose} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' matplotlib_scalebar/test*py %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/matplotlib_scalebar-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/matplotlib_scalebar %changelog * Thu Jan 30 2020 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 28 2019 Ankur Sinha - 0.6.1-1 - Update to latest release * Thu Oct 03 2019 Miro Hrončok - 0.6.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 19 2019 Ankur Sinha - 0.6.0-1 - Initial build