Hello community,

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

Package is "python-pexpect"

Fri Apr 28 10:43:48 2017 rev:19 rq:489511 version:4.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pexpect/python-pexpect.changes    
2016-09-20 13:22:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pexpect.new/python-pexpect.changes       
2017-04-28 10:43:49.907275233 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 17:57:01 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pexpect.spec ++++++
--- /var/tmp/diff_new_pack.jChhYL/_old  2017-04-28 10:43:51.159098295 +0200
+++ /var/tmp/diff_new_pack.jChhYL/_new  2017-04-28 10:43:51.159098295 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pexpect
 #
-# 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_with tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pexpect
 Version:        4.2.1
 Release:        0
@@ -24,17 +27,17 @@
 Group:          Development/Libraries/Python
 Url:            http://pexpect.readthedocs.org/en/latest/
 Source:         
https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  man
-BuildRequires:  python-ptyprocess
-BuildRequires:  python-pytest
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module ptyprocess}
+%if %{with tests}
+BuildRequires:  %{python_module pytest}
+%endif
 Requires:       python-ptyprocess
 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
 Pexpect is a pure Python module for spawning child applications;
@@ -44,18 +47,23 @@
 %setup -n pexpect-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix="/usr" --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%if %{with tests}
 %check
 export LANG=en_US.UTF-8
-py.test
+%python_expand py.test-%{$python_bun_suffix}
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc doc examples LICENSE
+%doc LICENSE
+%doc doc/
+%doc examples/
 %{python_sitelib}/pexpect/
 %{python_sitelib}/pexpect-%{version}-py*.egg-info
 


Reply via email to