From bfeaf83d0cf9d64441e13c7532c5ebce662678de Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 27 Mar 2013 21:24:05 +0100 Subject: [PATCH] - added gdkpixbuf bcond (why disabled BTW?) --- cogl.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cogl.spec b/cogl.spec index 3fe4afe..3f50962 100644 --- a/cogl.spec +++ b/cogl.spec @@ -1,6 +1,7 @@ # # Conditional build %bcond_without static_libs # static libraries +%bcond_with gdkpixbuf # gdk-pixbuf for image loading [instead of stb_image] # Summary: A library for using 3D graphics hardware to draw pretty pictures Summary(pl.UTF-8): Biblioteka do rysowania ładnych obrazków przy użyciu sprzętowej grafiki 3D @@ -16,7 +17,7 @@ BuildRequires: OpenGL-GLX-devel BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.11 BuildRequires: cairo-devel >= 1.10 -BuildRequires: gdk-pixbuf2-devel >= 2.0 +%{?with_gdkpixbuf:BuildRequires: gdk-pixbuf2-devel >= 2.0} BuildRequires: gettext-devel >= 0.18.1 BuildRequires: glib2-devel >= 1:2.32.0 BuildRequires: gobject-introspection-devel >= 0.9.5 @@ -62,6 +63,7 @@ Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: cairo-devel >= 1.10 +%{?with_gdkpixbuf:Requires: gdk-pixbuf2-devel >= 2.0} Requires: glib2-devel >= 1:2.32.0 Requires: gobject-introspection-devel >= 0.9.5 Requires: libdrm-devel @@ -114,7 +116,7 @@ Ten pakiet zawiera dokumentację API cogl. %{__autoheader} %{__automake} %configure \ - --disable-gdk-pixbuf \ + %{!?with_gdkpixbuf:--disable-gdk-pixbuf} \ --disable-silent-rules \ --enable-cairo \ --enable-cogl-pango \ -- 2.43.0