Hello community, here is the log from the commit of package python-d2to1 for openSUSE:Factory checked in at 2017-08-16 16:10:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-d2to1 (Old) and /work/SRC/openSUSE:Factory/.python-d2to1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-d2to1" Wed Aug 16 16:10:54 2017 rev:9 rq:510843 version:0.2.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python-d2to1/python-d2to1.changes 2016-04-22 16:23:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-d2to1.new/python-d2to1.changes 2017-08-16 16:10:58.656426736 +0200 @@ -1,0 +2,6 @@ +Fri Jul 14 13:12:08 UTC 2017 - aloi...@gmx.com + +- Removed %check (no actual tests to run) +- Converted to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-d2to1.spec ++++++ --- /var/tmp/diff_new_pack.7931aT/_old 2017-08-16 16:10:59.396323042 +0200 +++ /var/tmp/diff_new_pack.7931aT/_new 2017-08-16 16:10:59.404321921 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-d2to1 # -# Copyright (c) 2016 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,25 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-d2to1 Version: 0.2.12 Release: 0 -Url: http://pypi.python.org/pypi/d2to1 Summary: Allows using distutils2-like setup.cfg with a distribute/setuptools License: BSD-3-Clause Group: Development/Languages/Python -Source: d2to1-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: https://pypi.python.org/pypi/d2to1 +Source0: https://files.pythonhosted.org/packages/source/d/d2to1/d2to1-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools -# Test requirements: -BuildRequires: python-nose -%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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description d2to1 (the 'd' is for 'distutils') allows using distutils2-like setup.cfg @@ -44,17 +41,16 @@ %prep %setup -q -n d2to1-%{version} +rm -rf d2to1.egg-info %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%check -python setup.py test +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst LICENSE README.rst %{python_sitelib}/d2to1/