]>
Commit | Line | Data |
---|---|---|
1087d34c | 1 | Summary: X protocol C-language Binding library |
f8966759 | 2 | Summary(pl.UTF-8): XCB - biblioteka dowiązań języka C do protokołu X |
1087d34c | 3 | Name: libxcb |
c056da9b | 4 | Version: 1.0 |
64f54634 | 5 | Release: 4 |
1087d34c JB |
6 | License: MIT |
7 | Group: Libraries | |
8 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 | |
c056da9b | 9 | # Source0-md5: 0eb951fd0fa9542dbe4fc3530b81a3b6 |
c075033a | 10 | # This is a HACK to workaround broken apps like java |
64f54634 | 11 | Patch0: %{name}-no-assert-on-lock.patch |
1087d34c JB |
12 | URL: http://xcb.freedesktop.org/ |
13 | BuildRequires: check >= 0.8.2 | |
f1709e1e | 14 | BuildRequires: doxygen |
c056da9b | 15 | BuildRequires: libpthread-stubs |
1087d34c JB |
16 | BuildRequires: libxslt-progs |
17 | BuildRequires: pkgconfig | |
c056da9b | 18 | BuildRequires: xcb-proto >= 1.0 |
1087d34c JB |
19 | BuildRequires: xorg-lib-libXau-devel |
20 | BuildRequires: xorg-lib-libXdmcp-devel | |
21 | BuildRequires: xorg-proto-xproto-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | X protocol C-language Binding library. | |
26 | ||
bf9cc505 JB |
27 | libxcb provides an interface to the X Window System protocol, slated to |
28 | replace the current Xlib interface. It has several advantages over | |
29 | Xlib, including: | |
30 | - size: small library and lower memory footprint | |
31 | - latency hiding: batch several requests and wait for the replies later | |
32 | - direct protocol access: one-to-one mapping between interface and protocol | |
33 | - proven thread support: transparently access XCB from multiple threads | |
34 | - easy extension implementation: interfaces auto-generated from XML-XCB | |
35 | ||
36 | Xlib can also use XCB as a transport layer, allowing software to make | |
37 | requests and receive responses with both, which eases porting to XCB. | |
38 | However, client programs, libraries, and toolkits will gain the most | |
39 | benefit from a native XCB port. | |
40 | ||
58695368 JR |
41 | %description -l pl.UTF-8 |
42 | XCB - biblioteka dowiązań języka C do protokołu X. | |
1087d34c | 43 | |
58695368 JR |
44 | libxcb udostępnia interfejs do protokołu X Window System, mający |
45 | zastąpić aktualny interfejs Xlib. Ma kilka zalet w stosunku do Xliba, | |
bf9cc505 | 46 | w tym: |
58695368 JR |
47 | - rozmiar: mała biblioteka i niewielki narzut pamięciowy |
48 | - ukrywanie opóźnień: kolejkowanie kilku żądań i oczekiwanie na | |
49 | odpowiedź później | |
50 | - bezpośredni dostęp do protokołu: odwzorowanie 1-1 między interfejsem | |
51 | a protokołem | |
52 | - sprawdzoną obsługę wątków: bezpośredni dostęp do XCB z wielu wątków | |
53 | - łatwe implementowanie rozszerzeń: automatyczne generowanie | |
54 | interfejsów z XML-XCB | |
55 | ||
56 | Xlib może także używać XCB jako warstwy transportowej, pozwalając | |
57 | programom wykonywać żądania i odbierać odpowiedzi poprzez oba | |
58 | interfejsy, co ułatwia przechodzenie na XCB. Jednak programy | |
59 | klienckie, biblioteki i toolkity zyskają więcej na natywnym porcie | |
bf9cc505 JB |
60 | XCB. |
61 | ||
1087d34c JB |
62 | %package devel |
63 | Summary: Header files for XCB library | |
f8966759 | 64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XCB |
1087d34c JB |
65 | Group: Development/Libraries |
66 | Requires: %{name} = %{version}-%{release} | |
39a93e2b | 67 | Requires: libpthread-stubs |
1087d34c JB |
68 | Requires: xorg-lib-libXau-devel |
69 | Requires: xorg-lib-libXdmcp-devel | |
70 | Requires: xorg-proto-xproto-devel | |
71 | ||
72 | %description devel | |
73 | Header files for XCB library. | |
74 | ||
58695368 JR |
75 | %description devel -l pl.UTF-8 |
76 | Pliki nagłówkowe biblioteki XCB. | |
1087d34c JB |
77 | |
78 | %package static | |
79 | Summary: Static XCB library | |
f8966759 | 80 | Summary(pl.UTF-8): Statyczna biblioteka XCB |
1087d34c JB |
81 | Group: Development/Libraries |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | ||
84 | %description static | |
85 | Static XCB library. | |
86 | ||
58695368 | 87 | %description static -l pl.UTF-8 |
1087d34c JB |
88 | Statyczna biblioteka XCB. |
89 | ||
90 | %prep | |
91 | %setup -q | |
64f54634 | 92 | %patch0 -p0 |
1087d34c | 93 | |
3a5176fe JB |
94 | # libxslt 1.1.18 is broken and segfaults on regeneration |
95 | touch src/*.[ch] | |
96 | ||
1087d34c JB |
97 | %build |
98 | %configure | |
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
bdc5e625 JB |
107 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libxcb |
108 | ||
1087d34c JB |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
bf9cc505 | 117 | %doc COPYING NEWS README |
173f2b25 | 118 | %attr(755,root,root) %{_libdir}/libxcb*.so.*.*.* |
1087d34c JB |
119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
bdc5e625 | 122 | %doc doc/{manual,tutorial} |
173f2b25 JB |
123 | %attr(755,root,root) %{_libdir}/libxcb*.so |
124 | %{_libdir}/libxcb*.la | |
125 | %{_includedir}/xcb | |
1087d34c JB |
126 | %{_pkgconfigdir}/xcb*.pc |
127 | ||
128 | %files static | |
129 | %defattr(644,root,root,755) | |
173f2b25 | 130 | %{_libdir}/libxcb*.a |