[packages/yasm] disable python bindings

atler atler at pld-linux.org
Thu Jun 18 20:41:40 CEST 2026


commit bab279beda9ab51176106e3a1c8e944e85d01085
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jun 18 20:38:29 2026 +0200

    disable python bindings
    
    switching to language level 2 is easy, fixing noexcept one way or
    another is manageable, but gave up on some PyLongObject vs PyObject type
    mismatch as it's simply not worth it

 yasm.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/yasm.spec b/yasm.spec
index 95fdc21..c29868f 100644
--- a/yasm.spec
+++ b/yasm.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	python		# without Python bindings
+%bcond_with	python		# without Python bindings
 
 %define		commit		9defefae9fbcb6958cddbfa778c1ea8605da8b8b
 %define		shortcommit	9defefa
@@ -25,6 +25,7 @@ BuildRequires:	libtool
 %{?with_python:BuildRequires:	python-Cython >= 0.11.3}
 BuildRequires:	xmlto
 Obsoletes:	libyasm
+%{!?with_python:Obsoletes:	python-yasm < 1.3.0-4}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yasm.git/commitdiff/bab279beda9ab51176106e3a1c8e944e85d01085



More information about the pld-cvs-commit mailing list