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