CBL-Mariner/SPECS/python-dateutil/python-dateutil.spec

90 строки
2.7 KiB
Plaintext
Исходник Обычный вид История

2020-08-07 06:17:52 +03:00
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")}
Summary: Extensions to the standard Python datetime module
Name: python-dateutil
Version: 2.7.3
Release: 4%{?dist}
License: ASL 2.0 and BSD
Group: Development/Languages/Python
Vendor: Microsoft Corporation
Distribution: Mariner
Url: https://pypi.python.org/pypi/python-dateutil
Source0: https://files.pythonhosted.org/packages/a0/b0/a4e3241d2dee665fea11baec21389aec6886655cd4db7647ddf96c3fad15/%{name}-%{version}.tar.gz
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-setuptools_scm
BuildRequires: python-six
BuildRequires: python-xml
Requires: python2
Requires: python2-libs
Requires: python-six
BuildArch: noarch
%description
The dateutil module provides powerful extensions to the datetime module available in the Python standard library.
%package -n python3-dateutil
Summary: python3-dateutil
BuildRequires: python3-devel
BuildRequires: python3-libs
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-xml
Requires: python3
Requires: python3-libs
Requires: python3-six
%description -n python3-dateutil
Python 3 version.
%prep
%setup -q -n python-dateutil-%{version}
rm -rf ../p3dir
cp -a . ../p3dir
%build
python2 setup.py build
pushd ../p3dir
python3 setup.py build
popd
%install
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
pushd ../p3dir
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
popd
%check
python2 setup.py test
pushd ../p3dir
python3 setup.py test
popd
%files
%defattr(-,root,root)
%license LICENSE
%{python2_sitelib}/*
%files -n python3-dateutil
%defattr(-,root,root)
%{python3_sitelib}/*
%changelog
* Sat May 09 00:20:42 PST 2020 Nick Samson <nisamson@microsoft.com> - 2.7.3-4
- Added %%license line automatically
* Thu Apr 23 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 2.7.3-3
- License verified.
- Fixed 'Source0' tag.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 2.7.3-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Fri Sep 14 2018 Tapas Kundu <tkundu@vmware.com> 2.7.3-1
- Updated to release 2.7.3
* Sun Jan 07 2018 Kumar Kaushik <kaushikk@vmware.com> 2.6.1-1
- Initial packaging for photon.