[packages/qpid-proton] - rel 4, fix go and python build breakeges

baggins baggins at pld-linux.org
Sun Mar 23 14:35:59 CET 2025


commit 944986890cb628fcbe5ee738600c15516b6ad788
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 23 14:50:11 2025 +0100

    - rel 4, fix go and python build breakeges

 qpid-proton.spec | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/qpid-proton.spec b/qpid-proton.spec
index 2b86891..9088812 100644
--- a/qpid-proton.spec
+++ b/qpid-proton.spec
@@ -10,7 +10,7 @@ Summary:	Qpid Proton - AMQP messaging toolkit
 Summary(pl.UTF-8):	Qpid Proton - narzędzia do komunikacji AMQP
 Name:		qpid-proton
 Version:	0.39.0
-Release:	3
+Release:	4
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://downloads.apache.org/qpid/proton/%{version}/%{name}-%{version}.tar.gz
@@ -26,10 +26,13 @@ BuildRequires:	libuuid-devel
 BuildRequires:	openssl-devel
 BuildRequires:	pkgconfig
 BuildRequires:	python3 >= 1:3.8
-%{?with_python:BuildRequires:	python3-devel >= 1:3.8}
+%if %{with python}
+BuildRequires:	python3-cffi >= 1.0.0
+BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	swig-python
+%endif
 BuildRequires:	rpm-build >= 4.6
 %{?with_ruby:BuildRequires:	ruby-devel}
-%{?with_python:BuildRequires:	swig-python}
 %{?with_ruby:BuildRequires:	swig-ruby}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -177,11 +180,13 @@ Wiązania języka Ruby do szkieletu komunikacji Qpid Proton.
 	python/examples/*.py
 
 %build
+# testing needs network
 %cmake -B build \
-	-DBUILD_BINDINGS="cpp;go%{?with_python:;python}%{?with_ruby:;ruby}" \
+	-DBUILD_BINDINGS="cpp%{?with_golang:;go}%{?with_python:;python}%{?with_ruby:;ruby}" \
 	%{?with_golang:-DBUILD_GO=ON} \
 	%{?with_static_libs:-DBUILD_STATIC_LIBS=ON} \
-	-DSYSINSTALL_PYTHON=ON
+	-DSYSINSTALL_PYTHON=ON \
+	-DBUILD_TESTING=OFF
 #	-DPYTHON_SITEARCH_PACKAGES=%{py_sitedir} \
 
 %{__make} -C build all docs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qpid-proton.git/commitdiff/944986890cb628fcbe5ee738600c15516b6ad788



More information about the pld-cvs-commit mailing list