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