Compare commits

..

No commits in common. "80e646f088b5e3ef3333aa4c09b7b740c0c06763" and "ccc535da9d70902cd80b22955cc40eb48925c32c" have entirely different histories.

3 changed files with 23 additions and 37 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,23 +2,32 @@
%global _description The dateutil module provides powerful extensions to the standard datetime module, available in Python.
Name: python-dateutil
Version: 2.8.2
Release: 3
Version: 2.8.1
Release: 1
Epoch: 1
Summary: Powerful extensions to datetime
License: Apache 2.0 or BSD or Python
License: Apache 2.0 or BSD
URL: https://github.com/dateutil/dateutil
Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz
BuildArch: noarch
Buildrequires: gdb
%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}
Summary: %{summary}
Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python3-six
Buildrequires: python3-pytest python3-freezegun python3-hypothesis python3-sortedcontainers
Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python3-six python3-pytest python3-freezegun python3-hypothesis
Requires: python3-six tzdata
%{?python_provide:%python_provide python3-%{_name}}
@ -31,16 +40,23 @@ Requires: python3-six tzdata
%autosetup -n %{name}-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
rm setup.cfg
export LANG=en_US.UTF-8
%{__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}
%defattr(-,root,root)
%doc README.rst
@ -53,36 +69,6 @@ export LANG=en_US.UTF-8
%doc NEWS PKG-INFO RELEASING
%changelog
* Tue Aug 09 2022 shixuantong <shixuantong@h-partners.com> - 2.8.2-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove gdb Buildrequires
* Wed Jan 05 2022 shixuantong <shixuantong@huawei.com> - 2.8.2-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add python3-sortedcontainers to Buildrequires
* Sat Nov 13 2021 liudabo<liudabo1@huawei.com> - 2.8.2-1
- Type:NA
- ID:NA
- SUG:NA
- DESC:update version to 2.8.2
* Tue Jan 19 2021 tianwei<tianwei12@huawei.com> - 2.8.1-3
- Type:NA
- ID:NA
- SUG:NA
- DESC: fix Unknown pytest.mark.no_cover fail in make check
* 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
- Type:enhancement
- ID:NA