Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package openvswitch for openSUSE:Factory 
checked in at 2022-03-14 19:35:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openvswitch (Old)
 and      /work/SRC/openSUSE:Factory/.openvswitch.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openvswitch"

Mon Mar 14 19:35:44 2022 rev:58 rq:961646 version:2.17.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/openvswitch/openvswitch.changes  2022-03-07 
17:47:36.371108319 +0100
+++ /work/SRC/openSUSE:Factory/.openvswitch.new.25692/openvswitch.changes       
2022-03-14 19:37:49.598181076 +0100
@@ -1,0 +2,6 @@
+Fri Mar 11 11:33:18 UTC 2022 - Ferdinand Thiessen <[email protected]>
+
+- Fix OVS location for python bindings (dirs.py), boo#1196978
+  Make sure dirs.py is freshly generated
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ openvswitch.spec ++++++
--- /var/tmp/diff_new_pack.vBshsc/_old  2022-03-14 19:37:50.146181733 +0100
+++ /var/tmp/diff_new_pack.vBshsc/_new  2022-03-14 19:37:50.150181737 +0100
@@ -389,25 +389,26 @@
 rm %{buildroot}%{_docdir}/%{name}/automake.mk
 rm %{buildroot}%{_docdir}/%{name}/conf.py
 
-# Tests
+# Python subpackage
+# Install python tests package
 mkdir -p %{buildroot}%{python3_sitelib}
 cp -a %{buildroot}%{_datadir}/openvswitch/python/ovstest \
     %{buildroot}%{python3_sitelib}
-
-# Python subpackage
-# Some build files are in sources while others are generated directly on
-# buildroot as part of make_install (dirs.py). Copy them first.
-pushd python
-cp -an %{buildroot}%{_datadir}/openvswitch/python/* .
+# Remove non standard location python package
 rm -rf %{buildroot}%{_datadir}/openvswitch/python
-
+# Install python package, some files are generated by make install
+# make sure dirs.py is freshly generated
+rm -f python/ovs/dirs.py
+make python/ovs/dirs.py
+pushd python
 export LDFLAGS="${LDFLAGS} -L %{buildroot}%{_libdir}"
 export CPPFLAGS="-I ../../include"
-
 %python_build
 %python_install
 popd
 
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
 %pre
 %service_add_pre ovsdb-server.service ovs-vswitchd.service openvswitch.service 
ovs-delete-transient-ports.service
 if [ "$1" -ge 1 ]; then

Reply via email to