From 7143b9ab38d54a1890ab3504739097cbc0ba35d8 Mon Sep 17 00:00:00 2001 From: wangkerong Date: Fri, 14 Jan 2022 10:35:46 +0800 Subject: [PATCH] Other distros disable cups --- gtk3.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gtk3.spec b/gtk3.spec index 0f020aa..c7053d2 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -14,7 +14,7 @@ #Basic Information Name: gtk3 Version: 3.24.30 -Release: 1 +Release: 2 Summary: GTK+ graphical user interface library License: LGPLv2+ URL: http://www.gtk.org @@ -29,7 +29,11 @@ BuildRequires: pkgconfig(xi) pkgconfig(xrandr) pkgconfig(xinerama) pkgconfig(xco BuildRequires: pkgconfig(xkbcommon) pkgconfig(epoxy) >= %{epoxy_version} BuildRequires: wayland-devel >= %{wayland_version} wayland-protocols-devel >= %{wayland_protocols_version} BuildRequires: pkgconfig(colord) pkgconfig(json-glib-1.0) pkgconfig(rest-0.7) -BuildRequires: gettext gtk-doc cups-devel libtool desktop-file-utils libXcursor-devel +BuildRequires: gettext gtk-doc libtool desktop-file-utils libXcursor-devel +%if 0%{?openEuler} +BuildRequires: cups-devel +%endif + Requires: adwaita-icon-theme hicolor-icon-theme Requires: atk >= %{atk_version} glib2 >= %{glib2_version} pango >= %{pango_version} Requires: cairo >= %{cairo_version} cairo-gobject >= %{cairo_version} @@ -120,7 +124,10 @@ export CFLAGS='-fno-strict-aliasing %optflags' --enable-broadway-backend \ --enable-colord \ --enable-installed-tests \ - --with-included-immodules=wayland + --with-included-immodules=wayland \ + %if !0%{?openEuler} + --disable-cups + %endif ) # fight unused direct deps @@ -265,6 +272,9 @@ gtk-query-immodules-3.0-64 --update-cache &>/dev/null || : %{_mandir}/man1/gtk3-widget-factory.1* %changelog +* Fri Jan 14 2022 wangkerong - 3.24.30-2 +- Other distros disable cups + * Tue Dec 14 2021 liuyumeng - 3.24.30-1 - update to gtk3-3.24.30-1