]> git.pld-linux.org Git - packages/cogl.git/blame - cogl.spec
unconditional kms/xlib egl need EGL-devel too
[packages/cogl.git] / cogl.spec
CommitLineData
3b3536d4
JB
1#
2# Conditional build
3%bcond_without static_libs # static libraries
83b18e2d 4%bcond_without gdkpixbuf # gdk-pixbuf for image loading [instead of stb_image]
ce061459
JB
5%bcond_without gles1 # OpenGL-ES 1.1 driver support
6%bcond_without gles2 # OpenGL-ES 2.0 driver support
7%bcond_without kms # KMS EGL platform support
f877413a 8%bcond_without gstreamer # GStreamer support
ce061459
JB
9%bcond_with mir # Mir EGL platform support (conflicts with wayland)
10%bcond_with sdl1 # SDL 1.x winsys support (conflicts with sdl2)
11%bcond_with sdl2 # SDL2 winsys support (conflicts with sdl1)
12%bcond_without wayland # Wayland EGL platform and server support
43c35c42 13
a8e45d23 14Summary: A library for using 3D graphics hardware to draw pretty pictures
3b3536d4 15Summary(pl.UTF-8): Biblioteka do rysowania ładnych obrazków przy użyciu sprzętowej grafiki 3D
a8e45d23 16Name: cogl
964044ad 17Version: 1.22.8
a0ad3dc5 18Release: 1
a8e45d23 19License: LGPL v2+
3b3536d4 20Group: Libraries
6eaf073e 21Source0: http://ftp.gnome.org/pub/GNOME/sources/cogl/1.22/%{name}-%{version}.tar.xz
964044ad 22# Source0-md5: 7dd8b2e24171ef7399f851cea144b569
646b7883 23Patch0: %{name}-link.patch
a8e45d23 24URL: http://www.clutter-project.org/
2724db25 25BuildRequires: EGL-devel
b0b44050 26%{?with_kms:BuildRequires: Mesa-libgbm-devel}
1ae58ca6 27BuildRequires: OpenGL-GLX-devel
aa9131ed 28%{?with_gles1:BuildRequires: OpenGLESv1-devel >= 1.1}
ce061459
JB
29%{?with_sdl1:BuildRequires: SDL-devel >= 1.2}
30%{?with_sdl2:BuildRequires: SDL2-devel >= 2}
aedf1bd3 31BuildRequires: autoconf >= 2.59
22245264 32BuildRequires: automake >= 1:1.14
3b3536d4 33BuildRequires: cairo-devel >= 1.10
bfeaf83d 34%{?with_gdkpixbuf:BuildRequires: gdk-pixbuf2-devel >= 2.0}
6e0ed9a0 35BuildRequires: gettext-tools >= 0.19
774ef314 36BuildRequires: glib2-devel >= 1:2.32.0
3b3536d4 37BuildRequires: gobject-introspection-devel >= 0.9.5
f877413a
JB
38%{?with_gstreamer:BuildRequires: gstreamer-devel >= 1.0}
39%{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 1.0}
3b3536d4
JB
40BuildRequires: gtk-doc >= 1.13
41BuildRequires: libdrm-devel
aedf1bd3 42BuildRequires: libtool >= 2:2.2.6
ce061459
JB
43# pkgconfig(mirclient)
44%{?with_mir:BuildRequires: mir-devel >= 0.9.0}
3b3536d4 45BuildRequires: pango-devel >= 1:1.20
a8e45d23 46BuildRequires: pkgconfig
aedf1bd3 47BuildRequires: tar >= 1:1.22
f877413a
JB
48# wayland-client >= 1.0.0, wayland-server >= 1.1.90
49%{?with_wayland:BuildRequires: wayland-devel >= 1.2.0}
7e9e2d2e 50%{?with_wayland:BuildRequires: wayland-egl-devel >= 1.0.0}
1ae58ca6 51BuildRequires: xorg-lib-libX11-devel
3b3536d4 52BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
a8e45d23
PZ
53BuildRequires: xorg-lib-libXdamage-devel
54BuildRequires: xorg-lib-libXext-devel
3b3536d4 55BuildRequires: xorg-lib-libXfixes-devel >= 3
774ef314 56BuildRequires: xorg-lib-libXrandr-devel >= 1.2
aedf1bd3 57BuildRequires: xz
3b3536d4 58Requires: cairo >= 1.10
774ef314 59Requires: glib2 >= 1:2.32.0
3b3536d4 60Requires: pango >= 1:1.20
f877413a 61%{?with_wayland:Requires: wayland >= 1.2.0}
3b3536d4
JB
62Requires: xorg-lib-libXcomposite >= 0.4
63Requires: xorg-lib-libXfixes >= 3
774ef314 64Requires: xorg-lib-libXrandr >= 1.2
1ae58ca6 65Suggests: OpenGL
502bb6a5
JB
66%{?with_gles1:Provides: cogl(gles1) = %{version}-%{release}}
67%{?with_gles2:Provides: cogl(gles2) = %{version}-%{release}}
b0b44050 68%{?with_kms:Provides: cogl(kms) = %{version}-%{release}}
502bb6a5 69%{?with_wayland:Provides: cogl(wayland) = %{version}-%{release}}
9fabc6b2 70Conflicts: clutter < 1.8.0
3b3536d4 71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a8e45d23
PZ
72
73%description
74Cogl is a small open source library for using 3D graphics hardware to
75draw pretty pictures. The API departs from the flat state machine
76style of OpenGL and is designed to make it easy to write orthogonal
77components that can render without stepping on each others toes.
78
3b3536d4
JB
79%description -l pl.UTF-8
80Cogl to mała biblioteka o otwartych źródłach, pozwalająca na rysowanie
81ładnych rysunków przy użyciu sprzętu graficznego 3D. API wywodzi się z
82automatu skończonego w stylu OpenGL i zostało tak zaprojektowane, aby
83ułatwić pisanie ortogonalnych komponentów, potrafiących renderować bez
84przeszkadzania sobie nawzajem.
a8e45d23
PZ
85
86%package devel
3b3536d4
JB
87Summary: Header files for cogl library
88Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl
a8e45d23
PZ
89Group: Development/Libraries
90Requires: %{name} = %{version}-%{release}
f877413a 91%{?with_wayland:Requires: EGL-devel}
b0b44050 92%{?with_kms:Requires: Mesa-libgbm-devel}
739b77cc 93%{?with_wayland:Requires: wayland-egl-devel >= 1.0.0}
3b3536d4 94Requires: cairo-devel >= 1.10
bfeaf83d 95%{?with_gdkpixbuf:Requires: gdk-pixbuf2-devel >= 2.0}
774ef314 96Requires: glib2-devel >= 1:2.32.0
3b3536d4
JB
97Requires: gobject-introspection-devel >= 0.9.5
98Requires: libdrm-devel
99Requires: pango-devel >= 1:1.20
f877413a 100%{?with_wayland:Requires: wayland-devel >= 1.2.0}
3b3536d4
JB
101Requires: xorg-lib-libXcomposite-devel >= 0.4
102Requires: xorg-lib-libXdamage-devel
103Requires: xorg-lib-libXext-devel
104Requires: xorg-lib-libXfixes-devel >= 3
774ef314 105Requires: xorg-lib-libXrandr-devel >= 1.2
502bb6a5
JB
106%{?with_gles1:Provides: cogl-devel(gles1) = %{version}-%{release}}
107%{?with_gles2:Provides: cogl-devel(gles2) = %{version}-%{release}}
b0b44050 108%{?with_kms:Provides: cogl-devel(kms) = %{version}-%{release}}
502bb6a5 109%{?with_wayland:Provides: cogl-devel(wayland) = %{version}-%{release}}
9fabc6b2 110Conflicts: clutter-devel < 1.8.0
a8e45d23
PZ
111
112%description devel
3b3536d4
JB
113Header files for building and developing applications with cogl.
114
115%description devel -l pl.UTF-8
116Pliki nagłówkowe do tworzenia aplikacji z użyciem biblioteki cogl.
117
118%package static
119Summary: Static cogl libraries
120Summary(pl.UTF-8): Statyczne biblioteki cogl
121Group: Development/Libraries
122Requires: %{name}-devel = %{version}-%{release}
502bb6a5
JB
123%{?with_gles1:Provides: cogl-static(gles1) = %{version}-%{release}}
124%{?with_gles2:Provides: cogl-static(gles2) = %{version}-%{release}}
b0b44050 125%{?with_kms:Provides: cogl-static(kms) = %{version}-%{release}}
502bb6a5 126%{?with_wayland:Provides: cogl-static(wayland) = %{version}-%{release}}
9fabc6b2 127Conflicts: clutter-static < 1.8.0
3b3536d4
JB
128
129%description static
130Static cogl libraries.
131
132%description static -l pl.UTF-8
133Statyczne biblioteki cogl.
a8e45d23 134
3b3536d4
JB
135%package doc
136Summary: API documentation for cogl
137Summary(pl.UTF-8): Dokumentacja API cogl
a8e45d23 138Group: Documentation
a8e45d23 139
3b3536d4
JB
140%description doc
141This package contains API documentation for cogl.
142
143%description doc -l pl.UTF-8
144Ten pakiet zawiera dokumentację API cogl.
a8e45d23 145
646b7883
JB
146%package gles2
147Summary: Cogl frontend library for OpenGL-ES 2.0
148Summary(pl.UTF-8): Biblioteka frontendowa Cogl dla OpenGL-ES 2.0
149Group: Libraries
502bb6a5 150Requires: %{name}(gles2) = %{version}-%{release}
646b7883
JB
151
152%description gles2
153Cogl frontend library for OpenGL-ES 2.0.
154
155%description gles2 -l pl.UTF-8
156Biblioteka frontendowa Cogl dla OpenGL-ES 2.0.
157
158%package gles2-devel
159Summary: Header files for cogl-gles2 library
160Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl-gles2
161Group: Development/Libraries
502bb6a5 162Requires: %{name}-devel(gles2) = %{version}-%{release}
646b7883
JB
163Requires: %{name}-gles2 = %{version}-%{release}
164
165%description gles2-devel
166Header files for cogl-gles2 library.
167
168%description gles2-devel -l pl.UTF-8
169Pliki nagłówkowe biblioteki cogl-gles2.
170
171%package gles2-static
172Summary: Static cogl-gles2 library
173Summary(pl.UTF-8): Statyczna biblioteka cogl-gles2
174Group: Development/Libraries
502bb6a5 175Requires: %{name}-gles2-devel = %{version}-%{release}
646b7883
JB
176
177%description gles2-static
178Static cogl-gles2 library.
179
180%description gles2-static -l pl.UTF-8
181Statyczna biblioteka cogl-gles2.
182
f877413a
JB
183%package gst
184Summary: GStreamer integration library for Cogl
185Summary(pl.UTF-8): Biblioteka integrująca GStreamera z Cogl
186Group: Libraries
187Requires: %{name} = %{version}-%{release}
188
189%description gst
190GStreamer integration library for Cogl.
191
192%description gst -l pl.UTF-8
193Biblioteka integrująca GStreamera z Cogl.
194
195%package gst-devel
196Summary: Header files for cogl-gst library
197Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl-gst
198Group: Development/Libraries
199Requires: %{name}-devel = %{version}-%{release}
200Requires: %{name}-gst = %{version}-%{release}
201Requires: gstreamer-devel >= 1.0
202Requires: gstreamer-plugins-base-devel >= 1.0
203
204%description gst-devel
205Header files for cogl-gst library.
206
207%description gst-devel -l pl.UTF-8
208Pliki nagłówkowe biblioteki cogl-gst.
209
210%package gst-static
211Summary: Static cogl-gst library
212Summary(pl.UTF-8): Statyczna biblioteka cogl-gst
213Group: Development/Libraries
214Requires: %{name}-gst-devel = %{version}-%{release}
215
216%description gst-static
217Static cogl-gst library.
218
219%description gst-static -l pl.UTF-8
220Statyczna biblioteka cogl-gst.
221
222%package gst-apidocs
223Summary: API documentation for cogl-gst library
224Summary(pl.UTF-8): Dokumentacja API biblioteki cogl-gst
225Group: Documentation
43c35c42 226BuildArch: noarch
f877413a
JB
227
228%description gst-apidocs
229API documentation for cogl-gst library.
230
231%description gst-apidocs -l pl.UTF-8
232Dokumentacja API biblioteki cogl-gst.
233
a8e45d23
PZ
234%prep
235%setup -q
646b7883 236%patch0 -p1
a8e45d23
PZ
237
238%build
aedf1bd3
JB
239%{__gettextize}
240%{__libtoolize}
241%{__aclocal} -I build/autotools
242%{__autoconf}
243%{__autoheader}
244%{__automake}
a8e45d23 245%configure \
bfeaf83d 246 %{!?with_gdkpixbuf:--disable-gdk-pixbuf} \
3b3536d4
JB
247 --disable-silent-rules \
248 --enable-cairo \
f877413a 249 %{?with_gstreamer:--enable-cogl-gst} \
3b3536d4 250 --enable-cogl-pango \
646b7883
JB
251 %{?with_gles1:--enable-gles1 --with-gles1-libname=libGLESv1_CM.so.1} \
252 %{?with_gles2:--enable-gles2 --with-gles2-libname=libGLESv2.so.2} \
3b3536d4 253 --enable-glx \
a8e45d23 254 --enable-gtk-doc \
3b3536d4 255 --enable-introspection \
b0b44050 256 --enable-kms-egl-platform \
ce061459
JB
257 %{?with_mir:--enable-mir-egl-platform} \
258 %{?with_sdl1:--enable-sdl} \
259 %{?with_sdl2:--enable-sdl2} \
3b3536d4 260 %{?with_static_libs:--enable-static} \
f877413a
JB
261 %{?with_wayland:--enable-wayland-egl-platform} \
262 %{?with_wayland:--enable-wayland-egl-server} \
f05709a8 263 --enable-xlib-egl-platform \
a8e45d23
PZ
264 --with-html-dir=%{_gtkdocdir}
265%{__make}
266
267%install
268rm -rf $RPM_BUILD_ROOT
3b3536d4 269
611aea59 270%{__make} -j1 install \
a8e45d23
PZ
271 DESTDIR=$RPM_BUILD_ROOT
272
f877413a
JB
273%if %{with gstreamer}
274%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstcogl.la
275%if %{with static_libs}
276%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstcogl.a
277%endif
278%endif
3b3536d4 279# obsoleted by pkg-config
f877413a 280%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl*.la
a8e45d23
PZ
281
282%find_lang %{name}
283
3b3536d4
JB
284%clean
285rm -rf $RPM_BUILD_ROOT
a8e45d23 286
3b3536d4
JB
287%post -p /sbin/ldconfig
288%postun -p /sbin/ldconfig
a8e45d23 289
646b7883
JB
290%post gles2 -p /sbin/ldconfig
291%postun gles2 -p /sbin/ldconfig
292
293%post gst -p /sbin/ldconfig
294%postun gst -p /sbin/ldconfig
295
a8e45d23
PZ
296%files -f %{name}.lang
297%defattr(644,root,root,755)
3b3536d4 298%doc ChangeLog NEWS README
a8e45d23 299%attr(755,root,root) %{_libdir}/libcogl.so.*.*.*
e3b17614 300%attr(755,root,root) %ghost %{_libdir}/libcogl.so.20
a8e45d23 301%attr(755,root,root) %{_libdir}/libcogl-pango.so.*.*.*
e3b17614 302%attr(755,root,root) %ghost %{_libdir}/libcogl-pango.so.20
07fb2d8c
JR
303%attr(755,root,root) %{_libdir}/libcogl-path.so.*.*.*
304%attr(755,root,root) %ghost %{_libdir}/libcogl-path.so.20
a8e45d23
PZ
305%{_libdir}/girepository-1.0/Cogl-1.0.typelib
306%{_libdir}/girepository-1.0/CoglPango-1.0.typelib
aa9131ed
AM
307%{_libdir}/girepository-1.0/Cogl-2.0.typelib
308%{_libdir}/girepository-1.0/CoglPango-2.0.typelib
a8e45d23
PZ
309
310%files devel
311%defattr(644,root,root,755)
3b3536d4
JB
312%attr(755,root,root) %{_libdir}/libcogl.so
313%attr(755,root,root) %{_libdir}/libcogl-pango.so
07fb2d8c 314%attr(755,root,root) %{_libdir}/libcogl-path.so
f877413a
JB
315%dir %{_includedir}/cogl
316%{_includedir}/cogl/cogl
317%{_includedir}/cogl/cogl-pango
318%{_includedir}/cogl/cogl-path
a8e45d23
PZ
319%{_pkgconfigdir}/cogl-1.0.pc
320%{_pkgconfigdir}/cogl-2.0-experimental.pc
321%{_pkgconfigdir}/cogl-gl-1.0.pc
322%{_pkgconfigdir}/cogl-pango-1.0.pc
323%{_pkgconfigdir}/cogl-pango-2.0-experimental.pc
07fb2d8c
JR
324%{_pkgconfigdir}/cogl-path-1.0.pc
325%{_pkgconfigdir}/cogl-path-2.0-experimental.pc
a8e45d23
PZ
326%{_datadir}/gir-1.0/Cogl-1.0.gir
327%{_datadir}/gir-1.0/CoglPango-1.0.gir
aa9131ed
AM
328%{_datadir}/gir-1.0/Cogl-2.0.gir
329%{_datadir}/gir-1.0/CoglPango-2.0.gir
a8e45d23 330
3b3536d4
JB
331%if %{with static_libs}
332%files static
333%defattr(644,root,root,755)
334%{_libdir}/libcogl.a
335%{_libdir}/libcogl-pango.a
07fb2d8c 336%{_libdir}/libcogl-path.a
3b3536d4
JB
337%endif
338
a8e45d23
PZ
339%files doc
340%defattr(644,root,root,755)
341%{_gtkdocdir}/cogl
342%{_gtkdocdir}/cogl-2.0-experimental
f877413a 343
646b7883
JB
344%if %{with gles2}
345%files gles2
346%defattr(644,root,root,755)
347%attr(755,root,root) %{_libdir}/libcogl-gles2.so.*.*.*
e3b17614 348%attr(755,root,root) %ghost %{_libdir}/libcogl-gles2.so.20
646b7883
JB
349
350%files gles2-devel
351%defattr(644,root,root,755)
352%attr(755,root,root) %{_libdir}/libcogl-gles2.so
353%{_includedir}/cogl/cogl-gles2
07fb2d8c
JR
354%{_pkgconfigdir}/cogl-gles2-1.0.pc
355%{_pkgconfigdir}/cogl-gles2-2.0-experimental.pc
646b7883
JB
356
357%if %{with static_libs}
358%files gles2-static
359%defattr(644,root,root,755)
360%{_libdir}/libcogl-gles2.a
361%endif
362%endif
363
f877413a
JB
364%if %{with gstreamer}
365%files gst
366%defattr(644,root,root,755)
367%attr(755,root,root) %{_libdir}/libcogl-gst.so.*.*.*
e3b17614 368%attr(755,root,root) %ghost %{_libdir}/libcogl-gst.so.20
f877413a 369%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstcogl.so
aa9131ed
AM
370%{_libdir}/girepository-1.0/CoglGst-2.0.typelib
371
f877413a
JB
372%files gst-devel
373%defattr(644,root,root,755)
374%attr(755,root,root) %{_libdir}/libcogl-gst.so
375%{_includedir}/cogl/cogl-gst
07fb2d8c
JR
376%{_pkgconfigdir}/cogl-gst-1.0.pc
377%{_pkgconfigdir}/cogl-gst-2.0-experimental.pc
aa9131ed 378%{_datadir}/gir-1.0/CoglGst-2.0.gir
f877413a
JB
379
380%if %{with static_libs}
381%files gst-static
382%defattr(644,root,root,755)
383%{_libdir}/libcogl-gst.a
384%endif
385
386%files gst-apidocs
387%defattr(644,root,root,755)
388%{_gtkdocdir}/cogl-gst
389%endif
This page took 0.181892 seconds and 4 git commands to generate.