1 |
%define name clutter |
2 |
%define version 1.7.10 |
3 |
%define git 0 |
4 |
%define rel 1 |
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: x11-server-xvfb |
45 |
BuildRequires: cogl-devel |
46 |
|
47 |
%description |
48 |
Clutter is an open source software library for creating fast, visually rich |
49 |
graphical user interfaces. The most obvious example of potential usage is in |
50 |
media center type applications. We hope however it can be used for a lot more. |
51 |
|
52 |
Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an |
53 |
API which hides the underlying GL complexity from the developer. The Clutter |
54 |
API is intended to be easy to use, efficient and flexible. |
55 |
|
56 |
#-------------------------------------------------------------------- |
57 |
|
58 |
%package i18n |
59 |
Summary: Translations for %{name} |
60 |
Group: System/Internationalization |
61 |
|
62 |
%description i18n |
63 |
This contains the translation data for %{name}. |
64 |
|
65 |
%files i18n -f %{name}-%{api}.lang |
66 |
|
67 |
#-------------------------------------------------------------------- |
68 |
|
69 |
%package -n %{libname} |
70 |
Summary: Software library for fast, visually rich GUIs |
71 |
Group: System/Libraries |
72 |
Requires: %{name}-i18n >= %{version}-%{release} |
73 |
Requires: %{girname} |
74 |
Provides: %{mklibname %{name} %{api} %{major}} = %{version}-%{release} |
75 |
Obsoletes: %{mklibname %{name} %{api} %{major}} < 1.7.4 |
76 |
|
77 |
%description -n %{libname} |
78 |
Clutter is an open source software library for creating fast, visually rich |
79 |
graphical user interfaces. The most obvious example of potential usage is in |
80 |
media center type applications. We hope however it can be used for a lot more. |
81 |
|
82 |
Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an |
83 |
API which hides the underlying GL complexity from the developer. The Clutter |
84 |
API is intended to be easy to use, efficient and flexible. |
85 |
|
86 |
%files -n %{libname} |
87 |
%{_libdir}/lib%{name}-glx-%{api}.so.%{major}* |
88 |
|
89 |
#-------------------------------------------------------------------- |
90 |
|
91 |
%package -n %{libnamedevel} |
92 |
Summary: Development headers/libraries for %{name} |
93 |
Group: Development/X11 |
94 |
Provides: %{name}-devel = %{version}-%{release} |
95 |
Provides: %{name}-glx-devel = %{version}-%{release} |
96 |
Provides: %{mklibname -d %{name} %{api}} = %{version}-%{release} |
97 |
Obsoletes: %{mklibname -d %{name} %{api}} < 1.7.4 |
98 |
Requires: %{libname} = %{version}-%{release} |
99 |
|
100 |
%description -n %{libnamedevel} |
101 |
Development headers/libraries for %{name} (see %{libname} package) |
102 |
|
103 |
%files -n %{libnamedevel} |
104 |
%{_libdir}/pkgconfig/cally-%{api}.pc |
105 |
%{_libdir}/pkgconfig/%{name}-%{api}.pc |
106 |
%{_libdir}/pkgconfig/%{name}-glx-%{api}.pc |
107 |
%{_libdir}/pkgconfig/%{name}-cogl-%{api}.pc |
108 |
%{_libdir}/pkgconfig/%{name}-x11-%{api}.pc |
109 |
%{_libdir}/lib%{name}-glx-%{api}.so |
110 |
%dir %{_includedir}/%{name}-%{api} |
111 |
%{_includedir}/%{name}-%{api}/cally |
112 |
%{_includedir}/%{name}-%{api}/%{name} |
113 |
%{_datadir}/gir-1.0/Cally-%{girmajor}.gir |
114 |
%{_datadir}/gir-1.0/Clutter-%{girmajor}.gir |
115 |
%{_datadir}/gir-1.0/ClutterX11-%{girmajor}.gir |
116 |
%{_datadir}/gtk-doc/html/cally |
117 |
%{_datadir}/gtk-doc/html/%{name} |
118 |
|
119 |
#-------------------------------------------------------------------- |
120 |
|
121 |
%package -n %{girname} |
122 |
Summary: GObject Introspection interface description for %{name} |
123 |
Group: System/Libraries |
124 |
Requires: %{libname} = %{version}-%{release} |
125 |
Conflicts: %{mklibname %{name}-glx1.0-gir 1.0} < 1.7.4-3 |
126 |
|
127 |
%description -n %{girname} |
128 |
GObject Introspection interface description for %{name}. |
129 |
|
130 |
%files -n %{girname} |
131 |
%{_libdir}/girepository-1.0/Cally-%{girmajor}.typelib |
132 |
%{_libdir}/girepository-1.0/Clutter-%{girmajor}.typelib |
133 |
%{_libdir}/girepository-1.0/ClutterX11-%{girmajor}.typelib |
134 |
|
135 |
|
136 |
#-------------------------------------------------------------------- |
137 |
|
138 |
%prep |
139 |
%if %{git} |
140 |
%setup -q -n %{name} |
141 |
./autogen.sh -V |
142 |
%else |
143 |
%setup -q |
144 |
%endif |
145 |
%apply_patches |
146 |
#autoreconf -fi |
147 |
|
148 |
%build |
149 |
%configure2_5x |
150 |
|
151 |
#git from 20090602 does not work with parallel make |
152 |
xvfb-run %make V=1 |
153 |
|
154 |
%install |
155 |
rm -rf %{buildroot} |
156 |
|
157 |
%makeinstall_std |
158 |
%find_lang %{name}-%{api} |
159 |
|
160 |
# we don't want these |
161 |
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
162 |
|