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://source.clutter-project.org/sources/cogl/1.8/%{name}-%{version}.tar.xz
13 # Source0-md5: 2c527075b7205ce98d320945496b0b58
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: gettext-devel >= 0.18.1
20 BuildRequires: glib2-devel >= 1:2.26.0
21 BuildRequires: gobject-introspection-devel >= 0.9.5
22 BuildRequires: gtk-doc >= 1.13
23 BuildRequires: libdrm-devel
24 BuildRequires: libtool >= 2:2.2.6
25 BuildRequires: pango-devel >= 1:1.20
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
28 BuildRequires: xorg-lib-libX11-devel
29 BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
30 BuildRequires: xorg-lib-libXdamage-devel
31 BuildRequires: xorg-lib-libXext-devel
32 BuildRequires: xorg-lib-libXfixes-devel >= 3
34 Requires: cairo >= 1.10
35 Requires: glib2 >= 1:2.26.0
36 Requires: pango >= 1:1.20
37 Requires: xorg-lib-libXcomposite >= 0.4
38 Requires: xorg-lib-libXfixes >= 3
40 Conflicts: clutter < 1.8.0
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Cogl is a small open source library for using 3D graphics hardware to
45 draw pretty pictures. The API departs from the flat state machine
46 style of OpenGL and is designed to make it easy to write orthogonal
47 components that can render without stepping on each others toes.
49 %description -l pl.UTF-8
50 Cogl to mała biblioteka o otwartych źródłach, pozwalająca na rysowanie
51 ładnych rysunków przy użyciu sprzętu graficznego 3D. API wywodzi się z
52 automatu skończonego w stylu OpenGL i zostało tak zaprojektowane, aby
53 ułatwić pisanie ortogonalnych komponentów, potrafiących renderować bez
54 przeszkadzania sobie nawzajem.
57 Summary: Header files for cogl library
58 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
61 Requires: cairo-devel >= 1.10
62 Requires: glib2-devel >= 1:2.26.0
63 Requires: gobject-introspection-devel >= 0.9.5
64 Requires: libdrm-devel
65 Requires: pango-devel >= 1:1.20
66 Requires: xorg-lib-libXcomposite-devel >= 0.4
67 Requires: xorg-lib-libXdamage-devel
68 Requires: xorg-lib-libXext-devel
69 Requires: xorg-lib-libXfixes-devel >= 3
70 Conflicts: clutter-devel < 1.8.0
73 Header files for building and developing applications with cogl.
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe do tworzenia aplikacji z użyciem biblioteki cogl.
79 Summary: Static cogl libraries
80 Summary(pl.UTF-8): Statyczne biblioteki cogl
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
83 Conflicts: clutter-static < 1.8.0
86 Static cogl libraries.
88 %description static -l pl.UTF-8
89 Statyczne biblioteki cogl.
92 Summary: API documentation for cogl
93 Summary(pl.UTF-8): Dokumentacja API cogl
97 This package contains API documentation for cogl.
99 %description doc -l pl.UTF-8
100 Ten pakiet zawiera dokumentację API cogl.
108 %{__aclocal} -I build/autotools
113 --disable-gdk-pixbuf \
114 --disable-silent-rules \
116 --enable-cogl-pango \
119 --enable-introspection \
120 %{?with_static_libs:--enable-static} \
121 --with-html-dir=%{_gtkdocdir}
125 rm -rf $RPM_BUILD_ROOT
128 DESTDIR=$RPM_BUILD_ROOT
130 # obsoleted by pkg-config
131 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl.la
132 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl-pango.la
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
142 %files -f %{name}.lang
143 %defattr(644,root,root,755)
144 %doc ChangeLog NEWS README
145 %attr(755,root,root) %{_libdir}/libcogl.so.*.*.*
146 %attr(755,root,root) %ghost %{_libdir}/libcogl.so.5
147 %attr(755,root,root) %{_libdir}/libcogl-pango.so.*.*.*
148 %attr(755,root,root) %ghost %{_libdir}/libcogl-pango.so.0
149 %{_libdir}/girepository-1.0/Cogl-1.0.typelib
150 %{_libdir}/girepository-1.0/CoglPango-1.0.typelib
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libcogl.so
155 %attr(755,root,root) %{_libdir}/libcogl-pango.so
157 %{_pkgconfigdir}/cogl-1.0.pc
158 %{_pkgconfigdir}/cogl-2.0-experimental.pc
159 %{_pkgconfigdir}/cogl-gl-1.0.pc
160 %{_pkgconfigdir}/cogl-pango-1.0.pc
161 %{_pkgconfigdir}/cogl-pango-2.0-experimental.pc
162 %{_datadir}/gir-1.0/Cogl-1.0.gir
163 %{_datadir}/gir-1.0/CoglPango-1.0.gir
165 %if %{with static_libs}
167 %defattr(644,root,root,755)
169 %{_libdir}/libcogl-pango.a
173 %defattr(644,root,root,755)
175 %{_gtkdocdir}/cogl-2.0-experimental