/[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 443701 - (show annotations) (download)
Sun Jun 16 16:47:07 2013 UTC (10 years, 9 months ago) by wally
File size: 10740 byte(s)
- fix libxml2 gir typelib pkg name
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.36.0
11 Release: %mkrel 2
12 Source0: http://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 %package -n %{develname}
261 Group: Development/C
262 Summary: GObject Introspection development libraries
263 Requires: %{libname} = %{version}-%{release}
264 Requires: %{girglibname} = %{version}-%{release}
265 Requires: %{girdbusname} = %{version}-%{release}
266 Requires: %{girdbusglibname} = %{version}-%{release}
267 Requires: %{girgirepositoryname} = %{version}-%{release}
268 Requires: %{girglname} = %{version}-%{release}
269 Requires: %{gircaironame} = %{version}-%{release}
270 Requires: %{girfontconfigname} = %{version}-%{release}
271 Requires: %{girfreetypename} = %{version}-%{release}
272 Requires: %{girlibxml2name} = %{version}-%{release}
273 Requires: %{girxfixesname} = %{version}-%{release}
274 Requires: %{girxftname} = %{version}-%{release}
275 Requires: %{girxlibname} = %{version}-%{release}
276 Requires: %{girxrandrname} = %{version}-%{release}
277 Provides: libgirepository-devel = %{version}-%{release}
278 Provides: %{name}-devel = %{version}-%{release}
279 #gw /usr/bin/libtool is called in giscanner
280 Requires: libtool
281
282 %description -n %{develname}
283 The goal of the project is to describe the APIs and collect them in
284 a uniform, machine readable format.
285
286 #---------------------------------------------------------------
287 %prep
288 %setup -q
289 %apply_patches
290
291 %build
292 autoreconf -fi
293 %configure2_5x \
294 --disable-static --enable-doctool --enable-gtk-doc
295
296 %make
297
298 %install
299 rm -rf %{buildroot}
300 %makeinstall_std
301
302 # don't ship .la
303 find %{buildroot} -name '*.la' -exec rm -f {} \;
304
305 %check
306 make check
307
308 %clean
309 rm -rf %{buildroot}
310
311 %files
312 %defattr(-,root,root)
313 %doc README NEWS TODO AUTHORS
314 %dir %{_libdir}/girepository-%{api}
315
316 %files -n %{libname}
317 %defattr(-,root,root)
318 %{_libdir}/libgirepository-%{api}.so.%{major}*
319
320 %files -n %{develname}
321 %defattr(-,root,root)
322 %doc ChangeLog
323 %{_libdir}/libgirepository-%{api}.so
324 %{_libdir}/pkgconfig/gobject-introspection-%{api}.pc
325 %{_libdir}/pkgconfig/gobject-introspection-no-export-%{api}.pc
326 %{_includedir}/%{name}-%{api}
327 %{_datadir}/aclocal/*.m4
328 %{_datadir}/%{name}-%{api}
329 %{_bindir}/g-ir-*
330 %{_libdir}/%{name}
331 %{_datadir}/gtk-doc/html/gi
332 %dir %{_datadir}/gir-%{api}
333 %{_datadir}/gir-%{api}/DBus-1.0.gir
334 %{_datadir}/gir-%{api}/DBusGLib-1.0.gir
335 %{_datadir}/gir-%{api}/GIRepository-2.0.gir
336 %{_datadir}/gir-%{api}/GL-1.0.gir
337 %{_datadir}/gir-%{api}/GLib-2.0.gir
338 %{_datadir}/gir-%{api}/GModule-2.0.gir
339 %{_datadir}/gir-%{api}/GObject-2.0.gir
340 %{_datadir}/gir-%{api}/Gio-2.0.gir
341 %{_datadir}/gir-%{api}/cairo-1.0.gir
342 %{_datadir}/gir-%{api}/fontconfig-2.0.gir
343 %{_datadir}/gir-%{api}/freetype2-2.0.gir
344 %{_datadir}/gir-%{api}/libxml2-2.0.gir
345 %{_datadir}/gir-%{api}/xfixes-4.0.gir
346 %{_datadir}/gir-%{api}/xft-2.0.gir
347 %{_datadir}/gir-%{api}/xlib-2.0.gir
348 %{_datadir}/gir-%{api}/xrandr-1.3.gir
349 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30