diff --git a/python-python-dateutil.spec b/python-python-dateutil.spec index 191b5f5..31e57b4 100644 --- a/python-python-dateutil.spec +++ b/python-python-dateutil.spec @@ -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