/[packages]/cauldron/gobject-introspection/current/SPECS/gobject-introspection.spec
ViewVC logotype

Contents of /cauldron/gobject-introspection/current/SPECS/gobject-introspection.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30