From a340e14125887514aacb8a642c699da077459eaa Mon Sep 17 00:00:00 2001 From: wangkerong Date: Fri, 14 Jan 2022 11:06:14 +0800 Subject: [PATCH] Other distros disable cups --- gtk2.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gtk2.spec b/gtk2.spec index 036bf04..f32e8ce 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -6,7 +6,7 @@ #Basic Information Name: gtk2 Version: 2.24.33 -Release: 3 +Release: 4 Summary: GTK+ graphical user interface library License: LGPLv2+ URL: http://www.gtk.org @@ -28,8 +28,12 @@ BuildRequires: pkgconfig(pango) >= 1.20 pkgconfig(gdk-pixbuf-2.0) >= 2.21.0 BuildRequires: pkgconfig(cairo) >= 1.6 pkgconfig(gobject-introspection-1.0) >= 0.9.3 BuildRequires: pkgconfig(xi) pkgconfig(xrandr) pkgconfig(xrender) pkgconfig(xcursor) BuildRequires: pkgconfig(xinerama) pkgconfig(xcomposite) pkgconfig(xdamage) -BuildRequires: gettext cups-devel libxslt python3-devel +BuildRequires: gettext libxslt python3-devel BuildRequires: gtk-doc automake autoconf libtool pkgconfig +%if 0%{?openEuler} +BuildRequires: cups-devel +%endif + Requires: hicolor-icon-theme gtk-update-icon-cache Requires: gdk-pixbuf2-modules glib2 >= 2.28.0 atk >= 1.29.2 pango >= 1.20 Requires: libXrandr >= 1.2.99.4-2 @@ -107,6 +111,9 @@ export CFLAGS='-fno-strict-aliasing %optflags' --enable-man \ --with-xinput=xfree \ --enable-debug \ + %if !0%{?openEuler} + --disable-cups + %endif ) sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool %make_build @@ -231,6 +238,9 @@ gtk-query-immodules-2.0-64 --update-cache %{_mandir}/man1/gtk-builder-convert.1.gz %changelog +* Fri Jan 14 2022 wangkerong - 3.24.33-4 +- Other distros disable cups + * Fri Jul 30 2021 chenyanpanHW - 2.24.33-3 - DESC: delete -Sgit from %autosetup, and delete BuildRequires git -- Gitee