]>
Commit | Line | Data |
---|---|---|
c78da3e9 | 1 | # |
842e8a15 | 2 | # Conditional build: |
eaec98ab | 3 | %bcond_without apidocs # do not build and package API docs |
842e8a15 | 4 | %bcond_without graphviz # do not require graphviz in doc regeneration |
c78da3e9 | 5 | # |
1087d34c | 6 | Summary: X protocol C-language Binding library |
f8966759 | 7 | Summary(pl.UTF-8): XCB - biblioteka dowiązań języka C do protokołu X |
1087d34c | 8 | Name: libxcb |
d5ae7929 | 9 | Version: 1.9.3 |
5ae5eab4 | 10 | Release: 1 |
1087d34c JB |
11 | License: MIT |
12 | Group: Libraries | |
13 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 | |
d5ae7929 | 14 | # Source0-md5: 1ca999ca94f760d917ef2d8466a88742 |
1087d34c | 15 | URL: http://xcb.freedesktop.org/ |
58c81fa0 | 16 | BuildRequires: autoconf >= 2.57 |
db4ce23f | 17 | BuildRequires: automake |
58c81fa0 | 18 | BuildRequires: check >= 0.9.4 |
f1709e1e | 19 | BuildRequires: doxygen |
e3d4a6be | 20 | %{?with_graphviz:BuildRequires: graphviz} |
5ea0dee7 | 21 | BuildRequires: libpthread-stubs >= 0.3 |
db4ce23f | 22 | BuildRequires: libtool |
1087d34c JB |
23 | BuildRequires: libxslt-progs |
24 | BuildRequires: pkgconfig | |
1c758957 JB |
25 | BuildRequires: python >= 1:2.6 |
26 | BuildRequires: python-modules >= 1:2.6 | |
d5ae7929 | 27 | BuildRequires: xcb-proto >= 1.9 |
31398308 | 28 | BuildRequires: xorg-lib-libXau-devel >= 0.99.2 |
1087d34c JB |
29 | BuildRequires: xorg-lib-libXdmcp-devel |
30 | BuildRequires: xorg-proto-xproto-devel | |
4fd0fc2e | 31 | Requires: xorg-lib-libXau >= 0.99.2 |
1087d34c JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | X protocol C-language Binding library. | |
36 | ||
1c758957 JB |
37 | libxcb provides an interface to the X Window System protocol, slated |
38 | to replace the current Xlib interface. It has several advantages over | |
bf9cc505 JB |
39 | Xlib, including: |
40 | - size: small library and lower memory footprint | |
41 | - latency hiding: batch several requests and wait for the replies later | |
42 | - direct protocol access: one-to-one mapping between interface and protocol | |
43 | - proven thread support: transparently access XCB from multiple threads | |
44 | - easy extension implementation: interfaces auto-generated from XML-XCB | |
45 | ||
46 | Xlib can also use XCB as a transport layer, allowing software to make | |
47 | requests and receive responses with both, which eases porting to XCB. | |
48 | However, client programs, libraries, and toolkits will gain the most | |
49 | benefit from a native XCB port. | |
50 | ||
58695368 JR |
51 | %description -l pl.UTF-8 |
52 | XCB - biblioteka dowiązań języka C do protokołu X. | |
1087d34c | 53 | |
58695368 JR |
54 | libxcb udostępnia interfejs do protokołu X Window System, mający |
55 | zastąpić aktualny interfejs Xlib. Ma kilka zalet w stosunku do Xliba, | |
bf9cc505 | 56 | w tym: |
58695368 JR |
57 | - rozmiar: mała biblioteka i niewielki narzut pamięciowy |
58 | - ukrywanie opóźnień: kolejkowanie kilku żądań i oczekiwanie na | |
59 | odpowiedź później | |
60 | - bezpośredni dostęp do protokołu: odwzorowanie 1-1 między interfejsem | |
61 | a protokołem | |
62 | - sprawdzoną obsługę wątków: bezpośredni dostęp do XCB z wielu wątków | |
63 | - łatwe implementowanie rozszerzeń: automatyczne generowanie | |
64 | interfejsów z XML-XCB | |
65 | ||
66 | Xlib może także używać XCB jako warstwy transportowej, pozwalając | |
67 | programom wykonywać żądania i odbierać odpowiedzi poprzez oba | |
68 | interfejsy, co ułatwia przechodzenie na XCB. Jednak programy | |
69 | klienckie, biblioteki i toolkity zyskają więcej na natywnym porcie | |
bf9cc505 JB |
70 | XCB. |
71 | ||
1087d34c JB |
72 | %package devel |
73 | Summary: Header files for XCB library | |
f8966759 | 74 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XCB |
1087d34c JB |
75 | Group: Development/Libraries |
76 | Requires: %{name} = %{version}-%{release} | |
e34b7a70 | 77 | Requires: libpthread-stubs >= 0.3 |
4fd0fc2e | 78 | Requires: xorg-lib-libXau-devel >= 0.99.2 |
1087d34c JB |
79 | Requires: xorg-lib-libXdmcp-devel |
80 | Requires: xorg-proto-xproto-devel | |
81 | ||
82 | %description devel | |
83 | Header files for XCB library. | |
84 | ||
58695368 JR |
85 | %description devel -l pl.UTF-8 |
86 | Pliki nagłówkowe biblioteki XCB. | |
1087d34c JB |
87 | |
88 | %package static | |
89 | Summary: Static XCB library | |
f8966759 | 90 | Summary(pl.UTF-8): Statyczna biblioteka XCB |
1087d34c JB |
91 | Group: Development/Libraries |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | ||
94 | %description static | |
95 | Static XCB library. | |
96 | ||
58695368 | 97 | %description static -l pl.UTF-8 |
1087d34c JB |
98 | Statyczna biblioteka XCB. |
99 | ||
eaec98ab ER |
100 | %package apidocs |
101 | Summary: XCB library API documentation | |
102 | Summary(pl.UTF-8): Dokumentacja API biblioteki XCB | |
103 | Group: Documentation | |
104 | ||
105 | %description apidocs | |
106 | API and internal documentation for XCB library. | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API biblioteki XCB. | |
110 | ||
1087d34c JB |
111 | %prep |
112 | %setup -q | |
842e8a15 | 113 | %if %{without graphviz} |
114 | %{__sed} -i -e 's/HAVE_DOT = YES/HAVE_DOT = NO/g' doc/xcb.doxygen.in | |
115 | %endif | |
3a5176fe | 116 | |
1087d34c | 117 | %build |
db4ce23f | 118 | %{__libtoolize} |
119 | %{__aclocal} | |
120 | %{__autoconf} | |
121 | %{__automake} | |
1c758957 | 122 | %configure \ |
c170332a AM |
123 | --enable-selinux \ |
124 | --enable-xkb \ | |
1c758957 | 125 | --disable-silent-rules |
1087d34c JB |
126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %{__make} install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
bdc5e625 JB |
134 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libxcb |
135 | ||
1087d34c JB |
136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post -p /sbin/ldconfig | |
140 | %postun -p /sbin/ldconfig | |
141 | ||
142 | %files | |
143 | %defattr(644,root,root,755) | |
bf9cc505 | 144 | %doc COPYING NEWS README |
ba8f67b3 | 145 | %attr(755,root,root) %{_libdir}/libxcb.so.*.*.* |
0f4a6ad5 | 146 | %attr(755,root,root) %ghost %{_libdir}/libxcb.so.1 |
ba8f67b3 JB |
147 | %attr(755,root,root) %{_libdir}/libxcb-composite.so.*.*.* |
148 | %attr(755,root,root) %ghost %{_libdir}/libxcb-composite.so.0 | |
149 | %attr(755,root,root) %{_libdir}/libxcb-damage.so.*.*.* | |
150 | %attr(755,root,root) %ghost %{_libdir}/libxcb-damage.so.0 | |
151 | %attr(755,root,root) %{_libdir}/libxcb-dpms.so.*.*.* | |
152 | %attr(755,root,root) %ghost %{_libdir}/libxcb-dpms.so.0 | |
153 | %attr(755,root,root) %{_libdir}/libxcb-dri2.so.*.*.* | |
154 | %attr(755,root,root) %ghost %{_libdir}/libxcb-dri2.so.0 | |
d5ae7929 JB |
155 | %attr(755,root,root) %{_libdir}/libxcb-dri3.so.*.*.* |
156 | %attr(755,root,root) %ghost %{_libdir}/libxcb-dri3.so.0 | |
ba8f67b3 JB |
157 | %attr(755,root,root) %{_libdir}/libxcb-glx.so.*.*.* |
158 | %attr(755,root,root) %ghost %{_libdir}/libxcb-glx.so.0 | |
d5ae7929 JB |
159 | %attr(755,root,root) %{_libdir}/libxcb-present.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libxcb-present.so.0 | |
ba8f67b3 JB |
161 | %attr(755,root,root) %{_libdir}/libxcb-randr.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/libxcb-randr.so.0 | |
163 | %attr(755,root,root) %{_libdir}/libxcb-record.so.*.*.* | |
164 | %attr(755,root,root) %ghost %{_libdir}/libxcb-record.so.0 | |
165 | %attr(755,root,root) %{_libdir}/libxcb-render.so.*.*.* | |
166 | %attr(755,root,root) %ghost %{_libdir}/libxcb-render.so.0 | |
167 | %attr(755,root,root) %{_libdir}/libxcb-res.so.*.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libxcb-res.so.0 | |
169 | %attr(755,root,root) %{_libdir}/libxcb-screensaver.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libxcb-screensaver.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libxcb-shape.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libxcb-shape.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libxcb-shm.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libxcb-shm.so.0 | |
175 | %attr(755,root,root) %{_libdir}/libxcb-sync.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libxcb-sync.so.0 | |
177 | %attr(755,root,root) %{_libdir}/libxcb-xevie.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xevie.so.0 | |
179 | %attr(755,root,root) %{_libdir}/libxcb-xf86dri.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xf86dri.so.0 | |
181 | %attr(755,root,root) %{_libdir}/libxcb-xfixes.so.*.*.* | |
182 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xfixes.so.0 | |
183 | %attr(755,root,root) %{_libdir}/libxcb-xinerama.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xinerama.so.0 | |
185 | %attr(755,root,root) %{_libdir}/libxcb-xprint.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xprint.so.0 | |
187 | %attr(755,root,root) %{_libdir}/libxcb-xtest.so.*.*.* | |
188 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xtest.so.0 | |
189 | %attr(755,root,root) %{_libdir}/libxcb-xv.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xv.so.0 | |
191 | %attr(755,root,root) %{_libdir}/libxcb-xvmc.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xvmc.so.0 | |
c170332a AM |
193 | %attr(755,root,root) %{_libdir}/libxcb-xkb.so.*.*.* |
194 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xkb.so.0 | |
195 | %attr(755,root,root) %{_libdir}/libxcb-xselinux.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libxcb-xselinux.so.0 | |
1087d34c JB |
197 | |
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
eaec98ab | 200 | %doc doc/tutorial |
ba8f67b3 JB |
201 | %attr(755,root,root) %{_libdir}/libxcb.so |
202 | %attr(755,root,root) %{_libdir}/libxcb-composite.so | |
203 | %attr(755,root,root) %{_libdir}/libxcb-damage.so | |
204 | %attr(755,root,root) %{_libdir}/libxcb-dpms.so | |
205 | %attr(755,root,root) %{_libdir}/libxcb-dri2.so | |
d5ae7929 | 206 | %attr(755,root,root) %{_libdir}/libxcb-dri3.so |
ba8f67b3 | 207 | %attr(755,root,root) %{_libdir}/libxcb-glx.so |
d5ae7929 | 208 | %attr(755,root,root) %{_libdir}/libxcb-present.so |
ba8f67b3 JB |
209 | %attr(755,root,root) %{_libdir}/libxcb-randr.so |
210 | %attr(755,root,root) %{_libdir}/libxcb-record.so | |
211 | %attr(755,root,root) %{_libdir}/libxcb-render.so | |
212 | %attr(755,root,root) %{_libdir}/libxcb-res.so | |
213 | %attr(755,root,root) %{_libdir}/libxcb-screensaver.so | |
214 | %attr(755,root,root) %{_libdir}/libxcb-shape.so | |
215 | %attr(755,root,root) %{_libdir}/libxcb-shm.so | |
216 | %attr(755,root,root) %{_libdir}/libxcb-sync.so | |
217 | %attr(755,root,root) %{_libdir}/libxcb-xevie.so | |
218 | %attr(755,root,root) %{_libdir}/libxcb-xf86dri.so | |
219 | %attr(755,root,root) %{_libdir}/libxcb-xfixes.so | |
220 | %attr(755,root,root) %{_libdir}/libxcb-xinerama.so | |
c170332a | 221 | %attr(755,root,root) %{_libdir}/libxcb-xkb.so |
ba8f67b3 | 222 | %attr(755,root,root) %{_libdir}/libxcb-xprint.so |
c170332a | 223 | %attr(755,root,root) %{_libdir}/libxcb-xselinux.so |
ba8f67b3 JB |
224 | %attr(755,root,root) %{_libdir}/libxcb-xtest.so |
225 | %attr(755,root,root) %{_libdir}/libxcb-xv.so | |
226 | %attr(755,root,root) %{_libdir}/libxcb-xvmc.so | |
227 | %{_libdir}/libxcb.la | |
228 | %{_libdir}/libxcb-composite.la | |
229 | %{_libdir}/libxcb-damage.la | |
230 | %{_libdir}/libxcb-dpms.la | |
231 | %{_libdir}/libxcb-dri2.la | |
d5ae7929 | 232 | %{_libdir}/libxcb-dri3.la |
ba8f67b3 | 233 | %{_libdir}/libxcb-glx.la |
d5ae7929 | 234 | %{_libdir}/libxcb-present.la |
ba8f67b3 JB |
235 | %{_libdir}/libxcb-randr.la |
236 | %{_libdir}/libxcb-record.la | |
237 | %{_libdir}/libxcb-render.la | |
238 | %{_libdir}/libxcb-res.la | |
239 | %{_libdir}/libxcb-screensaver.la | |
240 | %{_libdir}/libxcb-shape.la | |
241 | %{_libdir}/libxcb-shm.la | |
242 | %{_libdir}/libxcb-sync.la | |
243 | %{_libdir}/libxcb-xevie.la | |
244 | %{_libdir}/libxcb-xf86dri.la | |
245 | %{_libdir}/libxcb-xfixes.la | |
246 | %{_libdir}/libxcb-xinerama.la | |
c170332a | 247 | %{_libdir}/libxcb-xkb.la |
ba8f67b3 | 248 | %{_libdir}/libxcb-xprint.la |
c170332a | 249 | %{_libdir}/libxcb-xselinux.la |
ba8f67b3 JB |
250 | %{_libdir}/libxcb-xtest.la |
251 | %{_libdir}/libxcb-xv.la | |
252 | %{_libdir}/libxcb-xvmc.la | |
173f2b25 | 253 | %{_includedir}/xcb |
1087d34c | 254 | %{_pkgconfigdir}/xcb*.pc |
ba8f67b3 JB |
255 | %{_mandir}/man3/xcb-examples.3* |
256 | %{_mandir}/man3/xcb-requests.3* | |
257 | %{_mandir}/man3/xcb_*.3* | |
1087d34c JB |
258 | |
259 | %files static | |
260 | %defattr(644,root,root,755) | |
ba8f67b3 JB |
261 | %{_libdir}/libxcb.a |
262 | %{_libdir}/libxcb-composite.a | |
263 | %{_libdir}/libxcb-damage.a | |
264 | %{_libdir}/libxcb-dpms.a | |
265 | %{_libdir}/libxcb-dri2.a | |
d5ae7929 | 266 | %{_libdir}/libxcb-dri3.a |
ba8f67b3 | 267 | %{_libdir}/libxcb-glx.a |
d5ae7929 | 268 | %{_libdir}/libxcb-present.a |
ba8f67b3 JB |
269 | %{_libdir}/libxcb-randr.a |
270 | %{_libdir}/libxcb-record.a | |
271 | %{_libdir}/libxcb-render.a | |
272 | %{_libdir}/libxcb-res.a | |
273 | %{_libdir}/libxcb-screensaver.a | |
274 | %{_libdir}/libxcb-shape.a | |
275 | %{_libdir}/libxcb-shm.a | |
276 | %{_libdir}/libxcb-sync.a | |
277 | %{_libdir}/libxcb-xevie.a | |
278 | %{_libdir}/libxcb-xf86dri.a | |
279 | %{_libdir}/libxcb-xfixes.a | |
280 | %{_libdir}/libxcb-xinerama.a | |
c170332a | 281 | %{_libdir}/libxcb-xkb.a |
ba8f67b3 | 282 | %{_libdir}/libxcb-xprint.a |
c170332a | 283 | %{_libdir}/libxcb-xselinux.a |
ba8f67b3 JB |
284 | %{_libdir}/libxcb-xtest.a |
285 | %{_libdir}/libxcb-xv.a | |
286 | %{_libdir}/libxcb-xvmc.a | |
eaec98ab ER |
287 | |
288 | %if %{with apidocs} | |
289 | %files apidocs | |
290 | %defattr(644,root,root,755) | |
291 | %doc doc/manual/* | |
292 | %endif |