1 |
%define name clutter |
2 |
%define version 1.7.4 |
3 |
%define git 0 |
4 |
%define rel 3 |
5 |
|
6 |
%if ! %git |
7 |
%define release %mkrel %{rel} |
8 |
%else |
9 |
%define release %mkrel -c %{git} %{rel} |
10 |
%endif |
11 |
|
12 |
%define api 1.0 |
13 |
%define major 0 |
14 |
%define girmajor 1.0 |
15 |
|
16 |
%define libname %mklibname %{name}-glx %{api} %{major} |
17 |
%define libnamedevel %mklibname -d %{name}-glx %{api} |
18 |
%define girname %mklibname %{name}-glx-gir %{girmajor} |
19 |
|
20 |
Summary: Software library for fast, visually rich GUIs |
21 |
Name: %{name} |
22 |
Version: %{version} |
23 |
Release: %{release} |
24 |
%if %git |
25 |
Source0: %{name}-%{git}.tar.bz2 |
26 |
%else |
27 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/clutter/1.7/%{name}-%{version}.tar.xz |
28 |
%endif |
29 |
License: LGPLv2+ |
30 |
Group: Graphics |
31 |
Url: http://clutter-project.org/ |
32 |
BuildRequires: libx11-devel |
33 |
BuildRequires: libxext-devel |
34 |
BuildRequires: libxcomposite-devel >= 0.4 |
35 |
BuildRequires: libxdamage-devel |
36 |
BuildRequires: libxfixes-devel >= 3 |
37 |
BuildRequires: GL-devel |
38 |
BuildRequires: atk-devel >= 1.17 |
39 |
BuildRequires: pango-devel >= 1.20 |
40 |
BuildRequires: glib2-devel >= 2.26.0 |
41 |
BuildRequires: libgdk_pixbuf2.0-devel >= 2.0 |
42 |
BuildRequires: libjson-glib-devel >= 0.12.0 |
43 |
BuildRequires: gobject-introspection-devel >= 0.9.5 |
44 |
BuildRequires: gtk-doc |
45 |
BuildRequires: docbook-dtd412-xml |
46 |
BuildRequires: x11-server-xvfb |
47 |
BuildRequires: cogl-devel |
48 |
|
49 |
%description |
50 |
Clutter is an open source software library for creating fast, visually rich |
51 |
graphical user interfaces. The most obvious example of potential usage is in |
52 |
media center type applications. We hope however it can be used for a lot more. |
53 |
|
54 |
Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an |
55 |
API which hides the underlying GL complexity from the developer. The Clutter |
56 |
API is intended to be easy to use, efficient and flexible. |
57 |
|
58 |
#-------------------------------------------------------------------- |
59 |
|
60 |
%package i18n |
61 |
Summary: Translations for %{name} |
62 |
Group: System/Internationalization |
63 |
|
64 |
%description i18n |
65 |
This contains the translation data for %{name}. |
66 |
|
67 |
%files i18n -f %{name}-%{api}.lang |
68 |
|
69 |
#-------------------------------------------------------------------- |
70 |
|
71 |
%package -n %{libname} |
72 |
Summary: Software library for fast, visually rich GUIs |
73 |
Group: System/Libraries |
74 |
Requires: %{name}-i18n >= %{version}-%{release} |
75 |
Requires: %{girname} |
76 |
Provides: %{mklibname %{name} %{api} %{major}} = %{version}-%{release} |
77 |
Obsoletes: %{mklibname %{name} %{api} %{major}} < 1.7.4 |
78 |
|
79 |
%description -n %{libname} |
80 |
Clutter is an open source software library for creating fast, visually rich |
81 |
graphical user interfaces. The most obvious example of potential usage is in |
82 |
media center type applications. We hope however it can be used for a lot more. |
83 |
|
84 |
Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an |
85 |
API which hides the underlying GL complexity from the developer. The Clutter |
86 |
API is intended to be easy to use, efficient and flexible. |
87 |
|
88 |
%files -n %{libname} |
89 |
%{_libdir}/lib%{name}-glx-%{api}.so.%{major}* |
90 |
|
91 |
#-------------------------------------------------------------------- |
92 |
|
93 |
%package -n %{libnamedevel} |
94 |
Summary: Development headers/libraries for %{name} |
95 |
Group: Development/X11 |
96 |
Provides: %{name}-devel = %{version}-%{release} |
97 |
Provides: %{name}-glx-devel = %{version}-%{release} |
98 |
Provides: %{mklibname -d %{name} %{api}} = %{version}-%{release} |
99 |
Obsoletes: %{mklibname -d %{name} %{api}} < 1.7.4 |
100 |
Requires: %{libname} = %{version}-%{release} |
101 |
|
102 |
%description -n %{libnamedevel} |
103 |
Development headers/libraries for %{name} (see %{libname} package) |
104 |
|
105 |
%files -n %{libnamedevel} |
106 |
%{_libdir}/pkgconfig/cally-%{api}.pc |
107 |
%{_libdir}/pkgconfig/%{name}-%{api}.pc |
108 |
%{_libdir}/pkgconfig/%{name}-glx-%{api}.pc |
109 |
%{_libdir}/pkgconfig/%{name}-cogl-%{api}.pc |
110 |
%{_libdir}/pkgconfig/%{name}-x11-%{api}.pc |
111 |
%{_libdir}/lib%{name}-glx-%{api}.so |
112 |
%dir %{_includedir}/%{name}-%{api} |
113 |
%{_includedir}/%{name}-%{api}/cally |
114 |
%{_includedir}/%{name}-%{api}/%{name} |
115 |
%{_datadir}/gir-1.0/Cally-%{girmajor}.gir |
116 |
%{_datadir}/gir-1.0/Clutter-%{girmajor}.gir |
117 |
%{_datadir}/gir-1.0/ClutterX11-%{girmajor}.gir |
118 |
%{_datadir}/gtk-doc/html/cally |
119 |
%{_datadir}/gtk-doc/html/%{name} |
120 |
|
121 |
#-------------------------------------------------------------------- |
122 |
|
123 |
%package -n %{girname} |
124 |
Summary: GObject Introspection interface description for %{name} |
125 |
Group: System/Libraries |
126 |
Requires: %{libname} = %{version}-%{release} |
127 |
Conflicts: %{mklibname %{name}-glx1.0-gir 1.0} < 1.7.4-3 |
128 |
|
129 |
%description -n %{girname} |
130 |
GObject Introspection interface description for %{name}. |
131 |
|
132 |
%files -n %{girname} |
133 |
%{_libdir}/girepository-1.0/Cally-%{girmajor}.typelib |
134 |
%{_libdir}/girepository-1.0/Clutter-%{girmajor}.typelib |
135 |
%{_libdir}/girepository-1.0/ClutterX11-%{girmajor}.typelib |
136 |
|
137 |
|
138 |
#-------------------------------------------------------------------- |
139 |
|
140 |
%prep |
141 |
%if %{git} |
142 |
%setup -q -n %{name} |
143 |
./autogen.sh -V |
144 |
%else |
145 |
%setup -q |
146 |
%endif |
147 |
%apply_patches |
148 |
#autoreconf -fi |
149 |
|
150 |
%build |
151 |
%configure2_5x --enable-gtk-doc |
152 |
|
153 |
#git from 20090602 does not work with parallel make |
154 |
xvfb-run %make V=1 |
155 |
|
156 |
%install |
157 |
rm -rf %{buildroot} |
158 |
|
159 |
%makeinstall_std |
160 |
%find_lang %{name}-%{api} |
161 |
|
162 |
# we don't want these |
163 |
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
164 |
|