]> git.pld-linux.org Git - packages/cogl.git/blobdiff - cogl.spec
rpm version for noarch subpackage
[packages/cogl.git] / cogl.spec
index e76b68750e7b34273b930dd3bfa0bfe2148a745a..32ee3eb3fe7e7ed13e4751e0d1e6c4a669df5944 100644 (file)
--- a/cogl.spec
+++ b/cogl.spec
@@ -2,33 +2,38 @@
 # Conditional build
 %bcond_without static_libs     # static libraries
 %bcond_without gdkpixbuf       # gdk-pixbuf for image loading [instead of stb_image]
-%bcond_without gles1           # OpenGL-ES 1.1 support
-%bcond_without gles2           # OpenGL-ES 2.0 support
-%bcond_without kms             # KMS EGL support
+%bcond_without gles1           # OpenGL-ES 1.1 driver support
+%bcond_without gles2           # OpenGL-ES 2.0 driver support
+%bcond_without kms             # KMS EGL platform support
 %bcond_without gstreamer       # GStreamer support
-%bcond_without wayland         # Wayland EGL support
+%bcond_with    mir             # Mir EGL platform support (conflicts with wayland)
+%bcond_with    sdl1            # SDL 1.x winsys support (conflicts with sdl2)
+%bcond_with    sdl2            # SDL2 winsys support (conflicts with sdl1)
+%bcond_without wayland         # Wayland EGL platform and server support
 
 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
 Name:          cogl
-Version:       1.18.0
-Release:       2
+Version:       1.22.8
+Release:       1
 License:       LGPL v2+
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/cogl/1.18/%{name}-%{version}.tar.xz
-# Source0-md5: 994a29f5c02768367b6f035bfe456ba6
+Source0:       https://download.gnome.org/sources/cogl/1.22/%{name}-%{version}.tar.xz
+# Source0-md5: 7dd8b2e24171ef7399f851cea144b569
 Patch0:                %{name}-link.patch
 URL:           http://www.clutter-project.org/
-%{?with_wayland:BuildRequires: EGL-devel}
+BuildRequires: EGL-devel
+BuildRequires: Mesa-libEGL-devel
 %{?with_kms:BuildRequires:     Mesa-libgbm-devel}
-%{?with_wayland:BuildRequires: Mesa-libwayland-egl-devel >= 1.0.0}
 BuildRequires: OpenGL-GLX-devel
 %{?with_gles1:BuildRequires:   OpenGLESv1-devel >= 1.1}
+%{?with_sdl1:BuildRequires:    SDL-devel >= 1.2}
+%{?with_sdl2:BuildRequires:    SDL2-devel >= 2}
 BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.11
+BuildRequires: automake >= 1:1.14
 BuildRequires: cairo-devel >= 1.10
 %{?with_gdkpixbuf:BuildRequires:       gdk-pixbuf2-devel >= 2.0}
-BuildRequires: gettext-devel >= 0.18.1
+BuildRequires: gettext-tools >= 0.19
 BuildRequires: glib2-devel >= 1:2.32.0
 BuildRequires: gobject-introspection-devel >= 0.9.5
 %{?with_gstreamer:BuildRequires:       gstreamer-devel >= 1.0}
@@ -36,11 +41,15 @@ BuildRequires:      gobject-introspection-devel >= 0.9.5
 BuildRequires: gtk-doc >= 1.13
 BuildRequires: libdrm-devel
 BuildRequires: libtool >= 2:2.2.6
+# pkgconfig(mirclient)
+%{?with_mir:BuildRequires:     mir-devel >= 0.9.0}
 BuildRequires: pango-devel >= 1:1.20
 BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
 BuildRequires: tar >= 1:1.22
 # wayland-client >= 1.0.0, wayland-server >= 1.1.90
 %{?with_wayland:BuildRequires: wayland-devel >= 1.2.0}
+%{?with_wayland:BuildRequires: wayland-egl-devel >= 1.0.0}
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
 BuildRequires: xorg-lib-libXdamage-devel
@@ -83,7 +92,7 @@ Group:                Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 %{?with_wayland:Requires:      EGL-devel}
 %{?with_kms:Requires:  Mesa-libgbm-devel}
-%{?with_wayland:Requires:      Mesa-libwayland-egl-devel >= 1.0.0}
+%{?with_wayland:Requires:      wayland-egl-devel >= 1.0.0}
 Requires:      cairo-devel >= 1.10
 %{?with_gdkpixbuf:Requires:    gdk-pixbuf2-devel >= 2.0}
 Requires:      glib2-devel >= 1:2.32.0
@@ -216,9 +225,7 @@ Statyczna biblioteka cogl-gst.
 Summary:       API documentation for cogl-gst library
 Summary(pl.UTF-8):     Dokumentacja API biblioteki cogl-gst
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description gst-apidocs
 API documentation for cogl-gst library.
@@ -249,6 +256,9 @@ Dokumentacja API biblioteki cogl-gst.
        --enable-gtk-doc \
        --enable-introspection \
        --enable-kms-egl-platform \
+       %{?with_mir:--enable-mir-egl-platform} \
+       %{?with_sdl1:--enable-sdl} \
+       %{?with_sdl2:--enable-sdl2} \
        %{?with_static_libs:--enable-static} \
        %{?with_wayland:--enable-wayland-egl-platform} \
        %{?with_wayland:--enable-wayland-egl-server} \
This page took 0.025669 seconds and 4 git commands to generate.