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