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