remove req on python-base
[platform/upstream/libxcb.git] / packaging / libxcb.spec
1 Name:           libxcb
2 Version:        1.9
3 Release:        0
4 License:        MIT
5 Summary:        X11 core protocol C library
6 Url:            http://xcb.freedesktop.org/
7 Group:          Development/Libraries/C and C++
8
9 #Git-Clone:     git://anongit.freedesktop.org/xorg/lib/libxcb
10 #Git-Web:       http://cgit.freedesktop.org/xorg/lib/libxcb/
11 #DL-URL:        http://xcb.freedesktop.org/dist/
12 Source:         %{name}-%{version}.tar.bz2
13
14 BuildRequires:  pkgconfig
15 BuildRequires:  python >= 2.6
16 BuildRequires:  python-xml
17 BuildRequires:  xsltproc
18 BuildRequires:  pkgconfig(check) >= 0.9.4
19 BuildRequires:  pkgconfig(pthread-stubs)
20 BuildRequires:  pkgconfig(xau) >= 0.99.2
21 BuildRequires:  pkgconfig(xcb-proto) >= 1.7
22
23 %description
24 The X protocol C-language Binding (XCB) is a replacement for Xlib
25 featuring a small footprint, latency hiding, direct access to the
26 protocol, improved threading support, and extensibility.
27
28 %package -n libxcb-composite
29 Summary:        X11 Composite Extension C library
30 Group:          System/Libraries
31
32 %description -n libxcb-composite
33 The X protocol C-language Binding (XCB) is a replacement for Xlib
34 featuring a small footprint, latency hiding, direct access to the
35 protocol, improved threading support, and extensibility.
36
37 The Composite extension causes a entire sub-tree of the window
38 hierarchy to be rendered to an off-screen buffer. Applications can
39 then take the contents of that buffer and do whatever they like. The
40 off-screen buffer can be automatically merged into the parent window
41 or merged by external programs, called compositing managers.
42
43 %package -n libxcb-damage
44 Summary:        X11 Damage Extension C library
45 Group:          System/Libraries
46
47 %description -n libxcb-damage
48 The X protocol C-language Binding (XCB) is a replacement for Xlib
49 featuring a small footprint, latency hiding, direct access to the
50 protocol, improved threading support, and extensibility.
51
52 The X Damage Extension allows applications to track modified regions
53 of drawables.
54
55 %package -n libxcb-dpms
56 Summary:        X11 DPMS Extension C library
57 Group:          System/Libraries
58
59 %description -n libxcb-dpms
60 The X protocol C-language Binding (XCB) is a replacement for Xlib
61 featuring a small footprint, latency hiding, direct access to the
62 protocol, improved threading support, and extensibility.
63
64 %package -n libxcb-dri2
65 Summary:        X11 DRI2 Extension C library
66 Group:          System/Libraries
67
68 %description -n libxcb-dri2
69 The X protocol C-language Binding (XCB) is a replacement for Xlib
70 featuring a small footprint, latency hiding, direct access to the
71 protocol, improved threading support, and extensibility.
72
73 %package -n libxcb-glx
74 Summary:        X11 GLX Extension C library
75 Group:          System/Libraries
76
77 %description -n libxcb-glx
78 The X protocol C-language Binding (XCB) is a replacement for Xlib
79 featuring a small footprint, latency hiding, direct access to the
80 protocol, improved threading support, and extensibility.
81
82 %package -n libxcb-randr
83 Summary:        X11 RandR Extension C library
84 Group:          System/Libraries
85
86 %description -n libxcb-randr
87 The X protocol C-language Binding (XCB) is a replacement for Xlib
88 featuring a small footprint, latency hiding, direct access to the
89 protocol, improved threading support, and extensibility.
90
91 The X Resize, Rotate and Reflect Extension (RandR) allows clients to
92 dynamically change X screens, so as to resize, to change the
93 orientation and layout of the root window of a screen.
94
95 %package -n libxcb-record
96 Summary:        X11 RECORD Extension C library
97 Group:          System/Libraries
98
99 %description -n libxcb-record
100 The X protocol C-language Binding (XCB) is a replacement for Xlib
101 featuring a small footprint, latency hiding, direct access to the
102 protocol, improved threading support, and extensibility.
103
104 The RECORD extension supports the recording and reporting of all core
105 X protocol and arbitrary X extension protocol.
106
107 %package -n libxcb-render
108 Summary:        X11 Render Extension C library
109 Group:          System/Libraries
110
111 %description -n libxcb-render
112 The X protocol C-language Binding (XCB) is a replacement for Xlib
113 featuring a small footprint, latency hiding, direct access to the
114 protocol, improved threading support, and extensibility.
115
116 %package -n libxcb-res
117 Summary:        X11 Resource Extension C library
118 Group:          System/Libraries
119
120 %description -n libxcb-res
121 The X protocol C-language Binding (XCB) is a replacement for Xlib
122 featuring a small footprint, latency hiding, direct access to the
123 protocol, improved threading support, and extensibility.
124
125 %package -n libxcb-screensaver
126 Summary:        X11 ScreenSaver Extension C library
127 Group:          System/Libraries
128
129 %description -n libxcb-screensaver
130 The X protocol C-language Binding (XCB) is a replacement for Xlib
131 featuring a small footprint, latency hiding, direct access to the
132 protocol, improved threading support, and extensibility.
133
134 The X Window System provides support for changing the image on a
135 display screen after a user-settable period of inactivity to avoid
136 burning the cathode ray tube phosphors. This extension allows an
137 external "screen saver" client to detect when the alternate image is
138 to be displayed and to provide the graphics.
139
140 %package -n libxcb-shape
141 Summary:        X11 Shape Extension C library
142 Group:          System/Libraries
143
144 %description -n libxcb-shape
145 The X protocol C-language Binding (XCB) is a replacement for Xlib
146 featuring a small footprint, latency hiding, direct access to the
147 protocol, improved threading support, and extensibility.
148
149 - X11 Nonrectangular Window Shape extension (Xshape)
150
151 %package -n libxcb-shm
152 Summary:        X11 Shared Memory Extension C library
153 Group:          System/Libraries
154
155 %description -n libxcb-shm
156 The X protocol C-language Binding (XCB) is a replacement for Xlib
157 featuring a small footprint, latency hiding, direct access to the
158 protocol, improved threading support, and extensibility.
159
160 The MIT Shared Memory (MIT-SHM) Extension allows exchanging image
161 data between client and server using shared memory, so that it does
162 not need to be transferred over sockets.
163
164 %package -n libxcb-sync
165 Summary:        X11 Sync Extension C library
166 Group:          System/Libraries
167
168 %description -n libxcb-sync
169 The X protocol C-language Binding (XCB) is a replacement for Xlib
170 featuring a small footprint, latency hiding, direct access to the
171 protocol, improved threading support, and extensibility.
172
173 %package -n libxcb-xevie
174 Summary:        X11 Xevie Extension C library
175 Group:          System/Libraries
176
177 %description -n libxcb-xevie
178 The X protocol C-language Binding (XCB) is a replacement for Xlib
179 featuring a small footprint, latency hiding, direct access to the
180 protocol, improved threading support, and extensibility.
181
182 The EvIE (Event Interception Extension) allows for clients to be able
183 to intercept all events coming through the server and then decide
184 what to do with them, including being able to modify or discard
185 events.
186
187 %package -n libxcb-xf86dri
188 Summary:        X11 XFree86-DRI Extension C library
189 Group:          System/Libraries
190
191 %description -n libxcb-xf86dri
192 The X protocol C-language Binding (XCB) is a replacement for Xlib
193 featuring a small footprint, latency hiding, direct access to the
194 protocol, improved threading support, and extensibility.
195
196 %package -n libxcb-xfixes
197 Summary:        X11 Xfixes Extension C library
198 Group:          System/Libraries
199
200 %description -n libxcb-xfixes
201 The X protocol C-language Binding (XCB) is a replacement for Xlib
202 featuring a small footprint, latency hiding, direct access to the
203 protocol, improved threading support, and extensibility.
204
205 The X Fixes extension provides applications with work-arounds for
206 various limitations in the core protocol.
207
208 %package -n libxcb-xinerama
209 Summary:        X11 Xinerama Extension C library
210 Group:          System/Libraries
211
212 %description -n libxcb-xinerama
213 The X protocol C-language Binding (XCB) is a replacement for Xlib
214 featuring a small footprint, latency hiding, direct access to the
215 protocol, improved threading support, and extensibility.
216
217 Xinerama is an extension to the X Window System which enables
218 multi-headed X applications and window managers to use two or more
219 physical displays as one large virtual display.
220
221 %package -n libxcb-xprint
222 Summary:        X11 XPrint Extension C library
223 Group:          System/Libraries
224
225 %description -n libxcb-xprint
226 The X protocol C-language Binding (XCB) is a replacement for Xlib
227 featuring a small footprint, latency hiding, direct access to the
228 protocol, improved threading support, and extensibility.
229
230 libxcb-xprint provides APIs to allow client applications to render to
231 non-display devices.
232
233 %package -n libxcb-xtest
234 Summary:        X11 XTEST Extension C library
235 Group:          System/Libraries
236
237 %description -n libxcb-xtest
238 The X protocol C-language Binding (XCB) is a replacement for Xlib
239 featuring a small footprint, latency hiding, direct access to the
240 protocol, improved threading support, and extensibility.
241
242 The XTEST extension is a minimal set of client and server extensions
243 required to completely test the X11 server with no user intervention.
244 This extension is not intended to support general journaling and
245 playback of user actions.
246
247 %package -n libxcb-xv
248 Summary:        X11 video Extension C library
249 Group:          System/Libraries
250
251 %description -n libxcb-xv
252 The X protocol C-language Binding (XCB) is a replacement for Xlib
253 featuring a small footprint, latency hiding, direct access to the
254 protocol, improved threading support, and extensibility.
255
256 The X Video Extension (Xv) extension provides support for video
257 adaptors attached to an X display. It takes the approach that a
258 display may have one or more video adaptors, each of which has one or
259 more ports through which independent video streams pass.
260
261 %package -n libxcb-xvmc
262 Summary:        X11 Video Motion Compensation Extension C library
263 Group:          System/Libraries
264
265 %description -n libxcb-xvmc
266 The X protocol C-language Binding (XCB) is a replacement for Xlib
267 featuring a small footprint, latency hiding, direct access to the
268 protocol, improved threading support, and extensibility.
269
270 X-Video Motion Compensation (XvMC), is an extension of the X video
271 extension (Xv) for the X Window System. The XvMC API allows video
272 programs to offload portions of the video decoding process to the GPU
273 video-hardware.
274
275 %package devel
276 Summary:        Development files for the X11 protocol C library
277 Group:          Development/Libraries/C and C++
278 Requires:       libxcb-composite = %{version}
279 Requires:       libxcb-damage = %{version}
280 Requires:       libxcb-dpms = %{version}
281 Requires:       libxcb-dri2 = %{version}
282 Requires:       libxcb-glx = %{version}
283 Requires:       libxcb-randr = %{version}
284 Requires:       libxcb-record = %{version}
285 Requires:       libxcb-render = %{version}
286 Requires:       libxcb-res = %{version}
287 Requires:       libxcb-screensaver = %{version}
288 Requires:       libxcb-shape = %{version}
289 Requires:       libxcb-shm = %{version}
290 Requires:       libxcb-sync = %{version}
291 Requires:       libxcb-xevie = %{version}
292 Requires:       libxcb-xf86dri = %{version}
293 Requires:       libxcb-xfixes = %{version}
294 Requires:       libxcb-xinerama = %{version}
295 Requires:       libxcb-xprint = %{version}
296 Requires:       libxcb-xtest = %{version}
297 Requires:       libxcb-xv = %{version}
298 Requires:       libxcb-xvmc = %{version}
299
300 %description devel
301 The X protocol C-language Binding (XCB) is a replacement for Xlib
302 featuring a small footprint, latency hiding, direct access to the
303 protocol, improved threading support, and extensibility.
304
305 This package contains the development headers for the library found
306 in %lname.
307
308 %prep
309 %setup -q
310
311 %build
312 %autogen
313 %configure --docdir=%_docdir/%{name} --disable-static
314 make %{?_smp_mflags}
315
316 %install
317 %make_install
318
319 %post   -n libxcb -p /sbin/ldconfig
320
321 %postun -n libxcb -p /sbin/ldconfig
322
323 %post   -n libxcb-composite -p /sbin/ldconfig
324
325 %postun -n libxcb-composite -p /sbin/ldconfig
326
327 %post   -n libxcb-damage -p /sbin/ldconfig
328
329 %postun -n libxcb-damage -p /sbin/ldconfig
330
331 %post   -n libxcb-dpms -p /sbin/ldconfig
332
333 %postun -n libxcb-dpms -p /sbin/ldconfig
334
335 %post   -n libxcb-dri2 -p /sbin/ldconfig
336
337 %postun -n libxcb-dri2 -p /sbin/ldconfig
338
339 %post   -n libxcb-glx -p /sbin/ldconfig
340
341 %postun -n libxcb-glx -p /sbin/ldconfig
342
343 %post   -n libxcb-randr -p /sbin/ldconfig
344
345 %postun -n libxcb-randr -p /sbin/ldconfig
346
347 %post   -n libxcb-record -p /sbin/ldconfig
348
349 %postun -n libxcb-record -p /sbin/ldconfig
350
351 %post   -n libxcb-render -p /sbin/ldconfig
352
353 %postun -n libxcb-render -p /sbin/ldconfig
354
355 %post   -n libxcb-res -p /sbin/ldconfig
356
357 %postun -n libxcb-res -p /sbin/ldconfig
358
359 %post   -n libxcb-screensaver -p /sbin/ldconfig
360
361 %postun -n libxcb-screensaver -p /sbin/ldconfig
362
363 %post   -n libxcb-shape -p /sbin/ldconfig
364
365 %postun -n libxcb-shape -p /sbin/ldconfig
366
367 %post   -n libxcb-shm -p /sbin/ldconfig
368
369 %postun -n libxcb-shm -p /sbin/ldconfig
370
371 %post   -n libxcb-sync -p /sbin/ldconfig
372
373 %postun -n libxcb-sync -p /sbin/ldconfig
374
375 %post   -n libxcb-xevie -p /sbin/ldconfig
376
377 %postun -n libxcb-xevie -p /sbin/ldconfig
378
379 %post   -n libxcb-xf86dri -p /sbin/ldconfig
380
381 %postun -n libxcb-xf86dri -p /sbin/ldconfig
382
383 %post   -n libxcb-xfixes -p /sbin/ldconfig
384
385 %postun -n libxcb-xfixes -p /sbin/ldconfig
386
387 %post   -n libxcb-xinerama -p /sbin/ldconfig
388
389 %postun -n libxcb-xinerama -p /sbin/ldconfig
390
391 %post   -n libxcb-xprint -p /sbin/ldconfig
392
393 %postun -n libxcb-xprint -p /sbin/ldconfig
394
395 %post   -n libxcb-xtest -p /sbin/ldconfig
396
397 %postun -n libxcb-xtest -p /sbin/ldconfig
398
399 %post   -n libxcb-xv -p /sbin/ldconfig
400
401 %postun -n libxcb-xv -p /sbin/ldconfig
402
403 %post   -n libxcb-xvmc -p /sbin/ldconfig
404
405 %postun -n libxcb-xvmc -p /sbin/ldconfig
406
407 %files -n libxcb
408 %defattr(-,root,root)
409 %{_libdir}/libxcb.so.1*
410
411 %files -n libxcb-composite
412 %defattr(-,root,root)
413 %{_libdir}/libxcb-composite.so.0*
414
415 %files -n libxcb-damage
416 %defattr(-,root,root)
417 %{_libdir}/libxcb-damage.so.0*
418
419 %files -n libxcb-dpms
420 %defattr(-,root,root)
421 %{_libdir}/libxcb-dpms.so.0*
422
423 %files -n libxcb-dri2
424 %defattr(-,root,root)
425 %{_libdir}/libxcb-dri2.so.0*
426
427 %files -n libxcb-glx
428 %defattr(-,root,root)
429 %{_libdir}/libxcb-glx.so.0*
430
431 %files -n libxcb-randr
432 %defattr(-,root,root)
433 %{_libdir}/libxcb-randr.so.0*
434
435 %files -n libxcb-record
436 %defattr(-,root,root)
437 %{_libdir}/libxcb-record.so.0*
438
439 %files -n libxcb-render
440 %defattr(-,root,root)
441 %{_libdir}/libxcb-render.so.0*
442
443 %files -n libxcb-res
444 %defattr(-,root,root)
445 %{_libdir}/libxcb-res.so.0*
446
447 %files -n libxcb-screensaver
448 %defattr(-,root,root)
449 %{_libdir}/libxcb-screensaver.so.0*
450
451 %files -n libxcb-shape
452 %defattr(-,root,root)
453 %{_libdir}/libxcb-shape.so.0*
454
455 %files -n libxcb-shm
456 %defattr(-,root,root)
457 %{_libdir}/libxcb-shm.so.0*
458
459 %files -n libxcb-sync
460 %defattr(-,root,root)
461 %{_libdir}/libxcb-sync.so.0*
462
463 %files -n libxcb-xevie
464 %defattr(-,root,root)
465 %{_libdir}/libxcb-xevie.so.0*
466
467 %files -n libxcb-xf86dri
468 %defattr(-,root,root)
469 %{_libdir}/libxcb-xf86dri.so.*
470
471 %files -n libxcb-xfixes
472 %defattr(-,root,root)
473 %{_libdir}/libxcb-xfixes.so.*
474
475 %files -n libxcb-xinerama
476 %defattr(-,root,root)
477 %{_libdir}/libxcb-xinerama.so.0*
478
479 %files -n libxcb-xprint
480 %defattr(-,root,root)
481 %{_libdir}/libxcb-xprint.so.0*
482
483 %files -n libxcb-xtest
484 %defattr(-,root,root)
485 %{_libdir}/libxcb-xtest.so.0*
486
487 %files -n libxcb-xv
488 %defattr(-,root,root)
489 %{_libdir}/libxcb-xv.so.0*
490
491 %files -n libxcb-xvmc
492 %defattr(-,root,root)
493 %{_libdir}/libxcb-xvmc.so.0*
494
495 %files devel
496 %defattr(-,root,root)
497 %{_includedir}/xcb
498 %{_libdir}/libxcb*.so
499 %{_libdir}/pkgconfig/xcb*.pc
500 %_docdir/%{name}
501
502 %docs_package
503
504 %changelog