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