]>
Commit | Line | Data |
---|---|---|
3c70d844 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without egl # EGL framebuffer backend | |
4 | %bcond_without wayland # Wayland backend | |
618caee5 | 5 | %bcond_without evdev # evdev support for input events |
3c70d844 JB |
6 | %bcond_with tslib # TSLib support for input events (outdated?) |
7 | # | |
cb5cfe3c | 8 | Summary: Library for rich GUIs |
74b5426e | 9 | Summary(pl.UTF-8): Biblioteka do bogatych graficznych interfejsów użytkownika |
cb5cfe3c | 10 | Name: clutter |
fe015641 | 11 | Version: 1.18.0 |
03dd03c5 | 12 | Release: 1 |
ddcb41cc | 13 | License: LGPL v2+ |
a76a4f90 | 14 | Group: Libraries |
fe015641 AM |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/clutter/1.18/%{name}-%{version}.tar.xz |
16 | # Source0-md5: bdd6426ab2ca4885164736aa49dcea0a | |
004dec01 PZ |
17 | Patch0: gtkdoc.patch |
18 | Patch1: missing.patch | |
74b5426e | 19 | URL: http://www.clutter-project.org/ |
a76a4f90 | 20 | BuildRequires: OpenGL-GLX-devel |
771eb21c | 21 | BuildRequires: atk-devel >= 1:2.5.3 |
be96c931 JB |
22 | BuildRequires: autoconf >= 2.63 |
23 | BuildRequires: automake >= 1:1.11 | |
5f3c19a8 | 24 | BuildRequires: cairo-devel >= 1.10 |
004dec01 | 25 | BuildRequires: cairo-gobject-devel >= 1.10 |
fe015641 AM |
26 | BuildRequires: cogl-devel >= 1.18.0 |
27 | %{?with_wayland:BuildRequires: cogl-devel(wayland) >= 1.18.0} | |
385bc9de | 28 | BuildRequires: docbook-dtd412-xml |
5f3c19a8 | 29 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
be96c931 | 30 | BuildRequires: gettext-devel >= 0.17 |
ef400ed0 | 31 | BuildRequires: glib2-devel >= 1:2.37.3 |
771eb21c ŁK |
32 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
33 | BuildRequires: gtk+3-devel >= 3.4.0 | |
dab6c1e5 | 34 | BuildRequires: gtk-doc >= 1.15 |
82299da8 | 35 | BuildRequires: json-glib-devel >= 0.12.0 |
3c70d844 | 36 | %{?with_evdev:BuildRequires: libevdev-devel} |
fe015641 | 37 | BuildRequires: libinput-devel |
5f3c19a8 | 38 | BuildRequires: libtool >= 2:2.2.6 |
004dec01 | 39 | BuildRequires: libxslt-progs |
771eb21c | 40 | BuildRequires: pango-devel >= 1:1.30 |
3c70d844 | 41 | BuildRequires: pkgconfig >= 1:0.16 |
385bc9de | 42 | BuildRequires: python-modules |
7ebb1773 | 43 | BuildRequires: tar >= 1:1.22 |
3c70d844 JB |
44 | %{?with_tslib:BuildRequires: tslib-devel >= 1.1} |
45 | %{?with_evdev:BuildRequires: udev-glib-devel} | |
a76a4f90 | 46 | BuildRequires: xorg-lib-libX11-devel |
be96c931 JB |
47 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.4 |
48 | BuildRequires: xorg-lib-libXdamage-devel | |
49 | BuildRequires: xorg-lib-libXext-devel | |
6b294ff5 | 50 | BuildRequires: xorg-lib-libXfixes-devel >= 4 |
be96c931 | 51 | BuildRequires: xorg-lib-libXi-devel |
3c70d844 JB |
52 | %if %{with evdev} || %{with wayland} |
53 | BuildRequires: xorg-lib-libxkbcommon-devel | |
54 | %endif | |
7ebb1773 | 55 | BuildRequires: xz |
3c70d844 JB |
56 | # wayland-client wayland-cursor (for client), wayland-server (for compositor) |
57 | %{?with_wayland:BuildRequires: wayland-devel} | |
ef400ed0 | 58 | BuildRequires: xorg-lib-libxkbcommon-devel |
771eb21c | 59 | Requires: atk >= 1:2.5.3 |
6f7bb387 | 60 | Requires: cairo-gobject >= 1.10 |
fe015641 AM |
61 | Requires: cogl >= 1.18.0 |
62 | %{?with_wayland:Requires: cogl(wayland) >= 1.18.0} | |
ef400ed0 | 63 | Requires: glib2 >= 1:2.37.3 |
771eb21c | 64 | Requires: gtk+3 >= 3.4.0 |
82299da8 | 65 | Requires: json-glib >= 0.12.0 |
771eb21c | 66 | Requires: pango >= 1:1.30 |
618caee5 | 67 | %{?with_evdev:Provides: clutter(evdev) = %{version}-%{release}} |
9fbaa85b | 68 | Obsoletes: clutter-cairo < 1.0 |
cb5cfe3c | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
71 | %description | |
72 | Clutter is an open source software library for creating fast, visually | |
73 | rich graphical user interfaces. The most obvious example of potential | |
74 | usage is in media center type applications. We hope however it can be | |
75 | used for a lot more. | |
76 | ||
77 | Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but | |
78 | with an API which hides the underlying GL complexity from the | |
79 | developer. The Clutter API is intended to be easy to use, efficient | |
80 | and flexible. | |
81 | ||
74b5426e JB |
82 | %description -l pl.UTF-8 |
83 | Clutter to biblioteka o otwartych źródłach do tworzenia szybkich, | |
84 | bogatych wizualnie graficznych interfejsów użytkownika. Najbardziej | |
85 | oczywistym przykładem potencjalnego zastosowania są aplikacje typu | |
86 | centrum multimedialne. Jednak autorzy mają nadzieję, że znajdzie się | |
87 | więcej zastosowań. | |
88 | ||
89 | Clutter wykorzystuje OpenGL (i wkrótce opcjonalnie OpenGL ES) do | |
90 | renderowania, ale API ukrywa złożoność warstwy GL przed programistami. | |
91 | API biblioteki Clutter ma być łatwe w użyciu, wydajne i elastyczne. | |
92 | ||
cb5cfe3c | 93 | %package devel |
94 | Summary: Header files for clutter library | |
95 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki clutter | |
96 | Group: Development/Libraries | |
97 | Requires: %{name} = %{version}-%{release} | |
a76a4f90 | 98 | Requires: OpenGL-GLX-devel |
d77f858f | 99 | Requires: atk-devel >= 1:2.5.3 |
6f7bb387 | 100 | Requires: cairo-gobject-devel >= 1.10 |
fe015641 AM |
101 | Requires: cogl-devel >= 1.18.0 |
102 | %{?with_wayland:Requires: cogl-devel(wayland) >= 1.18.0} | |
5f3c19a8 | 103 | Requires: gdk-pixbuf2-devel >= 2.0 |
3c70d844 | 104 | Requires: glib2-devel >= 1:2.37.3 |
771eb21c | 105 | Requires: gtk+3-devel >= 3.4.0 |
5f3c19a8 | 106 | Requires: json-glib-devel >= 0.12.0 |
771eb21c | 107 | Requires: pango-devel >= 1:1.30 |
a76a4f90 | 108 | Requires: xorg-lib-libX11-devel |
be96c931 JB |
109 | Requires: xorg-lib-libXcomposite-devel >= 0.4 |
110 | Requires: xorg-lib-libXdamage-devel | |
111 | Requires: xorg-lib-libXext-devel | |
6b294ff5 | 112 | Requires: xorg-lib-libXfixes-devel >= 4 |
9fbaa85b | 113 | Obsoletes: clutter-cairo-devel < 1.0 |
618caee5 | 114 | %{?with_evdev:Provides: clutter-devel(evdev) = %{version}-%{release}} |
cb5cfe3c | 115 | |
116 | %description devel | |
117 | Header files for clutter library. | |
118 | ||
119 | %description devel -l pl.UTF-8 | |
120 | Pliki nagłówkowe biblioteki clutter. | |
121 | ||
122 | %package static | |
123 | Summary: Static clutter library | |
124 | Summary(pl.UTF-8): Statyczna biblioteka clutter | |
125 | Group: Development/Libraries | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
9fbaa85b | 127 | Obsoletes: clutter-cairo-static < 1.0 |
618caee5 | 128 | %{?with_evdev:Provides: clutter-static(evdev) = %{version}-%{release}} |
cb5cfe3c | 129 | |
130 | %description static | |
131 | Static clutter library. | |
132 | ||
133 | %description static -l pl.UTF-8 | |
134 | Statyczna biblioteka clutter. | |
135 | ||
136 | %package apidocs | |
137 | Summary: clutter API documentation | |
138 | Summary(pl.UTF-8): Dokumentacja API clutter | |
139 | Group: Documentation | |
140 | Requires: gtk-doc-common | |
141 | ||
142 | %description apidocs | |
143 | clutter API documentation. | |
144 | ||
145 | %description apidocs -l pl.UTF-8 | |
146 | Dokumentacja API clutter. | |
147 | ||
148 | %prep | |
149 | %setup -q | |
004dec01 PZ |
150 | %patch0 -p1 |
151 | %patch1 -p1 | |
cb5cfe3c | 152 | |
153 | %build | |
154 | %{__gtkdocize} | |
a76a4f90 | 155 | %{__libtoolize} |
9fbaa85b | 156 | %{__aclocal} -I build/autotools |
cb5cfe3c | 157 | %{__autoconf} |
5eb2d005 | 158 | %{__autoheader} |
cb5cfe3c | 159 | %{__automake} |
160 | %configure \ | |
ce1cf4e6 | 161 | --disable-silent-rules \ |
004dec01 | 162 | --enable-docs \ |
3c70d844 JB |
163 | %{?with_egl:--enable-egl-backend} \ |
164 | %{?with_evdev:--enable-evdev-input} \ | |
165 | --enable-gdk-backend \ | |
cb5cfe3c | 166 | --enable-gtk-doc \ |
a76a4f90 | 167 | --enable-static \ |
3c70d844 JB |
168 | %{?with_tslib:--enable-tslib-input} \ |
169 | %if %{with wayland} | |
ef400ed0 AF |
170 | --enable-wayland-backend \ |
171 | --enable-wayland-compositor \ | |
3c70d844 | 172 | %endif |
ef400ed0 | 173 | --enable-xinput \ |
cb5cfe3c | 174 | --with-html-dir=%{_gtkdocdir} |
a5e3ce66 | 175 | %{__make} |
cb5cfe3c | 176 | |
177 | %install | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %{__make} install \ | |
181 | DESTDIR=$RPM_BUILD_ROOT | |
182 | ||
dab6c1e5 MB |
183 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libclutter-1.0.la |
184 | ||
b6b2daf1 JB |
185 | # move to %{_examplesdir} and package in -examples? |
186 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/clutter-1.0/cookbook/examples | |
187 | ||
0166de94 MB |
188 | %find_lang clutter-1.0 |
189 | ||
cb5cfe3c | 190 | %clean |
191 | rm -rf $RPM_BUILD_ROOT | |
192 | ||
193 | %post -p /sbin/ldconfig | |
194 | %postun -p /sbin/ldconfig | |
195 | ||
0166de94 | 196 | %files -f clutter-1.0.lang |
cb5cfe3c | 197 | %defattr(644,root,root,755) |
7ebb1773 | 198 | %doc ChangeLog NEWS README |
dab6c1e5 MB |
199 | %attr(755,root,root) %{_libdir}/libclutter-1.0.so.*.*.* |
200 | %attr(755,root,root) %ghost %{_libdir}/libclutter-1.0.so.0 | |
201 | %attr(755,root,root) %{_libdir}/libclutter-glx-1.0.so.0 | |
be96c931 JB |
202 | %{_libdir}/girepository-1.0/Cally-1.0.typelib |
203 | %{_libdir}/girepository-1.0/Clutter-1.0.typelib | |
dab6c1e5 | 204 | %{_libdir}/girepository-1.0/ClutterGdk-1.0.typelib |
be96c931 | 205 | %{_libdir}/girepository-1.0/ClutterX11-1.0.typelib |
cb5cfe3c | 206 | |
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
dab6c1e5 | 209 | %attr(755,root,root) %{_libdir}/libclutter-1.0.so |
9fbaa85b | 210 | %attr(755,root,root) %{_libdir}/libclutter-glx-1.0.so |
9fbaa85b | 211 | %{_includedir}/clutter-1.0 |
be96c931 JB |
212 | %{_datadir}/gir-1.0/Cally-1.0.gir |
213 | %{_datadir}/gir-1.0/Clutter-1.0.gir | |
dab6c1e5 | 214 | %{_datadir}/gir-1.0/ClutterGdk-1.0.gir |
be96c931 | 215 | %{_datadir}/gir-1.0/ClutterX11-1.0.gir |
4108ef6f | 216 | %{_pkgconfigdir}/cally-1.0.pc |
9fbaa85b | 217 | %{_pkgconfigdir}/clutter-1.0.pc |
7ebb1773 | 218 | %{_pkgconfigdir}/clutter-cogl-1.0.pc |
dab6c1e5 | 219 | %{_pkgconfigdir}/clutter-gdk-1.0.pc |
9fbaa85b PZ |
220 | %{_pkgconfigdir}/clutter-glx-1.0.pc |
221 | %{_pkgconfigdir}/clutter-x11-1.0.pc | |
ef400ed0 AF |
222 | %{_pkgconfigdir}/clutter-egl-1.0.pc |
223 | %{_pkgconfigdir}/clutter-wayland-1.0.pc | |
224 | %{_pkgconfigdir}/clutter-wayland-compositor-1.0.pc | |
a76a4f90 JB |
225 | |
226 | %files static | |
227 | %defattr(644,root,root,755) | |
dab6c1e5 | 228 | %{_libdir}/libclutter-1.0.a |
cb5cfe3c | 229 | |
230 | %files apidocs | |
231 | %defattr(644,root,root,755) | |
4108ef6f | 232 | %{_gtkdocdir}/cally |
5eb2d005 | 233 | %{_gtkdocdir}/clutter |
004dec01 | 234 | %{_gtkdocdir}/clutter-cookbook |