Hello community,

here is the log from the commit of package python-MiniMock for openSUSE:Factory 
checked in at 2017-09-05 15:16:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-MiniMock (Old)
 and      /work/SRC/openSUSE:Factory/.python-MiniMock.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-MiniMock"

Tue Sep  5 15:16:24 2017 rev:16 rq:520561 version:1.2.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-MiniMock/python-MiniMock.changes  
2013-10-25 11:21:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-MiniMock.new/python-MiniMock.changes     
2017-09-05 15:16:25.211116625 +0200
@@ -1,0 +2,10 @@
+Sat Sep  2 09:48:35 UTC 2017 - [email protected]
+
+- Ensure neutrality of descriptions.
+
+-------------------------------------------------------------------
+Thu Aug 24 13:45:29 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -26,0 +37 @@
+

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-MiniMock.spec ++++++
--- /var/tmp/diff_new_pack.p4IZbM/_old  2017-09-05 15:16:25.891021054 +0200
+++ /var/tmp/diff_new_pack.p4IZbM/_new  2017-09-05 15:16:25.895020492 +0200
@@ -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,42 +16,53 @@
 #
 
 
+%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
+Summary:        A mock library for Python
 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.
+Minimock is a library for doing Mock objects with doctest.
 When using doctest, mock objects can be very simple.
 
 %prep
 %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
+
+%check
+%python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py
 
-%files
+%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


Reply via email to