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