remove python2 dependency

This commit is contained in:
sxt1001 2020-10-30 15:35:49 +08:00
parent ccc535da9d
commit e5e5f187d9

View File

@ -3,7 +3,7 @@
Name: python-dateutil Name: python-dateutil
Version: 2.8.1 Version: 2.8.1
Release: 1 Release: 2
Epoch: 1 Epoch: 1
Summary: Powerful extensions to datetime Summary: Powerful extensions to datetime
License: Apache 2.0 or BSD License: Apache 2.0 or BSD
@ -16,15 +16,6 @@ Buildrequires: gdb
%description %description
%{_description} %{_description}
%package -n python2-%{_name}
Summary: %{summary}
Buildrequires: python2-devel python2-setuptools python2-setuptools_scm python2-six python2-pytest python2-freezegun python2-hypothesis
Requires: python2-six tzdata
%{?python_provide:%python_provide python2-%{_name}}
%description -n python2-%{_name}
%{_description}
%package -n python3-%{_name} %package -n python3-%{_name}
Summary: %{summary} Summary: %{summary}
Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python3-six python3-pytest python3-freezegun python3-hypothesis Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python3-six python3-pytest python3-freezegun python3-hypothesis
@ -40,23 +31,14 @@ Requires: python3-six tzdata
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python3} -m pytest %{__python3} -m pytest
%files -n python2-%{_name}
%defattr(-,root,root)
%doc README.rst
%license LICENSE
%{python2_sitelib}/%{_name}/
%{python2_sitelib}/*info
%files -n python3-%{_name} %files -n python3-%{_name}
%defattr(-,root,root) %defattr(-,root,root)
%doc README.rst %doc README.rst
@ -69,6 +51,12 @@ Requires: python3-six tzdata
%doc NEWS PKG-INFO RELEASING %doc NEWS PKG-INFO RELEASING
%changelog %changelog
* Fri Oct 30 2020 shixuantong<shixuantong@huawei.com> - 2.8.1-2
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2 dependency
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1:2.8.1-1 * Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1:2.8.1-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA