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