drop python2 subpackage

This commit is contained in:
wangxiao65 2020-10-29 11:48:35 +08:00
parent a4e0869b13
commit 7da943bf96

View File

@ -1,6 +1,6 @@
Name: python-parse Name: python-parse
Version: 1.8.4 Version: 1.8.4
Release: 2 Release: 3
Summary: Python Parse Module Summary: Python Parse Module
License: BSD License: BSD
URL: http://pypi.python.org/pypi/parse URL: http://pypi.python.org/pypi/parse
@ -10,14 +10,6 @@ BuildArch: noarch
%description %description
A python module which parses specific strings adopted the format() syntax. A python module which parses specific strings adopted the format() syntax.
%package -n python2-parse
Summary: Python2 Parse Module
BuildRequires: python2-devel
%description -n python2-parse
Parse Module for Python2.
%package -n python3-parse %package -n python3-parse
Summary: Python3 Parse Module Summary: Python3 Parse Module
BuildRequires: python3-devel BuildRequires: python3-devel
@ -29,22 +21,14 @@ Parse Module for Python3.
%autosetup -n parse-%{version} -p1 %autosetup -n parse-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} test_parse.py
%{__python3} test_parse.py %{__python3} test_parse.py
%files -n python2-parse
%doc README.rst
%{python2_sitelib}/parse-%{version}-*.egg-info
%{python2_sitelib}/parse.py*
%files -n python3-parse %files -n python3-parse
%doc README.rst %doc README.rst
%{python3_sitelib}/parse-%{version}-*.egg-info %{python3_sitelib}/parse-%{version}-*.egg-info
@ -52,6 +36,8 @@ Parse Module for Python3.
%{python3_sitelib}/__pycache__/parse.* %{python3_sitelib}/__pycache__/parse.*
%changelog %changelog
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.8.4-3
- drop python2 subpackage
* Fri Dec 13 2019 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.8.4-2 * Fri Dec 13 2019 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.8.4-2
- package init - package init