!5 remove python2 of package python-semantic_version

From: @zhanghua1831
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 10:09:38 +08:00 committed by Gitee
commit 6a2c9cf3f3

View File

@ -1,7 +1,7 @@
%global with_tests 0%{?_with_tests:0}
Name: python-semantic_version
Version: 2.6.0
Release: 9
Release: 10
Summary: Plugin for implementing the semantic version
License: BSD
URL: https://github.com/rbarrois/python-semanticversion
@ -11,15 +11,6 @@ BuildArch: noarch
%description
This small python library provides a few tools to handle semantic versioning in Python.
%package -n python2-semantic_version
Summary: Plugin for implementing the semantic version
BuildRequires: python2-devel python2-setuptools
Provides: python-semantic-version
%{?python_provide:%python_provide python2-semantic_version}
%description -n python2-semantic_version
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
@ -30,7 +21,7 @@ This small python library provides a few tools to handle semantic versioning in
%package help
Summary: Documentation for python-semantic_version
BuildRequires: python-sphinx
BuildRequires: python3-sphinx
Provides: python-semantic_version-doc = %{version}-%{release}
Obsoletes: python-semantic_version-doc < %{version}-%{release}
@ -43,25 +34,18 @@ rm -rf semantic_version.egg-info
rm docs/credits.rst
%build
%py2_build
%py3_build
sphinx-build docs html
sphinx-build-%{python3_version} docs html
rm -rf html/.{doctrees,buildinfo}
%install
%py2_install
%py3_install
%check
%if %{with_tests}
%{__python2} setup.py test
%{__python3} setup.py test
%endif
%files -n python2-semantic_version
%license LICENSE
%{python2_sitelib}/semantic_version*/
%files -n python3-semantic_version
%license LICENSE
%{python3_sitelib}/semantic_version*/
@ -71,6 +55,9 @@ rm -rf html/.{doctrees,buildinfo}
%doc html
%changelog
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 2.6.0-10
- remove python2 subpackage
* Mon Jan 13 2020 Lei Zhang <ricky.z@huawei.com> - 2.6.0-9
- remove django build depend