Hello community,

here is the log from the commit of package python-ptyprocess for 
openSUSE:Factory checked in at 2017-04-28 10:42:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ptyprocess (Old)
 and      /work/SRC/openSUSE:Factory/.python-ptyprocess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ptyprocess"

Fri Apr 28 10:42:05 2017 rev:3 rq:489405 version:0.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ptyprocess/python-ptyprocess.changes      
2016-11-24 21:19:00.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-ptyprocess.new/python-ptyprocess.changes 
2017-04-28 10:42:06.405904624 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 17:57:26 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ptyprocess.spec ++++++
--- /var/tmp/diff_new_pack.UoHTwU/_old  2017-04-28 10:42:07.521746904 +0200
+++ /var/tmp/diff_new_pack.UoHTwU/_new  2017-04-28 10:42:07.525746339 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ptyprocess
 #
-# 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,6 +16,9 @@
 #
 
 
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ptyprocess
 Version:        0.5.1
 Release:        0
@@ -23,16 +26,17 @@
 License:        ISC
 Group:          Development/Languages/Python
 Url:            https://github.com/pexpect/ptyprocess
-Source:         
https://pypi.io/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
-BuildRequires:  python-devel >= 2.7
-BuildRequires:  python-nose
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+%if %{with tests}
+BuildRequires:  %{python_module nose}
+%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%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
-%endif
+%python_subpackages
 
 %description
 Launch a subprocess in a pseudo terminal (pty), and interact with both the
@@ -48,15 +52,18 @@
 %setup -q -n ptyprocess-%{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}
 
+%if %{with tests}
 %check
-nosetests
+%python_expand nosetests-%{$python_bin_suffix}
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
 %{python_sitelib}/*


Reply via email to