remove python2 of package python-semantic_version
This commit is contained in:
parent
da640b4981
commit
db12b23486
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user