Hello community,

here is the log from the commit of package python-prompt_toolkit for 
openSUSE:Factory checked in at 2017-05-17 17:14:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-prompt_toolkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-prompt_toolkit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-prompt_toolkit"

Wed May 17 17:14:44 2017 rev:2 rq:493098 version:1.0.14

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-prompt_toolkit/python-prompt_toolkit.changes  
    2017-04-11 09:41:10.834836750 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-prompt_toolkit.new/python-prompt_toolkit.changes
 2017-05-17 17:14:45.003566287 +0200
@@ -1,0 +2,10 @@
+Fri May  5 21:56:34 UTC 2017 - [email protected]
+
+- Fix Provides/Obsoletes
+
+-------------------------------------------------------------------
+Mon Apr 24 20:40:09 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-prompt_toolkit.spec ++++++
--- /var/tmp/diff_new_pack.9mBb3o/_old  2017-05-17 17:14:45.635477197 +0200
+++ /var/tmp/diff_new_pack.9mBb3o/_new  2017-05-17 17:14:45.639476633 +0200
@@ -16,6 +16,8 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-prompt_toolkit
 Version:        1.0.14
 Release:        0
@@ -24,17 +26,23 @@
 Group:          Development/Languages/Python
 Url:            https://github.com/jonathanslenders/python-prompt-toolkit
 Source:         
https://files.pythonhosted.org/packages/source/p/prompt_toolkit/prompt_toolkit-%{version}.tar.gz
-BuildRequires:  python-Pygments
-BuildRequires:  python-devel
-BuildRequires:  python-six >= 1.9.0
-BuildRequires:  python-wcwidth
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module Pygments}
+BuildRequires:  %{python_module six >= 1.9.0}
+BuildRequires:  %{python_module wcwidth}
 Requires:       python-Pygments
 Requires:       python-six >= 1.9.0
 Requires:       python-wcwidth
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-Provides:       python-python-prompt-toolkit = %{version}
-Obsoletes:      python-python-prompt-toolkit < %{version}
+%ifpython2
+Obsoletes:      %{oldpython}-python-prompt-toolkit < %{version}
+Provides:       %{oldpython}-python-prompt-toolkit = %{version}
+%endif
+%python_subpackages
 
 %description
 Prompt toolkit is a Library for building powerful interactive command
@@ -44,12 +52,13 @@
 %setup -q -n prompt_toolkit-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst CHANGELOG
 %{python_sitelib}/*


Reply via email to