3 %bcond_without static_libs # static libraries
5 Summary: A library for using 3D graphics hardware to draw pretty pictures
6 Summary(pl.UTF-8): Biblioteka do rysowania ładnych obrazków przy użyciu sprzętowej grafiki 3D
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/cogl/1.14/%{name}-%{version}.tar.xz
13 # Source0-md5: 7eabaf4241c0b87cc9e3b0fa23fd0315
14 URL: http://www.clutter-project.org/
15 BuildRequires: OpenGL-GLX-devel
16 BuildRequires: autoconf >= 2.59
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: cairo-devel >= 1.10
19 BuildRequires: gdk-pixbuf2-devel >= 2.0
20 BuildRequires: gettext-devel >= 0.18.1
21 BuildRequires: glib2-devel >= 1:2.32.0
22 BuildRequires: gobject-introspection-devel >= 0.9.5
23 BuildRequires: gtk-doc >= 1.13
24 BuildRequires: libdrm-devel
25 BuildRequires: libtool >= 2:2.2.6
26 BuildRequires: pango-devel >= 1:1.20
27 BuildRequires: pkgconfig
28 BuildRequires: tar >= 1:1.22
29 BuildRequires: xorg-lib-libX11-devel
30 BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
31 BuildRequires: xorg-lib-libXdamage-devel
32 BuildRequires: xorg-lib-libXext-devel
33 BuildRequires: xorg-lib-libXfixes-devel >= 3
34 BuildRequires: xorg-lib-libXrandr-devel >= 1.2
36 Requires: cairo >= 1.10
37 Requires: glib2 >= 1:2.32.0
38 Requires: pango >= 1:1.20
39 Requires: xorg-lib-libXcomposite >= 0.4
40 Requires: xorg-lib-libXfixes >= 3
41 Requires: xorg-lib-libXrandr >= 1.2
43 Conflicts: clutter < 1.8.0
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Cogl is a small open source library for using 3D graphics hardware to
48 draw pretty pictures. The API departs from the flat state machine
49 style of OpenGL and is designed to make it easy to write orthogonal
50 components that can render without stepping on each others toes.
52 %description -l pl.UTF-8
53 Cogl to mała biblioteka o otwartych źródłach, pozwalająca na rysowanie
54 ładnych rysunków przy użyciu sprzętu graficznego 3D. API wywodzi się z
55 automatu skończonego w stylu OpenGL i zostało tak zaprojektowane, aby
56 ułatwić pisanie ortogonalnych komponentów, potrafiących renderować bez
57 przeszkadzania sobie nawzajem.
60 Summary: Header files for cogl library
61 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64 Requires: cairo-devel >= 1.10
65 Requires: glib2-devel >= 1:2.32.0
66 Requires: gobject-introspection-devel >= 0.9.5
67 Requires: libdrm-devel
68 Requires: pango-devel >= 1:1.20
69 Requires: xorg-lib-libXcomposite-devel >= 0.4
70 Requires: xorg-lib-libXdamage-devel
71 Requires: xorg-lib-libXext-devel
72 Requires: xorg-lib-libXfixes-devel >= 3
73 Requires: xorg-lib-libXrandr-devel >= 1.2
74 Conflicts: clutter-devel < 1.8.0
77 Header files for building and developing applications with cogl.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe do tworzenia aplikacji z użyciem biblioteki cogl.
83 Summary: Static cogl libraries
84 Summary(pl.UTF-8): Statyczne biblioteki cogl
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
87 Conflicts: clutter-static < 1.8.0
90 Static cogl libraries.
92 %description static -l pl.UTF-8
93 Statyczne biblioteki cogl.
96 Summary: API documentation for cogl
97 Summary(pl.UTF-8): Dokumentacja API cogl
101 This package contains API documentation for cogl.
103 %description doc -l pl.UTF-8
104 Ten pakiet zawiera dokumentację API cogl.
112 %{__aclocal} -I build/autotools
117 --disable-gdk-pixbuf \
118 --disable-silent-rules \
120 --enable-cogl-pango \
123 --enable-introspection \
124 %{?with_static_libs:--enable-static} \
125 --with-html-dir=%{_gtkdocdir}
129 rm -rf $RPM_BUILD_ROOT
132 DESTDIR=$RPM_BUILD_ROOT
134 # obsoleted by pkg-config
135 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl.la
136 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl-pango.la
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
146 %files -f %{name}.lang
147 %defattr(644,root,root,755)
148 %doc ChangeLog NEWS README
149 %attr(755,root,root) %{_libdir}/libcogl.so.*.*.*
150 %attr(755,root,root) %ghost %{_libdir}/libcogl.so.12
151 %attr(755,root,root) %{_libdir}/libcogl-pango.so.*.*.*
152 %attr(755,root,root) %ghost %{_libdir}/libcogl-pango.so.12
153 %{_libdir}/girepository-1.0/Cogl-1.0.typelib
154 %{_libdir}/girepository-1.0/CoglPango-1.0.typelib
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_libdir}/libcogl.so
159 %attr(755,root,root) %{_libdir}/libcogl-pango.so
161 %{_pkgconfigdir}/cogl-1.0.pc
162 %{_pkgconfigdir}/cogl-2.0-experimental.pc
163 %{_pkgconfigdir}/cogl-gl-1.0.pc
164 %{_pkgconfigdir}/cogl-pango-1.0.pc
165 %{_pkgconfigdir}/cogl-pango-2.0-experimental.pc
166 %{_datadir}/gir-1.0/Cogl-1.0.gir
167 %{_datadir}/gir-1.0/CoglPango-1.0.gir
169 %if %{with static_libs}
171 %defattr(644,root,root,755)
173 %{_libdir}/libcogl-pango.a
177 %defattr(644,root,root,755)
179 %{_gtkdocdir}/cogl-2.0-experimental