%global with_tests 0%{?_with_tests:0} Name: python-semantic_version Version: 2.6.0 Release: 10 Summary: Plugin for implementing the semantic version License: BSD URL: https://github.com/rbarrois/python-semanticversion Source0: https://github.com/rbarrois/python-semanticversion/archive/v%{version}/semantic_version-%{version}.tar.gz BuildArch: noarch %description This small python library provides a few tools to handle semantic versioning in Python. %package -n python3-semantic_version Summary: Plugin for implementing the semantic version BuildRequires: python3-devel python3-setuptools %{?python_provide:%python_provide python3-semantic_version} %description -n python3-semantic_version This small python library provides a few tools to handle semantic versioning in Python. %package help Summary: Documentation for python-semantic_version BuildRequires: python3-sphinx Provides: python-semantic_version-doc = %{version}-%{release} Obsoletes: python-semantic_version-doc < %{version}-%{release} %description help Plugin for implementing the semantic version. %prep %autosetup -n python-semanticversion-%{version} rm -rf semantic_version.egg-info rm docs/credits.rst %build %py3_build sphinx-build-%{python3_version} docs html rm -rf html/.{doctrees,buildinfo} %install %py3_install %check %if %{with_tests} %{__python3} setup.py test %endif %files -n python3-semantic_version %license LICENSE %{python3_sitelib}/semantic_version*/ %files help %license LICENSE %doc html %changelog * Wed Oct 21 2020 zhanghua - 2.6.0-10 - remove python2 subpackage * Mon Jan 13 2020 Lei Zhang - 2.6.0-9 - remove django build depend * Tue Jan 09 2020 openEuler Buildteam - 2.6.0-8 - Package init