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