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