]>
Commit | Line | Data |
---|---|---|
ac99ec55 JB |
1 | # |
2 | # Conditional build: | |
61e6236a | 3 | %bcond_without static_libs # don't build static library |
4 | %bcond_without xcb # XCB for low-level protocol implementation | |
ac99ec55 | 5 | # |
eb10d989 JB |
6 | Summary: Core X11 protocol client library |
7 | Summary(pl.UTF-8): Podstawowa biblioteka kliencka protokołu X11 | |
fb0e5d86 | 8 | Name: xorg-lib-libX11 |
14b6d8bd | 9 | Version: 1.3 |
62e018c8 | 10 | Release: 1 |
fb0e5d86 AM |
11 | License: MIT |
12 | Group: X11/Libraries | |
4a571e62 | 13 | Source0: http://xorg.freedesktop.org/releases/individual/lib/libX11-%{version}.tar.bz2 |
14b6d8bd | 14 | # Source0-md5: 0545089013213e90aac19b8f8045d32e |
efde2565 | 15 | # sync locales and their encodings with glibc |
e526b8f8 | 16 | Patch0: %{name}-glibc-locale_sync.patch |
fb0e5d86 | 17 | URL: http://xorg.freedesktop.org/ |
eb10d989 | 18 | BuildRequires: autoconf >= 2.60 |
fb0e5d86 | 19 | BuildRequires: automake |
4655174b | 20 | BuildRequires: cpp |
7498b4a3 | 21 | BuildRequires: libtool |
359a44e2 | 22 | BuildRequires: pkgconfig >= 1:0.19 |
30e2f483 | 23 | BuildRequires: xorg-lib-xtrans-devel |
fb0e5d86 AM |
24 | BuildRequires: xorg-proto-inputproto-devel |
25 | BuildRequires: xorg-proto-kbproto-devel | |
fb0e5d86 AM |
26 | BuildRequires: xorg-proto-xextproto-devel |
27 | BuildRequires: xorg-proto-xf86bigfontproto-devel | |
b65b3f1e | 28 | BuildRequires: xorg-proto-xproto-devel >= 7.0.13 |
eb10d989 JB |
29 | BuildRequires: xorg-util-util-macros >= 1.3 |
30 | %if %{with xcb} | |
31 | BuildRequires: libxcb-devel >= 1.2 | |
32 | %else | |
33 | BuildRequires: xorg-lib-libXau-devel | |
34 | BuildRequires: xorg-lib-libXdmcp-devel | |
35 | BuildRequires: xorg-proto-bigreqsproto-devel | |
36 | BuildRequires: xorg-proto-xcmiscproto-devel | |
37 | %endif | |
9a3b4e5a | 38 | %{?with_xcb:Requires: libxcb >= 1.2} |
ab86e80a | 39 | Obsoletes: libX11 |
7498b4a3 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb0e5d86 | 41 | |
fb0e5d86 | 42 | %description |
eb10d989 | 43 | Core X11 protocol client library. |
fb0e5d86 | 44 | |
6bfcf4a9 | 45 | %description -l pl.UTF-8 |
eb10d989 | 46 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 47 | |
fb0e5d86 | 48 | %package devel |
32ec9b81 | 49 | Summary: Header files for libX11 library |
8522c985 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libX11 |
fb0e5d86 | 51 | Group: X11/Development/Libraries |
7498b4a3 | 52 | Requires: %{name} = %{version}-%{release} |
7498b4a3 | 53 | Requires: xorg-proto-kbproto-devel |
b65b3f1e | 54 | Requires: xorg-proto-xproto-devel >= 7.0.13 |
eb10d989 JB |
55 | %if %{with xcb} |
56 | Requires: libxcb-devel >= 1.2 | |
57 | %else | |
58 | Requires: xorg-lib-libXau-devel | |
59 | Requires: xorg-lib-libXdmcp-devel | |
60 | %endif | |
ab86e80a | 61 | Obsoletes: libX11-devel |
fb0e5d86 AM |
62 | |
63 | %description devel | |
eb10d989 | 64 | Core X11 protocol client library. |
fb0e5d86 AM |
65 | |
66 | This package contains the header files needed to develop programs that | |
32ec9b81 | 67 | use libX11. |
fb0e5d86 | 68 | |
6bfcf4a9 | 69 | %description devel -l pl.UTF-8 |
eb10d989 | 70 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 71 | |
6bfcf4a9 JR |
72 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
73 | używających biblioteki libX11. | |
fb0e5d86 | 74 | |
fb0e5d86 | 75 | %package static |
7498b4a3 | 76 | Summary: Static libX11 library |
8522c985 | 77 | Summary(pl.UTF-8): Biblioteka statyczna libX11 |
7498b4a3 JB |
78 | Group: X11/Development/Libraries |
79 | Requires: %{name}-devel = %{version}-%{release} | |
ab86e80a | 80 | Obsoletes: libX11-static |
fb0e5d86 AM |
81 | |
82 | %description static | |
eb10d989 | 83 | Core X11 protocol client library. |
fb0e5d86 AM |
84 | |
85 | This package contains the static libX11 library. | |
86 | ||
6bfcf4a9 | 87 | %description static -l pl.UTF-8 |
eb10d989 | 88 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 89 | |
6bfcf4a9 | 90 | Pakiet zawiera statyczną bibliotekę libX11. |
fb0e5d86 | 91 | |
fb0e5d86 AM |
92 | %prep |
93 | %setup -q -n libX11-%{version} | |
efde2565 | 94 | %patch0 -p1 |
fb0e5d86 | 95 | |
fb0e5d86 AM |
96 | %build |
97 | %{__libtoolize} | |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
ac99ec55 | 102 | %configure \ |
61e6236a | 103 | %{!?with_static_libs:--disable-static} \ |
ac99ec55 | 104 | %{!?with_xcb:--without-xcb} |
fb0e5d86 AM |
105 | |
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT \ | |
113 | pkgconfigdir=%{_pkgconfigdir} | |
30e2f483 | 114 | |
fb0e5d86 AM |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
30e2f483 ER |
121 | %pretrans |
122 | # this needs to be a dir | |
9a3a34ef | 123 | if [ -L %{_libdir}/X11 ]; then |
30e2f483 ER |
124 | umask 022 |
125 | mv -f %{_libdir}/X11{,.rpmsave} | |
126 | mkdir %{_libdir}/X11 | |
127 | fi | |
128 | ||
fb0e5d86 AM |
129 | %files |
130 | %defattr(644,root,root,755) | |
da8a9538 | 131 | %doc AUTHORS COPYING ChangeLog README |
7498b4a3 | 132 | %attr(755,root,root) %{_libdir}/libX11.so.*.*.* |
82174535 | 133 | %attr(755,root,root) %ghost %{_libdir}/libX11.so.6 |
ac99ec55 JB |
134 | %if %{with xcb} |
135 | %attr(755,root,root) %{_libdir}/libX11-xcb.so.*.*.* | |
82174535 | 136 | %attr(755,root,root) %ghost %{_libdir}/libX11-xcb.so.1 |
ac99ec55 | 137 | %endif |
da8a9538 JB |
138 | %dir %{_libdir}/X11 |
139 | %{_libdir}/X11/Xcms.txt | |
0d382d8c JB |
140 | %dir %{_datadir}/X11 |
141 | %{_datadir}/X11/XErrorDB | |
142 | %{_datadir}/X11/XKeysymDB | |
05ab38ad ER |
143 | %dir %{_datadir}/X11/locale |
144 | %{_datadir}/X11/locale/compose.dir | |
145 | %{_datadir}/X11/locale/locale.alias | |
146 | %{_datadir}/X11/locale/locale.dir | |
147 | %{_datadir}/X11/locale/C | |
148 | %{_datadir}/X11/locale/en_US.UTF-8 | |
149 | ||
150 | # encodings, not really lang taggable | |
151 | %{_datadir}/X11/locale/armscii-8 | |
152 | %{_datadir}/X11/locale/georgian-academy | |
153 | %{_datadir}/X11/locale/georgian-ps | |
154 | %{_datadir}/X11/locale/ibm-cp1133 | |
155 | %{_datadir}/X11/locale/iscii-dev | |
156 | %{_datadir}/X11/locale/isiri-3342 | |
157 | %{_datadir}/X11/locale/iso8859-1 | |
158 | %{_datadir}/X11/locale/iso8859-10 | |
159 | %{_datadir}/X11/locale/iso8859-11 | |
160 | %{_datadir}/X11/locale/iso8859-13 | |
161 | %{_datadir}/X11/locale/iso8859-14 | |
162 | %{_datadir}/X11/locale/iso8859-15 | |
efde2565 | 163 | %{_datadir}/X11/locale/iso8859-16 |
05ab38ad ER |
164 | %{_datadir}/X11/locale/iso8859-2 |
165 | %{_datadir}/X11/locale/iso8859-3 | |
166 | %{_datadir}/X11/locale/iso8859-4 | |
167 | %{_datadir}/X11/locale/iso8859-5 | |
168 | %{_datadir}/X11/locale/iso8859-6 | |
169 | %{_datadir}/X11/locale/iso8859-7 | |
170 | %{_datadir}/X11/locale/iso8859-8 | |
171 | %{_datadir}/X11/locale/iso8859-9 | |
172 | %{_datadir}/X11/locale/iso8859-9e | |
173 | %{_datadir}/X11/locale/koi8-c | |
174 | %{_datadir}/X11/locale/koi8-r | |
efde2565 | 175 | %{_datadir}/X11/locale/koi8-t |
05ab38ad ER |
176 | %{_datadir}/X11/locale/koi8-u |
177 | %{_datadir}/X11/locale/microsoft-cp1251 | |
178 | %{_datadir}/X11/locale/microsoft-cp1255 | |
179 | %{_datadir}/X11/locale/microsoft-cp1256 | |
180 | %{_datadir}/X11/locale/mulelao-1 | |
181 | %{_datadir}/X11/locale/nokhchi-1 | |
182 | %{_datadir}/X11/locale/tatar-cyr | |
183 | %{_datadir}/X11/locale/tscii-0 | |
184 | ||
185 | %lang(am) %{_datadir}/X11/locale/am_ET.UTF-8 | |
186 | %lang(el) %{_datadir}/X11/locale/el_GR.UTF-8 | |
187 | %lang(fi) %{_datadir}/X11/locale/fi_FI.UTF-8 | |
188 | %lang(ja) %{_datadir}/X11/locale/ja | |
189 | %lang(ja) %{_datadir}/X11/locale/ja.JIS | |
190 | %lang(ja) %{_datadir}/X11/locale/ja.S90 | |
191 | %lang(ja) %{_datadir}/X11/locale/ja.SJIS | |
192 | %lang(ja) %{_datadir}/X11/locale/ja.U90 | |
193 | %lang(ja) %{_datadir}/X11/locale/ja_JP.UTF-8 | |
194 | %lang(ko) %{_datadir}/X11/locale/ko | |
195 | %lang(ko) %{_datadir}/X11/locale/ko_KR.UTF-8 | |
196 | %lang(pt_BR) %{_datadir}/X11/locale/pt_BR.UTF-8 | |
197 | %lang(ru) %{_datadir}/X11/locale/ru_RU.UTF-8 | |
198 | %lang(th) %{_datadir}/X11/locale/th_TH | |
199 | %lang(th) %{_datadir}/X11/locale/th_TH.UTF-8 | |
200 | %lang(vi) %{_datadir}/X11/locale/vi_VN.tcvn | |
201 | %lang(vi) %{_datadir}/X11/locale/vi_VN.viscii | |
202 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN | |
203 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.UTF-8 | |
204 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gb18030 | |
205 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gbk | |
206 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.UTF-8 | |
207 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5 | |
208 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5hkscs | |
209 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW | |
210 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW.UTF-8 | |
211 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW.big5 | |
fb0e5d86 | 212 | |
fb0e5d86 AM |
213 | %files devel |
214 | %defattr(644,root,root,755) | |
7498b4a3 | 215 | %attr(755,root,root) %{_libdir}/libX11.so |
fb0e5d86 | 216 | %{_libdir}/libX11.la |
eb10d989 JB |
217 | %{_includedir}/X11/ImUtil.h |
218 | %{_includedir}/X11/X*.h | |
219 | %{_includedir}/X11/cursorfont.h | |
fb0e5d86 | 220 | %{_pkgconfigdir}/x11.pc |
ac99ec55 JB |
221 | %if %{with xcb} |
222 | %attr(755,root,root) %{_libdir}/libX11-xcb.so | |
223 | %{_libdir}/libX11-xcb.la | |
eb10d989 | 224 | #%{_includedir}/X11/Xlib-xcb.h (already included in X*.h above) |
ac99ec55 JB |
225 | %{_pkgconfigdir}/x11-xcb.pc |
226 | %endif | |
17adbfba | 227 | %{_mandir}/man3/*.3x* |
fb0e5d86 | 228 | |
61e6236a | 229 | %if %{with static_libs} |
fb0e5d86 AM |
230 | %files static |
231 | %defattr(644,root,root,755) | |
232 | %{_libdir}/libX11.a | |
ac99ec55 JB |
233 | %if %{with xcb} |
234 | %{_libdir}/libX11-xcb.a | |
235 | %endif | |
61e6236a | 236 | %endif |