Hello community,

here is the log from the commit of package yast2-python-bindings for 
openSUSE:Factory checked in at 2018-01-31 19:52:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-python-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-python-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-python-bindings"

Wed Jan 31 19:52:07 2018 rev:35 rq:571140 version:4.0.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-python-bindings/yast2-python-bindings.changes  
    2017-11-14 12:58:38.039851165 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-python-bindings.new/yast2-python-bindings.changes
 2018-01-31 19:52:12.692584758 +0100
@@ -1,0 +2,18 @@
+Mon Jan 29 22:44:08 UTC 2018 - [email protected]
+
+- Build both python2 and python3 versions of the bindings;
+  (bsc#1074696).
+
+-------------------------------------------------------------------
+Thu Jan  4 15:45:46 UTC 2018 - [email protected]
+
+- Convert the bindings into python3; (bsc#1074696).
+- Fix some code examples; (bsc#1070212).
+
+-------------------------------------------------------------------
+Tue Nov 28 15:15:11 UTC 2017 - [email protected]
+
+- Add example code ported from ruby examples; (bsc#1070212).
+- Fixes based on findings from example code
+
+-------------------------------------------------------------------

Old:
----
  yast2-python-bindings-4.0.0.tar.bz2

New:
----
  yast2-python-bindings-4.0.2.tar.bz2

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

Other differences:
------------------
++++++ yast2-python-bindings.spec ++++++
--- /var/tmp/diff_new_pack.wzMaJe/_old  2018-01-31 19:52:13.324555370 +0100
+++ /var/tmp/diff_new_pack.wzMaJe/_new  2018-01-31 19:52:13.332554999 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-python-bindings
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,9 +16,23 @@
 #
 
 
+%if 0%{?suse_version} > 1310 || 0%{?fedora_version} > 20
+%define with_python3 1
+%else
+%define with_python3 0
+%endif
+
+%define python_sitelib %(%{__python} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib())")
+%define python_sitearch %(%{__python} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")
+%define python3_sitelib %(%{__python3} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib())")
+%define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")
+
 Name:           yast2-python-bindings
-Version:        4.0.0
+Version:        4.0.2
 Release:        0
+Summary:        Python3 bindings for the YaST platform
+License:        GPL-2.0
+Group:          System/YaST
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        %{name}-%{version}.tar.bz2
@@ -32,42 +46,91 @@
 BuildRequires:  make
 BuildRequires:  python
 BuildRequires:  python-devel
+%if %{with_python3}
+BuildRequires:  python3
+BuildRequires:  python3-devel
+%endif
 BuildRequires:  swig
 BuildRequires:  yast2-core-devel
 BuildRequires:  yast2-ycp-ui-bindings
 BuildRequires:  yast2-ycp-ui-bindings-devel
-
 Requires:       python
 Requires:       yast2-core
 Requires:       yast2-ycp-ui-bindings
+Obsoletes:      yast2-python-bindings < 4.0.1
+Conflicts:      yast2-python3-bindings
 
-Summary:        Python bindings for the YaST platform
-License:        GPL-2.0
+%description -n yast2-python-bindings
+The bindings allow YaST modules to be written using the Python language
+and also Python scripts can use YaST agents, APIs and modules.
+
+%if %{with_python3}
+%package -n yast2-python3-bindings
+Summary:        Python3 bindings for the YaST platform
 Group:          System/YaST
+Requires:       python3
+Requires:       yast2-core
+Requires:       yast2-ycp-ui-bindings
+Obsoletes:      yast2-python-bindings == 4.0.1
+Conflicts:      yast2-python-bindings
 
-%description
+%description -n yast2-python3-bindings
 The bindings allow YaST modules to be written using the Python language
 and also Python scripts can use YaST agents, APIs and modules.
+%endif
+
+%define builddir %{_builddir}/%{name}-%{version}
 
 %prep
 %setup -n %{name}-%{version}
 
 %build
-%yast_build
+make -f Makefile.cvs all
+
+%if %{with_python3}
+%configure --enable-python3
+make
+mkdir -p %{builddir}/python3
+%__cp -d src/*.py %{builddir}/python3
+%__cp -d src/.libs/*.so.0.0.0 %{builddir}/python3
+%__cp -d src/*.la %{builddir}/python3
+make clean
+%endif
+
+%configure
+make
 
 %install
 %yast_install
-
 rm %{buildroot}/%{python_sitelib}/*.pyc
 rm %{buildroot}/%{python_sitelib}/*.pyo
 rm %{buildroot}/%{python_sitearch}/*.la
-rm %{buildroot}/%{yast_plugindir}/libpy2lang_python.la
+rm %{buildroot}/%{yast_plugindir}/*.la
+%if %{with_python3}
+%__mkdir_p %{buildroot}/%{python3_sitelib}/
+%__install -m 0644 %{builddir}/python3/*.py %{buildroot}/%{python3_sitelib}/
+%__mkdir_p %{buildroot}/%{python3_sitearch}/
+%__install -m 0755 %{builddir}/python3/_ycp.so* 
%{buildroot}/%{python3_sitearch}/
+%__ln_s %{python3_sitearch}/_ycp.so.0.0.0 
%{buildroot}/%{python3_sitearch}/_ycp.so.0
+%__ln_s %{python3_sitearch}/_ycp.so.0.0.0 
%{buildroot}/%{python3_sitearch}/_ycp.so
+%__install -m 0755 %{builddir}/python3/libpy2lang_python.so* 
%{buildroot}/%{yast_plugindir}/
+%endif
+
+%if %{with_python3}
+%files -n yast2-python3-bindings
+%defattr (-, root, root)
+%doc %{yast_docdir}
+%{python3_sitelib}/*.py
+%{python3_sitearch}/_ycp.so*
+%{yast_plugindir}/libpy2lang_python.so.*
+%{yast_plugindir}/libpy2lang_python.so
+%endif
 
-%files
+%files -n yast2-python-bindings
 %defattr (-, root, root)
 %doc %{yast_docdir}
 %{python_sitelib}/*.py
-%{python_sitearch}/_ycp.*
+%{python_sitearch}/_ycp.so*
 %{yast_plugindir}/libpy2lang_python.so.*
 %{yast_plugindir}/libpy2lang_python.so
 

++++++ yast2-python-bindings-4.0.0.tar.bz2 -> 
yast2-python-bindings-4.0.2.tar.bz2 ++++++
++++ 64811 lines of diff (skipped)


Reply via email to