commit 963dca6fd94daf5df5077b08a0ed6655d9249e1a
Author: Jan Palus <[email protected]>
Date:   Thu Dec 22 15:17:53 2022 +0100

    don't build python module until it is packaged

 libcec.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/libcec.spec b/libcec.spec
index 17f7537..b50f1b5 100644
--- a/libcec.spec
+++ b/libcec.spec
@@ -4,6 +4,7 @@
 # - package python module
 #
 # Conditional build:
+%bcond_with    python          # python module
 %bcond_with    static_libs     # static library build
 #
 Summary:       Pulse-Eight CEC adapter control library
@@ -21,8 +22,11 @@ BuildRequires:       libstdc++-devel >= 6:4.2
 BuildRequires: lockdev-devel >= 1.0
 BuildRequires: ncurses-devel
 BuildRequires: p8-platform-devel
+%if %{with python}
 BuildRequires: python3-devel
 BuildRequires: swig
+BuildRequires: swig-python
+%endif
 BuildRequires: systemd-devel
 BuildRequires: udev-devel >= 1:151
 BuildRequires: xorg-lib-libXrandr-devel
@@ -86,6 +90,7 @@ install -d build
 cd build
 %cmake \
        -DHAVE_LINUX_API=on \
+       %{!?with_python:-DSKIP_PYTHON_WRAPPER:BOOL=ON} \
        ..
 
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcec.git/commitdiff/963dca6fd94daf5df5077b08a0ed6655d9249e1a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to