Hello community, here is the log from the commit of package python-scandir for openSUSE:Factory checked in at 2017-08-16 16:10:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scandir (Old) and /work/SRC/openSUSE:Factory/.python-scandir.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-scandir" Wed Aug 16 16:10:26 2017 rev:2 rq:510805 version:1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-scandir/python-scandir.changes 2017-04-14 13:34:43.576786025 +0200 +++ /work/SRC/openSUSE:Factory/.python-scandir.new/python-scandir.changes 2017-08-16 16:10:54.321034330 +0200 @@ -1,0 +2,5 @@ +Sat Jul 15 17:01:29 UTC 2017 - aloisio@gmx.com + +- Converted to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scandir.spec ++++++ --- /var/tmp/diff_new_pack.k08Hrk/_old 2017-08-16 16:10:55.240905412 +0200 +++ /var/tmp/diff_new_pack.k08Hrk/_new 2017-08-16 16:10:55.240905412 +0200 @@ -17,6 +17,7 @@ %bcond_without test +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-scandir Version: 1.5 Release: 0 @@ -25,10 +26,12 @@ Group: Development/Languages/Python Url: https://github.com/benhoyt/scandir Source: https://files.pythonhosted.org/packages/source/s/scandir/scandir-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -Provides: python2-scandir = %{version} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages %description ``scandir()`` is a directory iteration function like ``os.listdir()``, @@ -64,22 +67,25 @@ %prep %setup -q -n scandir-%{version} +rm -rf scandir.egg-info sed -i 's/\r$//' LICENSE.txt sed -i 's/\r$//' README.rst %build export CFLAGS="%{optflags}" -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitearch} %if %{with test} %check -python setup.py test +export LANG=en_US.UTF-8 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test/run_tests.py %endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt README.rst %{python_sitearch}/*