1 |
%define api 1.0 |
2 |
%define major 1 |
3 |
%define libname %mklibname girepository %{api} %{major} |
4 |
%define develname %mklibname -d girepository |
5 |
|
6 |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
7 |
|
8 |
Summary: GObject Introspection |
9 |
Name: gobject-introspection |
10 |
Version: 1.41.91 |
11 |
Release: %mkrel 4 |
12 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
13 |
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires. |
14 |
Source1: gi-find-deps.sh |
15 |
Source2: gobjectintrospection.attr |
16 |
# PATCH-FIX-UPSTREAM g-ir-dep-tool.patch bgo#665672 dimstar@opensuse.org -- Add g-ir-dep-tool to get further automatic dependencies. |
17 |
Patch0: g-ir-dep-tool.patch |
18 |
License: GPLv2+ and LGPLv2+ |
19 |
Group: Development/C |
20 |
Url: http://www.gnome.org |
21 |
BuildRequires: pkgconfig(cairo) |
22 |
BuildRequires: pkgconfig(cairo-gobject) |
23 |
BuildRequires: pkgconfig(gio-2.0) |
24 |
BuildRequires: pkgconfig(gio-unix-2.0) |
25 |
BuildRequires: pkgconfig(glib-2.0) >= 2.29.7 |
26 |
BuildRequires: pkgconfig(gmodule-2.0) |
27 |
BuildRequires: pkgconfig(gobject-2.0) |
28 |
BuildRequires: pkgconfig(gthread-2.0) |
29 |
BuildRequires: pkgconfig(libffi) |
30 |
BuildRequires: pkgconfig(python) |
31 |
BuildRequires: python-mako |
32 |
BuildRequires: flex |
33 |
BuildRequires: bison |
34 |
BuildRequires: gnome-common |
35 |
BuildRequires: libtool |
36 |
BuildRequires: gtk-doc |
37 |
Conflicts: %{mklibname girepository 1.0 0} < 0.6.10-5mdv |
38 |
Conflicts: gir-repository < 0.6.5-12.20100622.3mdv |
39 |
|
40 |
%description |
41 |
The goal of the project is to describe the APIs and collect them in |
42 |
a uniform, machine readable format. |
43 |
|
44 |
%package -n %{libname} |
45 |
Group: System/Libraries |
46 |
Summary: GObject Introspection shared library |
47 |
Conflicts: %{name} < 0.6.8-2mdv |
48 |
Requires: %{name} >= %{version} |
49 |
|
50 |
%description -n %{libname} |
51 |
The goal of the project is to describe the APIs and collect them in |
52 |
a uniform, machine readable format. |
53 |
|
54 |
|
55 |
#--------------------------------------------------------------- |
56 |
%if "%{_lib}" == "lib64" |
57 |
%define mark64 ()(64bit) |
58 |
%else |
59 |
%define mark64 %nil |
60 |
%endif |
61 |
|
62 |
#--------------------------------------------------------------- |
63 |
%define girglibname %mklibname glib-gir 2.0 |
64 |
|
65 |
%package -n %{girglibname} |
66 |
Summary: GObject Introspection interface description for glib |
67 |
Group: System/Libraries |
68 |
Conflicts: %{name} < 1.29.16-3 |
69 |
Requires: libglib-2.0.so.0%{mark64} |
70 |
Requires: libgmodule-2.0.so.0%{mark64} |
71 |
Requires: libgio-2.0.so.0%{mark64} |
72 |
Requires: libgobject-2.0.so.0%{mark64} |
73 |
|
74 |
%description -n %{girglibname} |
75 |
GObject Introspection interface description for glib. |
76 |
|
77 |
%files -n %{girglibname} |
78 |
%{_libdir}/girepository-1.0/GLib-2.0.typelib |
79 |
%{_libdir}/girepository-1.0/GModule-2.0.typelib |
80 |
%{_libdir}/girepository-1.0/GObject-2.0.typelib |
81 |
%{_libdir}/girepository-1.0/Gio-2.0.typelib |
82 |
|
83 |
#--------------------------------------------------------------- |
84 |
%define girdbusname %mklibname dbus-gir 1.0 |
85 |
|
86 |
%package -n %{girdbusname} |
87 |
Summary: GObject Introspection interface description for dbus |
88 |
Group: System/Libraries |
89 |
Conflicts: %{name} < 1.29.16-3 |
90 |
Requires: libdbus-1.so.3%{mark64} |
91 |
|
92 |
%description -n %{girdbusname} |
93 |
GObject Introspection interface description for dbus. |
94 |
|
95 |
%files -n %{girdbusname} |
96 |
%{_libdir}/girepository-1.0/DBus-1.0.typelib |
97 |
|
98 |
#--------------------------------------------------------------- |
99 |
%define girdbusglibname %mklibname dbusglib-gir 1.0 |
100 |
|
101 |
%package -n %{girdbusglibname} |
102 |
Summary: GObject Introspection interface description for dbusglib |
103 |
Group: System/Libraries |
104 |
Conflicts: %{name} < 1.29.16-3 |
105 |
Requires: libdbus-glib-1.so.2%{mark64} |
106 |
|
107 |
%description -n %{girdbusglibname} |
108 |
GObject Introspection interface description for dbusglib. |
109 |
|
110 |
%files -n %{girdbusglibname} |
111 |
%{_libdir}/girepository-1.0/DBusGLib-1.0.typelib |
112 |
|
113 |
#--------------------------------------------------------------- |
114 |
%define girgirepositoryname %mklibname girepository-gir 2.0 |
115 |
|
116 |
%package -n %{girgirepositoryname} |
117 |
Summary: GObject Introspection interface description for girepository |
118 |
Group: System/Libraries |
119 |
Conflicts: %{name} < 1.29.16-3 |
120 |
Requires: %{libname} = %{version}-%{release} |
121 |
|
122 |
%description -n %{girgirepositoryname} |
123 |
GObject Introspection interface description for girepository. |
124 |
|
125 |
%files -n %{girgirepositoryname} |
126 |
%{_libdir}/girepository-1.0/GIRepository-2.0.typelib |
127 |
|
128 |
#--------------------------------------------------------------- |
129 |
%define girglname %mklibname gl-gir 1.0 |
130 |
|
131 |
%package -n %{girglname} |
132 |
Summary: GObject Introspection interface description for OpenGL |
133 |
Group: System/Libraries |
134 |
Conflicts: %{name} < 1.29.16-3 |
135 |
Requires: libGL.so.1%{mark64} |
136 |
|
137 |
%description -n %{girglname} |
138 |
GObject Introspection interface description for OpenGL. |
139 |
|
140 |
%files -n %{girglname} |
141 |
%{_libdir}/girepository-1.0/GL-1.0.typelib |
142 |
|
143 |
#--------------------------------------------------------------- |
144 |
%define gircaironame %mklibname cairo-gir 1.0 |
145 |
|
146 |
%package -n %{gircaironame} |
147 |
Summary: GObject Introspection interface description for cairo |
148 |
Group: System/Libraries |
149 |
Conflicts: %{name} < 1.29.16-3 |
150 |
Requires: libcairo.so.2%{mark64} |
151 |
|
152 |
%description -n %{gircaironame} |
153 |
GObject Introspection interface description for cairo. |
154 |
|
155 |
%files -n %{gircaironame} |
156 |
%{_libdir}/girepository-1.0/cairo-1.0.typelib |
157 |
|
158 |
#--------------------------------------------------------------- |
159 |
%define girfontconfigname %mklibname fontconfig-gir 2.0 |
160 |
|
161 |
%package -n %{girfontconfigname} |
162 |
Summary: GObject Introspection interface description for fontconfig |
163 |
Group: System/Libraries |
164 |
Conflicts: %{name} < 1.29.16-3 |
165 |
Requires: libfontconfig.so.1%{mark64} |
166 |
|
167 |
%description -n %{girfontconfigname} |
168 |
GObject Introspection interface description for fontconfig. |
169 |
|
170 |
%files -n %{girfontconfigname} |
171 |
%{_libdir}/girepository-1.0/fontconfig-2.0.typelib |
172 |
|
173 |
#--------------------------------------------------------------- |
174 |
%define girfreetypename %mklibname freetype-gir 2.0 |
175 |
|
176 |
%package -n %{girfreetypename} |
177 |
Summary: GObject Introspection interface description for freetype |
178 |
Group: System/Libraries |
179 |
Conflicts: %{name} < 1.29.16-3 |
180 |
Requires: libfreetype.so.6%{mark64} |
181 |
|
182 |
%description -n %{girfreetypename} |
183 |
GObject Introspection interface description for freetype. |
184 |
|
185 |
%files -n %{girfreetypename} |
186 |
%{_libdir}/girepository-1.0/freetype2-2.0.typelib |
187 |
|
188 |
#--------------------------------------------------------------- |
189 |
%define girlibxml2name %mklibname xml2-gir 2.0 |
190 |
|
191 |
%package -n %{girlibxml2name} |
192 |
Summary: GObject Introspection interface description for libxml2 |
193 |
Group: System/Libraries |
194 |
Conflicts: %{name} < 1.29.16-3 |
195 |
Requires: libxml2.so.2%{mark64} |
196 |
Obsoletes: %{_lib}libxml2-gir2.0 < 1.36.0-2 |
197 |
|
198 |
%description -n %{girlibxml2name} |
199 |
GObject Introspection interface description for libxml2. |
200 |
|
201 |
%files -n %{girlibxml2name} |
202 |
%{_libdir}/girepository-1.0/libxml2-2.0.typelib |
203 |
|
204 |
#--------------------------------------------------------------- |
205 |
%define girxfixesname %mklibname xfixes-gir 4.0 |
206 |
|
207 |
%package -n %{girxfixesname} |
208 |
Summary: GObject Introspection interface description for xfixes |
209 |
Group: System/Libraries |
210 |
Conflicts: %{name} < 1.29.16-3 |
211 |
Requires: libXfixes.so.3%{mark64} |
212 |
|
213 |
%description -n %{girxfixesname} |
214 |
GObject Introspection interface description for xfixes. |
215 |
|
216 |
%files -n %{girxfixesname} |
217 |
%{_libdir}/girepository-1.0/xfixes-4.0.typelib |
218 |
|
219 |
#--------------------------------------------------------------- |
220 |
%define girxftname %mklibname xft-gir 2.0 |
221 |
|
222 |
%package -n %{girxftname} |
223 |
Summary: GObject Introspection interface description for xft |
224 |
Group: System/Libraries |
225 |
Conflicts: %{name} < 1.29.16-3 |
226 |
Requires: libXft.so.2%{mark64} |
227 |
|
228 |
%description -n %{girxftname} |
229 |
GObject Introspection interface description for xft. |
230 |
|
231 |
%files -n %{girxftname} |
232 |
%{_libdir}/girepository-1.0/xft-2.0.typelib |
233 |
|
234 |
#--------------------------------------------------------------- |
235 |
%define girxlibname %mklibname xlib-gir 2.0 |
236 |
|
237 |
%package -n %{girxlibname} |
238 |
Summary: GObject Introspection interface description for xlib |
239 |
Group: System/Libraries |
240 |
Conflicts: %{name} < 1.29.16-3 |
241 |
Requires: libX11.so.6%{mark64} |
242 |
|
243 |
%description -n %{girxlibname} |
244 |
GObject Introspection interface description for xlib. |
245 |
|
246 |
%files -n %{girxlibname} |
247 |
%{_libdir}/girepository-1.0/xlib-2.0.typelib |
248 |
|
249 |
#--------------------------------------------------------------- |
250 |
%define girxrandrname %mklibname xrandr-gir 1.3 |
251 |
|
252 |
%package -n %{girxrandrname} |
253 |
Summary: GObject Introspection interface description for xrandr |
254 |
Group: System/Libraries |
255 |
Conflicts: %{name} < 1.29.16-3 |
256 |
Requires: libXrandr.so.2%{mark64} |
257 |
|
258 |
%description -n %{girxrandrname} |
259 |
GObject Introspection interface description for xrandr. |
260 |
|
261 |
%files -n %{girxrandrname} |
262 |
%{_libdir}/girepository-1.0/xrandr-1.3.typelib |
263 |
|
264 |
#--------------------------------------------------------------- |
265 |
%define girwin32name %mklibname win32-gir 1.0 |
266 |
|
267 |
%package -n %{girwin32name} |
268 |
Summary: GObject Introspection interface description for win32 |
269 |
Group: System/Libraries |
270 |
|
271 |
%description -n %{girwin32name} |
272 |
GObject Introspection interface description for win32. |
273 |
|
274 |
%files -n %{girwin32name} |
275 |
%{_libdir}/girepository-1.0/win32-1.0.typelib |
276 |
|
277 |
#--------------------------------------------------------------- |
278 |
%package -n %{develname} |
279 |
Group: Development/C |
280 |
Summary: GObject Introspection development libraries |
281 |
Requires: %{libname} = %{version}-%{release} |
282 |
Requires: %{girglibname} = %{version}-%{release} |
283 |
Requires: %{girdbusname} = %{version}-%{release} |
284 |
Requires: %{girdbusglibname} = %{version}-%{release} |
285 |
Requires: %{girgirepositoryname} = %{version}-%{release} |
286 |
Requires: %{girglname} = %{version}-%{release} |
287 |
Requires: %{gircaironame} = %{version}-%{release} |
288 |
Requires: %{girfontconfigname} = %{version}-%{release} |
289 |
Requires: %{girfreetypename} = %{version}-%{release} |
290 |
Requires: %{girlibxml2name} = %{version}-%{release} |
291 |
Requires: %{girxfixesname} = %{version}-%{release} |
292 |
Requires: %{girxftname} = %{version}-%{release} |
293 |
Requires: %{girxlibname} = %{version}-%{release} |
294 |
Requires: %{girxrandrname} = %{version}-%{release} |
295 |
Requires: %{girwin32name} = %{version}-%{release} |
296 |
Provides: libgirepository-devel = %{version}-%{release} |
297 |
Provides: %{name}-devel = %{version}-%{release} |
298 |
#gw /usr/bin/libtool is called in giscanner |
299 |
Requires: libtool |
300 |
|
301 |
%description -n %{develname} |
302 |
The goal of the project is to describe the APIs and collect them in |
303 |
a uniform, machine readable format. |
304 |
|
305 |
#--------------------------------------------------------------- |
306 |
%prep |
307 |
%setup -q |
308 |
%apply_patches |
309 |
|
310 |
%build |
311 |
autoreconf -fi |
312 |
%configure2_5x \ |
313 |
--disable-static --enable-doctool --enable-gtk-doc |
314 |
|
315 |
%make |
316 |
|
317 |
%install |
318 |
%makeinstall_std |
319 |
install -D %{S:1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh |
320 |
install -D %{S:2} -m 0644 %{buildroot}%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr |
321 |
|
322 |
# don't ship .la |
323 |
find %{buildroot} -name '*.la' -delete |
324 |
|
325 |
%check |
326 |
make check |
327 |
|
328 |
%files |
329 |
%doc README NEWS TODO AUTHORS |
330 |
%dir %{_libdir}/girepository-%{api} |
331 |
|
332 |
%files -n %{libname} |
333 |
%{_libdir}/libgirepository-%{api}.so.%{major}* |
334 |
|
335 |
%files -n %{develname} |
336 |
%doc ChangeLog |
337 |
%{_libdir}/libgirepository-%{api}.so |
338 |
%{_libdir}/pkgconfig/gobject-introspection-%{api}.pc |
339 |
%{_libdir}/pkgconfig/gobject-introspection-no-export-%{api}.pc |
340 |
%{_includedir}/%{name}-%{api} |
341 |
%{_datadir}/aclocal/*.m4 |
342 |
%{_datadir}/%{name}-%{api} |
343 |
%{_bindir}/g-ir-* |
344 |
%{_libdir}/%{name} |
345 |
%{_datadir}/gtk-doc/html/gi |
346 |
%dir %{_datadir}/gir-%{api} |
347 |
%{_datadir}/gir-%{api}/DBus-1.0.gir |
348 |
%{_datadir}/gir-%{api}/DBusGLib-1.0.gir |
349 |
%{_datadir}/gir-%{api}/GIRepository-2.0.gir |
350 |
%{_datadir}/gir-%{api}/GL-1.0.gir |
351 |
%{_datadir}/gir-%{api}/GLib-2.0.gir |
352 |
%{_datadir}/gir-%{api}/GModule-2.0.gir |
353 |
%{_datadir}/gir-%{api}/GObject-2.0.gir |
354 |
%{_datadir}/gir-%{api}/Gio-2.0.gir |
355 |
%{_datadir}/gir-%{api}/cairo-1.0.gir |
356 |
%{_datadir}/gir-%{api}/fontconfig-2.0.gir |
357 |
%{_datadir}/gir-%{api}/freetype2-2.0.gir |
358 |
%{_datadir}/gir-%{api}/libxml2-2.0.gir |
359 |
%{_datadir}/gir-%{api}/xfixes-4.0.gir |
360 |
%{_datadir}/gir-%{api}/xft-2.0.gir |
361 |
%{_datadir}/gir-%{api}/xlib-2.0.gir |
362 |
%{_datadir}/gir-%{api}/xrandr-1.3.gir |
363 |
%{_datadir}/gir-%{api}/win32-1.0.gir |
364 |
%{_mandir}/man1/* |
365 |
%{_rpmconfigdir}/gi-find-deps.sh |
366 |
%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr |