# Created by pyp2rpm-3.3.2 %global pypi_name versioneer Name: python-%{pypi_name} Version: 0.18 Release: 1%{?dist} Summary: Easy VCS-based management of project version strings License: public domain URL: https://github.com/warner/python-versioneer Source0: https://files.pythonhosted.org/packages/source/v/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Versioneer is a tool to automatically update version strings (in setup.py and the conventional 'from PROJECT import _version' pattern) by asking your version- control system about the current tree. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) %description -n python3-%{pypi_name} Versioneer is a tool to automatically update version strings (in setup.py and the conventional 'from PROJECT import _version' pattern) by asking your version- control system about the current tree. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %doc README.md %{_bindir}/versioneer %{python3_sitelib}/__pycache__/* %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Sun Dec 22 2019 Mukundan Ragavan - 0.18-1 - Initial package.