Tomáš Chvátal 2020-01-17 09:10:27 +00:00 committed by Git OBS Bridge
parent 40953a8f6c
commit 28c4613d7b

View File

@ -36,6 +36,7 @@ Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil
BuildRequires: %{python_module setuptools >= 24.3}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module six >= 1.5}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six >= 1.5
@ -86,8 +87,7 @@ Orthodox or Julian algorithms.
%prep
%setup -q -n python-dateutil-%{version}
#cleanup and MSdos style end of line separators
sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst
rm -f setup.cfg
dos2unix LICENSE NEWS PKG-INFO README.rst
%build
%python_build
@ -100,6 +100,7 @@ rm -f setup.cfg
%if %{with test}
%check
rm setup.cfg
export LANG=en_US.UTF-8
%pytest
%endif