python-dateutil/python-dateutil.spec

122 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:14:51 -04:00
%global _name dateutil
%global _description The dateutil module provides powerful extensions to the standard datetime module, available in Python.
Name: python-dateutil
2020-05-11 15:33:27 +08:00
Version: 2.8.1
2021-05-25 16:34:00 +08:00
Release: 4
2019-09-30 11:14:51 -04:00
Epoch: 1
Summary: Powerful extensions to datetime
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}
2021-05-25 16:34:00 +08:00
%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}
2019-09-30 11:14:51 -04:00
%package -n python3-%{_name}
Summary: %{summary}
2021-05-24 15:18:51 +08:00
Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python3-six python3-pytest python3-freezegun python3-hypothesis
2019-09-30 11:14:51 -04:00
Requires: python3-six tzdata
%{?python_provide:%python_provide python3-%{_name}}
%description -n python3-%{_name}
%{_description}
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
2021-05-25 16:34:00 +08:00
%py2_build
2019-09-30 11:14:51 -04:00
%py3_build
%install
2021-05-25 16:34:00 +08:00
%py2_install
2019-09-30 11:14:51 -04:00
%py3_install
%check
2021-05-24 15:18:51 +08:00
%{__python3} -m pytest \
--ignore dateutil/test/property \
-k 'not gettz_badzone_unicode'
2021-05-25 16:34:00 +08:00
# 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
2019-09-30 11:14:51 -04:00
%files -n python3-%{_name}
%defattr(-,root,root)
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{_name}/
%{python3_sitelib}/*info
%files help
%defattr(-,root,root)
%doc NEWS PKG-INFO RELEASING
%changelog
2021-05-25 16:34:00 +08:00
* Tue May 25 2021 chengshaowei<chenshaowei3@huawei.com> - 1:2.8.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix failure in check
2021-05-24 15:18:51 +08:00
* Mon May 24 2021 chengshaowei<chenshaowei3@huawei.com> - 1:2.8.1-3
- Type:bugfix
- ID:NA
- SUG:NA
2021-05-25 16:34:00 +08:00
- DESC: fix failure in make check
2021-05-24 15:18:51 +08:00
2020-05-13 11:18:15 +08:00
* Wed May 13 2020 wangchen<wangchen137@huawei.com> - 1:2.8.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:delete python-dateutil-2.7.0.tar.gz
2020-05-11 15:33:27 +08:00
* Mon May 11 2020 openEuler Buildteam<buildteam@openeuler.org> - 1:2.8.1-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update to 2.8.1
2019-09-30 11:14:51 -04:00
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 1:2.7.0-7
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify the license
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 1:2.7.0-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move license file
* Thu Sep 5 2019 shenyangyang<shenyangyang4@huawei.com> - 1:2.7.0-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:optimize the method to provide default version of python-name
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:2.7.0-4
- Package init