# Created by pyp2rpm-3.2.2 %global pypi_name setuptools_scm Name: python-%{pypi_name} Version: 2.1.0 Release: 1%{?dist} Summary: the blessed package to manage your versions by scm tags License: MIT URL: https://github.com/pypa/setuptools_scm/ Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %description setuptools_scm :code:setuptools_scm handles managing your python package versions in scm metadata instead of declaring them as the version argument or in a scm managed file.It also handles file finders for the supported scm's. Setup.py usage To use setuptools_scm just modify your project's setup.py file like this:1. Add :code:'setuptools_scm' to the :code:setup_requires parameter 2. Add the... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} setuptools_scm :code:setuptools_scm handles managing your python package versions in scm metadata instead of declaring them as the version argument or in a scm managed file.It also handles file finders for the supported scm's. Setup.py usage To use setuptools_scm just modify your project's setup.py file like this:1. Add :code:'setuptools_scm' to the :code:setup_requires parameter 2. Add the... %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} %license LICENSE %doc README.rst %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Sun May 13 2018 mockbuilder - 2.1.0-1 - Initial package.