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