[packages/tigervnc] - allow building without H264 support, allow building on systems w/o systemd
hawk
hawk at pld-linux.org
Sat Apr 27 13:26:27 CEST 2024
commit 1020d79569112f6f2f16c7712b655821181a0021
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sat Apr 27 12:31:12 2024 +0200
- allow building without H264 support, allow building on systems w/o systemd
tigervnc.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tigervnc.spec b/tigervnc.spec
index 6e63419..ea234cf 100644
--- a/tigervnc.spec
+++ b/tigervnc.spec
@@ -1,3 +1,6 @@
+%bcond_without h264 # H264 support
+%bcond_without systemd # systemd
+
%define xversion 1.21.0
Summary: A TigerVNC remote display system
@@ -24,7 +27,7 @@ BuildRequires: Mesa-dri-devel >= 7.8.1
BuildRequires: cpp
BuildRequires: cmake >= 3.10.0
# libavcodec libavutil libswscale
-BuildRequires: ffmpeg-devel
+%{?with_h264:BuildRequires: ffmpeg-devel}
BuildRequires: fltk-devel
BuildRequires: gettext-tools
BuildRequires: gnutls-devel
@@ -49,7 +52,7 @@ BuildRequires: perl-base
BuildRequires: pixman-devel >= 0.27.2
BuildRequires: pkgconfig >= 1:0.19
BuildRequires: rpmbuild(macros) >= 1.647
-BuildRequires: systemd-devel >= 1:209
+%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRequires: xorg-app-mkfontscale
BuildRequires: xorg-font-font-util >= 1.1
BuildRequires: xorg-lib-libX11-devel
@@ -197,6 +200,7 @@ cd unix/xserver
%build
%cmake . \
+ %{!?with_h264:-DENABLE_H264=OFF} \
-DCMAKE_INSTALL_UNITDIR=%{systemdunitdir}
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tigervnc.git/commitdiff/1020d79569112f6f2f16c7712b655821181a0021
More information about the pld-cvs-commit
mailing list