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