Dominique Leuenberger 2022-03-14 18:35:44 +00:00 committed by Git OBS Bridge
commit 344bc84e2c
2 changed files with 17 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 11 11:33:18 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- Fix OVS location for python bindings (dirs.py), boo#1196978
Make sure dirs.py is freshly generated
-------------------------------------------------------------------
Mon Mar 7 12:04:30 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -389,25 +389,26 @@ rm -rf %{buildroot}%{_docdir}/%{name}/_build
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/* .
%{buildroot}%{python3_sitelib}
# 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