From 0ca872f4f0a199d006007fd2e166726e42bc5740f352ea2f39224ca8cba4dbef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 27 Apr 2023 15:02:29 +0000 Subject: [PATCH] Accepting request 1083264 from home:fcrozat:branches:GNOME:Factory - Do not build media playback when bootstrapping on Workbench. OBS-URL: https://build.opensuse.org/request/show/1083264 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=130 --- gtk4.changes | 5 +++++ gtk4.spec | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/gtk4.changes b/gtk4.changes index f9e3413..f99a0d0 100644 --- a/gtk4.changes +++ b/gtk4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 27 09:23:57 UTC 2023 - Frederic Crozat + +- Do not build media playback when bootstrapping on Workbench. + ------------------------------------------------------------------- Sat Apr 22 19:18:09 UTC 2023 - Bjørn Lie diff --git a/gtk4.spec b/gtk4.spec index b216ad1..991899b 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -21,6 +21,13 @@ %define gtk_binary_version 4.0.0 %define _name gtk +%bcond_without gst + +# disable gstreamer media player when bootstrapping on workbench +%if 0%{?workbench_version} > 0 +%bcond_with gst +%endif + Name: gtk4 Version: 4.10.3 Release: 0 @@ -76,8 +83,10 @@ BuildRequires: pkgconfig(gobject-2.0) >= 2.53.7 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.72.0 BuildRequires: pkgconfig(graphene-1.0) >= 1.10.0 BuildRequires: pkgconfig(graphene-gobject-1.0) >= 1.10.0 +%if %{with gst} BuildRequires: pkgconfig(gstreamer-gl-1.0) BuildRequires: pkgconfig(gstreamer-player-1.0) +%endif BuildRequires: pkgconfig(harfbuzz) >= 2.6.0 BuildRequires: pkgconfig(iso-codes) # Disabled until upstream enables ffmpeg support by default @@ -263,6 +272,11 @@ This package enhances gettext with an International Tag Set for GTK+ 4 -Dintrospection=enabled \ -Dman-pages=true \ -Dtracker=enabled \ +%if %{with gst} + -Dmedia-gstreamer=enabled \ +%else + -Dmedia-gstreamer=disabled \ +%endif -Dbuild-testsuite=false \ -Dbuild-tests=false \ -Dbuild-examples=false \ @@ -302,9 +316,11 @@ cp %{SOURCE3} %{buildroot}%{_rpmmacrodir} %dir %{_libdir}/gtk-4.0/%{gtk_binary_version}/printbackends/ %{_libdir}/gtk-4.0/%{gtk_binary_version}/printbackends/libprintbackend-cups.so %{_libdir}/gtk-4.0/%{gtk_binary_version}/printbackends/libprintbackend-file.so +%if %{with gst} %dir %{_libdir}/gtk-4.0/%{gtk_binary_version}/media/ #%%{_libdir}/gtk-4.0/%%{gtk_binary_version}/media/libmedia-ffmpeg.so %{_libdir}/gtk-4.0/%{gtk_binary_version}/media/libmedia-gstreamer.so +%endif %dir %{_libdir}/gtk-4.0/%{gtk_binary_version}/theming-engines/ %dir %{_libdir}/gtk-4.0/modules %{_libdir}/libgtk-4.so.*