From c1c955478fd4ec0c54dd2a52a1005a8679f6f2dde66b4d2bf05e86ea9b813814 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 Aug 2017 06:18:20 +0000 Subject: [PATCH 1/2] Accepting request 519843 from devel:languages:python:singlespec-staging 1 OBS-URL: https://build.opensuse.org/request/show/519843 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MiniMock?expand=0&rev=19 --- python-MiniMock.changes | 6 ++++++ python-MiniMock.spec | 39 +++++++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/python-MiniMock.changes b/python-MiniMock.changes index 89488ed..9d40425 100644 --- a/python-MiniMock.changes +++ b/python-MiniMock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:45:29 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu Oct 24 11:08:48 UTC 2013 - speilicke@suse.com @@ -25,3 +30,4 @@ Wed Aug 31 14:04:17 UTC 2011 - saschpe@suse.de - Initial version + diff --git a/python-MiniMock.spec b/python-MiniMock.spec index 16a2bf7..357f05a 100644 --- a/python-MiniMock.spec +++ b/python-MiniMock.spec @@ -1,7 +1,7 @@ # # spec file for package python-MiniMock # -# Copyright (c) 2013 SUSE LINUX Products 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,24 +16,26 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-MiniMock Version: 1.2.8 Release: 0 -Url: http://pypi.python.org/pypi/MiniMock Summary: The simplest possible mock library License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz +Url: http://pypi.python.org/pypi/MiniMock +Source: https://files.pythonhosted.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -Provides: python-minimock = %{version} -Obsoletes: python-minimock < %{version} -%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 BuildArch: noarch +%ifpython2 +Provides: %{oldpython}-minimock = %{version} +Obsoletes: %{oldpython}-minimock < %{version} %endif +%python_subpackages %description Minimock is a simple library for doing Mock objects with doctest. @@ -43,15 +45,24 @@ When using doctest, mock objects can be very simple. %setup -q -n MiniMock-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%if %{have_python3} && ! 0%{?skip_python3} +2to3 -wn %{buildroot}%{python3_sitelib}/minimock.py +python3 -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/ +python3 -O -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/ +%endif -%files +%check +%python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py + +%files %{python_files} %defattr(-,root,root,-) %doc docs/license.txt +%pycache_only %{python_sitelib}/__pycache__/* %{python_sitelib}/minimock.py* -%{python_sitelib}/MiniMock-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/MiniMock-%{version}-py%{python_version}.egg-info %changelog From 4f463222a4c546ac31c2be6a872a9f00d3e6a40aceb688c2cc4347fd232eca41 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 4 Sep 2017 05:31:49 +0000 Subject: [PATCH 2/2] Accepting request 520334 from home:jengelh:branches:devel:languages:python - Ensure neutrality of descriptions. OBS-URL: https://build.opensuse.org/request/show/520334 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MiniMock?expand=0&rev=20 --- python-MiniMock.changes | 5 +++++ python-MiniMock.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-MiniMock.changes b/python-MiniMock.changes index 9d40425..9231b23 100644 --- a/python-MiniMock.changes +++ b/python-MiniMock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 2 09:48:35 UTC 2017 - jengelh@inai.de + +- Ensure neutrality of descriptions. + ------------------------------------------------------------------- Thu Aug 24 13:45:29 UTC 2017 - jmatejek@suse.com diff --git a/python-MiniMock.spec b/python-MiniMock.spec index 357f05a..b49830d 100644 --- a/python-MiniMock.spec +++ b/python-MiniMock.spec @@ -21,7 +21,7 @@ Name: python-MiniMock Version: 1.2.8 Release: 0 -Summary: The simplest possible mock library +Summary: A mock library for Python License: MIT Group: Development/Languages/Python Url: http://pypi.python.org/pypi/MiniMock @@ -38,7 +38,7 @@ Obsoletes: %{oldpython}-minimock < %{version} %python_subpackages %description -Minimock is a simple library for doing Mock objects with doctest. +Minimock is a library for doing Mock objects with doctest. When using doctest, mock objects can be very simple. %prep