!11 fix python2 dependency
From: @MementoMoriCheng Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
bc87aaa3a3
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-dateutil
|
Name: python-dateutil
|
||||||
Version: 2.8.1
|
Version: 2.8.1
|
||||||
Release: 3
|
Release: 4
|
||||||
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,6 +16,15 @@ Buildrequires: gdb
|
|||||||
%description
|
%description
|
||||||
%{_description}
|
%{_description}
|
||||||
|
|
||||||
|
%package -n python2-%{_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
Buildrequires: python2-devel python2-setuptools python2-setuptools_scm python2-six python2-pytest
|
||||||
|
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
|
||||||
@ -31,17 +40,28 @@ 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
|
||||||
rm setup.cfg
|
|
||||||
export LANG=en_US.UTF-8
|
|
||||||
%{__python3} -m pytest \
|
%{__python3} -m pytest \
|
||||||
--ignore dateutil/test/property \
|
--ignore dateutil/test/property \
|
||||||
-k 'not gettz_badzone_unicode'
|
-k 'not gettz_badzone_unicode'
|
||||||
|
# we don't check python2
|
||||||
|
#%{__python2} -m pytest \
|
||||||
|
# --ignore dateutil/test/property \
|
||||||
|
# -k 'not gettz_badzone_unicode'
|
||||||
|
|
||||||
|
%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)
|
||||||
@ -55,11 +75,17 @@ export LANG=en_US.UTF-8
|
|||||||
%doc NEWS PKG-INFO RELEASING
|
%doc NEWS PKG-INFO RELEASING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 25 2021 chengshaowei<chenshaowei3@huawei.com> - 1:2.8.1-4
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: fix failure in check
|
||||||
|
|
||||||
* Mon May 24 2021 chengshaowei<chenshaowei3@huawei.com> - 1:2.8.1-3
|
* Mon May 24 2021 chengshaowei<chenshaowei3@huawei.com> - 1:2.8.1-3
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
- SUG:NA
|
- SUG:NA
|
||||||
- DESC:delete python-dateutil-2.7.0.tar.gz
|
- DESC: fix failure in make check
|
||||||
|
|
||||||
* Wed May 13 2020 wangchen<wangchen137@huawei.com> - 1:2.8.1-2
|
* Wed May 13 2020 wangchen<wangchen137@huawei.com> - 1:2.8.1-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user