]> git.pld-linux.org Git - packages/libxcb.git/blame - libxcb.spec
- outdated
[packages/libxcb.git] / libxcb.spec
CommitLineData
1087d34c 1Summary: X protocol C-language Binding library
f8966759 2Summary(pl.UTF-8): XCB - biblioteka dowiązań języka C do protokołu X
1087d34c 3Name: libxcb
2691063c
AM
4Version: 1.1
5Release: 1
1087d34c
JB
6License: MIT
7Group: Libraries
8Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
2691063c 9# Source0-md5: 9310b02433273d75d42f10da3c7455aa
1087d34c 10URL: http://xcb.freedesktop.org/
58c81fa0 11BuildRequires: autoconf >= 2.57
db4ce23f 12BuildRequires: automake
58c81fa0 13BuildRequires: check >= 0.9.4
f1709e1e 14BuildRequires: doxygen
db4ce23f 15BuildRequires: libtool
c056da9b 16BuildRequires: libpthread-stubs
1087d34c
JB
17BuildRequires: libxslt-progs
18BuildRequires: pkgconfig
2691063c 19BuildRequires: xcb-proto >= 1.1
1087d34c
JB
20BuildRequires: xorg-lib-libXau-devel
21BuildRequires: xorg-lib-libXdmcp-devel
22BuildRequires: xorg-proto-xproto-devel
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26X protocol C-language Binding library.
27
bf9cc505
JB
28libxcb provides an interface to the X Window System protocol, slated to
29replace the current Xlib interface. It has several advantages over
30Xlib, 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
37Xlib can also use XCB as a transport layer, allowing software to make
38requests and receive responses with both, which eases porting to XCB.
39However, client programs, libraries, and toolkits will gain the most
40benefit from a native XCB port.
41
58695368
JR
42%description -l pl.UTF-8
43XCB - biblioteka dowiązań języka C do protokołu X.
1087d34c 44
58695368
JR
45libxcb udostępnia interfejs do protokołu X Window System, mający
46zastąpić aktualny interfejs Xlib. Ma kilka zalet w stosunku do Xliba,
bf9cc505 47w 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
57Xlib może także używać XCB jako warstwy transportowej, pozwalając
58programom wykonywać żądania i odbierać odpowiedzi poprzez oba
59interfejsy, co ułatwia przechodzenie na XCB. Jednak programy
60klienckie, biblioteki i toolkity zyskają więcej na natywnym porcie
bf9cc505
JB
61XCB.
62
1087d34c
JB
63%package devel
64Summary: Header files for XCB library
f8966759 65Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XCB
1087d34c
JB
66Group: Development/Libraries
67Requires: %{name} = %{version}-%{release}
39a93e2b 68Requires: libpthread-stubs
1087d34c
JB
69Requires: xorg-lib-libXau-devel
70Requires: xorg-lib-libXdmcp-devel
71Requires: xorg-proto-xproto-devel
72
73%description devel
74Header files for XCB library.
75
58695368
JR
76%description devel -l pl.UTF-8
77Pliki nagłówkowe biblioteki XCB.
1087d34c
JB
78
79%package static
80Summary: Static XCB library
f8966759 81Summary(pl.UTF-8): Statyczna biblioteka XCB
1087d34c
JB
82Group: Development/Libraries
83Requires: %{name}-devel = %{version}-%{release}
84
85%description static
86Static XCB library.
87
58695368 88%description static -l pl.UTF-8
1087d34c
JB
89Statyczna biblioteka XCB.
90
91%prep
92%setup -q
93
3a5176fe
JB
94# libxslt 1.1.18 is broken and segfaults on regeneration
95touch src/*.[ch]
96
1087d34c 97%build
db4ce23f 98%{__libtoolize}
99%{__aclocal}
100%{__autoconf}
101%{__automake}
1087d34c
JB
102%configure
103%{__make}
104
105%install
106rm -rf $RPM_BUILD_ROOT
107
108%{__make} install \
109 DESTDIR=$RPM_BUILD_ROOT
110
bdc5e625
JB
111rm -rf $RPM_BUILD_ROOT%{_docdir}/libxcb
112
1087d34c
JB
113%clean
114rm -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
This page took 0.117797 seconds and 4 git commands to generate.