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