Hello community, here is the log from the commit of package python-smmap for openSUSE:Factory checked in at 2017-08-23 11:54:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-smmap (Old) and /work/SRC/openSUSE:Factory/.python-smmap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smmap" Wed Aug 23 11:54:15 2017 rev:8 rq:517926 version:0.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-smmap/python-smmap.changes 2015-05-10 10:46:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-smmap.new/python-smmap.changes 2017-08-23 11:54:29.136489473 +0200 @@ -1,0 +2,5 @@ +Tue Aug 15 17:49:10 UTC 2017 - daniel.molken...@suse.com + +- Converted to python singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-smmap.spec ++++++ --- /var/tmp/diff_new_pack.qJJ4SV/_old 2017-08-23 11:54:30.460303120 +0200 +++ /var/tmp/diff_new_pack.qJJ4SV/_new 2017-08-23 11:54:30.480300305 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-smmap # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,33 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-smmap Version: 0.9.0 Release: 0 -Url: https://github.com/gitpython-developers/smmap Summary: A pure git implementation of a sliding window memory map manager License: BSD-2-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/s/smmap/smmap-%{version}.tar.gz +Url: https://github.com/gitpython-developers/smmap +Source: https://files.pythonhosted.org/packages/source/s/smmap/smmap-%{version}.tar.gz # PATCH-FIX-OPENSUSE delete_platform_specific_test.patch -- fix tests on powerpc Patch0: delete_platform_specific_test.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module nosexcover} +BuildRequires: %{python_module nose} +%endif +# /SECTION BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-nosexcover -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description When reading from many possibly large files in a fashion similar to random @@ -54,16 +60,17 @@ %patch0 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes %{buildroot}/%{_prefix} - +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check -python setup.py -q test +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/*