Summary(pl.UTF-8): Lepszy iterator po katalogach i szybsze os.walk() dla Pythona 2
Name: python-%{module}
Version: 1.5
-Release: 1
+Release: 2
License: BSD
Group: Libraries/Python
#Source0Download: https://github.com/benhoyt/scandir/releases
Source0: https://github.com/benhoyt/scandir/archive/v%{version}/%{module}-%{version}.tar.gz
# Source0-md5: 798407545833aa7011c1ee34b580e902
+Patch0: %{name}-linux.patch
URL: https://github.com/benhoyt/scandir
%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
BuildRequires: glibc-localedb-all
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%if %{with python2}
rm -rf test/testdir
# Tests fail if unicode is not supported
LC_ALL=C.UTF-8 \
+PYTHONPATH=$(pwd)/$(echo build-2/lib.linux-*) \
%{__python} test/run_tests.py
%endif
-
%endif
%if %{with python3}
rm -rf test/testdir
# Tests fail if unicode is not supported
LC_ALL=C.UTF-8 \
+PYTHONPATH=$(pwd)/$(echo build-3/lib.linux-*) \
%{__python3} test/run_tests.py
%endif
-
%endif
%install