]> git.pld-linux.org Git - packages/libxcb.git/blame - libxcb.spec
- rel 2; depend on new libpthread-stubs
[packages/libxcb.git] / libxcb.spec
CommitLineData
842e8a15 1# Conditional build:
2%bcond_without graphviz # do not require graphviz in doc regeneration
3
1087d34c 4Summary: X protocol C-language Binding library
f8966759 5Summary(pl.UTF-8): XCB - biblioteka dowiązań języka C do protokołu X
1087d34c 6Name: libxcb
a1c98b3c 7Version: 1.4
147c8ad8 8Release: 2
1087d34c
JB
9License: MIT
10Group: Libraries
11Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
a1c98b3c 12# Source0-md5: b00fd506c717dea01f595e8da31f6914
1087d34c 13URL: http://xcb.freedesktop.org/
58c81fa0 14BuildRequires: autoconf >= 2.57
db4ce23f 15BuildRequires: automake
58c81fa0 16BuildRequires: check >= 0.9.4
f1709e1e 17BuildRequires: doxygen
842e8a15 18%if %{with graphviz}
c6c137a2 19BuildRequires: graphviz
842e8a15 20%endif
db4ce23f 21BuildRequires: libtool
147c8ad8 22BuildRequires: libpthread-stubs-devel >= 0.2
1087d34c
JB
23BuildRequires: libxslt-progs
24BuildRequires: pkgconfig
4453d0d3 25BuildRequires: xcb-proto >= 1.5
31398308 26BuildRequires: xorg-lib-libXau-devel >= 0.99.2
1087d34c
JB
27BuildRequires: xorg-lib-libXdmcp-devel
28BuildRequires: xorg-proto-xproto-devel
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32X protocol C-language Binding library.
33
bf9cc505
JB
34libxcb provides an interface to the X Window System protocol, slated to
35replace the current Xlib interface. It has several advantages over
36Xlib, 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
43Xlib can also use XCB as a transport layer, allowing software to make
44requests and receive responses with both, which eases porting to XCB.
45However, client programs, libraries, and toolkits will gain the most
46benefit from a native XCB port.
47
58695368
JR
48%description -l pl.UTF-8
49XCB - biblioteka dowiązań języka C do protokołu X.
1087d34c 50
58695368
JR
51libxcb udostępnia interfejs do protokołu X Window System, mający
52zastąpić aktualny interfejs Xlib. Ma kilka zalet w stosunku do Xliba,
bf9cc505 53w 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
63Xlib może także używać XCB jako warstwy transportowej, pozwalając
64programom wykonywać żądania i odbierać odpowiedzi poprzez oba
65interfejsy, co ułatwia przechodzenie na XCB. Jednak programy
66klienckie, biblioteki i toolkity zyskają więcej na natywnym porcie
bf9cc505
JB
67XCB.
68
1087d34c
JB
69%package devel
70Summary: Header files for XCB library
f8966759 71Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XCB
1087d34c
JB
72Group: Development/Libraries
73Requires: %{name} = %{version}-%{release}
39a93e2b 74Requires: libpthread-stubs
1087d34c
JB
75Requires: xorg-lib-libXau-devel
76Requires: xorg-lib-libXdmcp-devel
77Requires: xorg-proto-xproto-devel
78
79%description devel
80Header files for XCB library.
81
58695368
JR
82%description devel -l pl.UTF-8
83Pliki nagłówkowe biblioteki XCB.
1087d34c
JB
84
85%package static
86Summary: Static XCB library
f8966759 87Summary(pl.UTF-8): Statyczna biblioteka XCB
1087d34c
JB
88Group: Development/Libraries
89Requires: %{name}-devel = %{version}-%{release}
90
91%description static
92Static XCB library.
93
58695368 94%description static -l pl.UTF-8
1087d34c
JB
95Statyczna 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
112rm -rf $RPM_BUILD_ROOT
113
114%{__make} install \
115 DESTDIR=$RPM_BUILD_ROOT
116
bdc5e625
JB
117rm -rf $RPM_BUILD_ROOT%{_docdir}/libxcb
118
1087d34c
JB
119%clean
120rm -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
This page took 0.241042 seconds and 4 git commands to generate.