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