3 %bcond_without egl # EGL framebuffer backend
4 %bcond_with mir # Mir backend (requires cogl support for Mir, which in turn conflicts with wayland)
5 %bcond_without wayland # Wayland backend and compositor
6 %bcond_without evdev # evdev support for input events
7 %bcond_with tslib # TSLib support for input events (outdated?)
9 Summary: Library for rich GUIs
10 Summary(pl.UTF-8): Biblioteka do bogatych graficznych interfejsów użytkownika
16 Source0: http://ftp.gnome.org/pub/GNOME/sources/clutter/1.26/%{name}-%{version}.tar.xz
17 # Source0-md5: a03482cbacf735eca8c996f210a21ee5
20 URL: http://www.clutter-project.org/
21 BuildRequires: OpenGL-GLX-devel
22 BuildRequires: atk-devel >= 1:2.5.3
23 BuildRequires: autoconf >= 2.63
24 BuildRequires: automake >= 1:1.11
25 BuildRequires: cairo-devel >= 1.14.0
26 BuildRequires: cairo-gobject-devel >= 1.14.0
27 BuildRequires: cogl-devel >= 1.22.0
28 %{?with_wayland:BuildRequires: cogl-devel(wayland) >= 1.22.0}
29 BuildRequires: docbook-dtd412-xml
30 BuildRequires: gdk-pixbuf2-devel >= 2.0
31 BuildRequires: gettext-tools >= 0.17
32 BuildRequires: glib2-devel >= 1:2.44.0
33 BuildRequires: gobject-introspection-devel >= 1.39.0
34 BuildRequires: gtk+3-devel >= 3.4.0
35 BuildRequires: gtk-doc >= 1.20
36 BuildRequires: json-glib-devel >= 0.12.0
37 %{?with_evdev:BuildRequires: libinput-devel >= 0.19.0}
38 BuildRequires: libtool >= 2:2.2.6
39 BuildRequires: libxslt-progs
41 %{?with_mir:BuildRequires: mir-devel}
42 BuildRequires: pango-devel >= 1:1.30
43 BuildRequires: pkgconfig >= 1:0.16
44 BuildRequires: python-modules
45 BuildRequires: tar >= 1:1.22
46 %{?with_tslib:BuildRequires: tslib-devel >= 1.1}
47 %{?with_evdev:BuildRequires: udev-devel >= 1:136}
48 %{?with_evdev:BuildRequires: udev-glib-devel}
49 # wayland-client wayland-cursor (for client), wayland-server (for compositor)
50 %{?with_wayland:BuildRequires: wayland-devel}
51 BuildRequires: xorg-lib-libX11-devel
52 BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
53 BuildRequires: xorg-lib-libXdamage-devel
54 BuildRequires: xorg-lib-libXext-devel
55 BuildRequires: xorg-lib-libXi-devel
56 %if %{with evdev} || %{with wayland}
57 BuildRequires: xorg-lib-libxkbcommon-devel
60 Requires: atk >= 1:2.5.3
61 Requires: cairo-gobject >= 1.14.0
62 Requires: cogl >= 1.22.0
63 %{?with_wayland:Requires: cogl(wayland) >= 1.22.0}
64 Requires: glib2 >= 1:2.44.0
65 Requires: gtk+3 >= 3.4.0
66 Requires: json-glib >= 0.12.0
67 %{?with_evdev:Requires: libinput >= 0.19.0}
68 Requires: pango >= 1:1.30
69 %{?with_evdev:Requires: udev-libs >= 1:136}
70 %{?with_evdev:Provides: clutter(evdev) = %{version}-%{release}}
71 Obsoletes: clutter-cairo < 1.0
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75 Clutter is an open source software library for creating fast, visually
76 rich graphical user interfaces. The most obvious example of potential
77 usage is in media center type applications. We hope however it can be
80 Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but
81 with an API which hides the underlying GL complexity from the
82 developer. The Clutter API is intended to be easy to use, efficient
85 %description -l pl.UTF-8
86 Clutter to biblioteka o otwartych źródłach do tworzenia szybkich,
87 bogatych wizualnie graficznych interfejsów użytkownika. Najbardziej
88 oczywistym przykładem potencjalnego zastosowania są aplikacje typu
89 centrum multimedialne. Jednak autorzy mają nadzieję, że znajdzie się
92 Clutter wykorzystuje OpenGL (i wkrótce opcjonalnie OpenGL ES) do
93 renderowania, ale API ukrywa złożoność warstwy GL przed programistami.
94 API biblioteki Clutter ma być łatwe w użyciu, wydajne i elastyczne.
97 Summary: Header files for clutter library
98 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki clutter
99 Group: Development/Libraries
100 Requires: %{name} = %{version}-%{release}
101 Requires: OpenGL-GLX-devel
102 Requires: atk-devel >= 1:2.5.3
103 Requires: cairo-gobject-devel >= 1.14.0
104 Requires: cogl-devel >= 1.22.0
105 %{?with_wayland:Requires: cogl-devel(wayland) >= 1.22.0}
106 Requires: gdk-pixbuf2-devel >= 2.0
107 Requires: glib2-devel >= 1:2.44.0
108 Requires: gtk+3-devel >= 3.4.0
109 Requires: json-glib-devel >= 0.12.0
110 %{?with_evdev:Requires: libinput-devel >= 0.19.0}
111 Requires: pango-devel >= 1:1.30
112 %{?with_evdev:Requires: udev-devel >= 1:136}
113 %{?with_wayland:Requires: wayland-devel}
114 Requires: xorg-lib-libX11-devel
115 Requires: xorg-lib-libXcomposite-devel >= 0.4
116 Requires: xorg-lib-libXdamage-devel
117 Requires: xorg-lib-libXext-devel
118 %if %{with evdev} || %{with wayland}
119 Requires: xorg-lib-libxkbcommon-devel
121 %{?with_evdev:Provides: clutter-devel(evdev) = %{version}-%{release}}
122 Obsoletes: clutter-cairo-devel < 1.0
125 Header files for clutter library.
127 %description devel -l pl.UTF-8
128 Pliki nagłówkowe biblioteki clutter.
131 Summary: Static clutter library
132 Summary(pl.UTF-8): Statyczna biblioteka clutter
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}-%{release}
135 %{?with_evdev:Provides: clutter-static(evdev) = %{version}-%{release}}
136 Obsoletes: clutter-cairo-static < 1.0
139 Static clutter library.
141 %description static -l pl.UTF-8
142 Statyczna biblioteka clutter.
145 Summary: clutter API documentation
146 Summary(pl.UTF-8): Dokumentacja API clutter
148 Requires: gtk-doc-common
149 %if "%{_rpmversion}" >= "5"
154 clutter API documentation.
156 %description apidocs -l pl.UTF-8
157 Dokumentacja API clutter.
167 %{__aclocal} -I build/autotools
172 --disable-silent-rules \
174 %{?with_egl:--enable-egl-backend} \
175 %{?with_evdev:--enable-evdev-input} \
176 --enable-gdk-backend \
178 %{?with_mir:--enable-mir-backend} \
180 %{?with_tslib:--enable-tslib-input} \
182 --enable-wayland-backend \
183 --enable-wayland-compositor \
186 --with-html-dir=%{_gtkdocdir}
190 rm -rf $RPM_BUILD_ROOT
193 DESTDIR=$RPM_BUILD_ROOT
195 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libclutter-1.0.la
197 # move to %{_examplesdir} and package in -examples?
198 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/clutter-1.0/cookbook/examples
200 %find_lang clutter-1.0
203 rm -rf $RPM_BUILD_ROOT
205 %post -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
208 %files -f clutter-1.0.lang
209 %defattr(644,root,root,755)
210 %doc ChangeLog NEWS README
211 %attr(755,root,root) %{_libdir}/libclutter-1.0.so.*.*.*
212 %attr(755,root,root) %ghost %{_libdir}/libclutter-1.0.so.0
213 %attr(755,root,root) %{_libdir}/libclutter-glx-1.0.so.0
214 %{_libdir}/girepository-1.0/Cally-1.0.typelib
215 %{_libdir}/girepository-1.0/Clutter-1.0.typelib
216 %{_libdir}/girepository-1.0/ClutterGdk-1.0.typelib
217 %{_libdir}/girepository-1.0/ClutterX11-1.0.typelib
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libclutter-1.0.so
222 %attr(755,root,root) %{_libdir}/libclutter-glx-1.0.so
223 %{_includedir}/clutter-1.0
224 %{_datadir}/gir-1.0/Cally-1.0.gir
225 %{_datadir}/gir-1.0/Clutter-1.0.gir
226 %{_datadir}/gir-1.0/ClutterGdk-1.0.gir
227 %{_datadir}/gir-1.0/ClutterX11-1.0.gir
228 %{_pkgconfigdir}/cally-1.0.pc
229 %{_pkgconfigdir}/clutter-1.0.pc
230 %{_pkgconfigdir}/clutter-cogl-1.0.pc
231 %{_pkgconfigdir}/clutter-gdk-1.0.pc
232 %{_pkgconfigdir}/clutter-glx-1.0.pc
233 %{_pkgconfigdir}/clutter-x11-1.0.pc
234 %{_pkgconfigdir}/clutter-egl-1.0.pc
235 %{?with_mir:%{_pkgconfigdir}/clutter-mir-1.0.pc}
236 %{_pkgconfigdir}/clutter-wayland-1.0.pc
237 %{_pkgconfigdir}/clutter-wayland-compositor-1.0.pc
240 %defattr(644,root,root,755)
241 %{_libdir}/libclutter-1.0.a
244 %defattr(644,root,root,755)
245 %{_gtkdocdir}/clutter
246 %{_gtkdocdir}/clutter-cookbook