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