]>
Commit | Line | Data |
---|---|---|
ac99ec55 JB |
1 | # |
2 | # Conditional build: | |
61e6236a | 3 | %bcond_without static_libs # don't build static library |
7488d398 | 4 | |
eb10d989 JB |
5 | Summary: Core X11 protocol client library |
6 | Summary(pl.UTF-8): Podstawowa biblioteka kliencka protokołu X11 | |
fb0e5d86 | 7 | Name: xorg-lib-libX11 |
98eb6345 | 8 | Version: 1.7.1 |
95a6db5a | 9 | Release: 1 |
fb0e5d86 AM |
10 | License: MIT |
11 | Group: X11/Libraries | |
95a6db5a | 12 | Source0: https://xorg.freedesktop.org/releases/individual/lib/libX11-%{version}.tar.bz2 |
98eb6345 | 13 | # Source0-md5: 4795a742b3127c1358ce759f76ab5318 |
efde2565 | 14 | # sync locales and their encodings with glibc |
e526b8f8 | 15 | Patch0: %{name}-glibc-locale_sync.patch |
95a6db5a | 16 | URL: https://xorg.freedesktop.org/ |
eb10d989 | 17 | BuildRequires: autoconf >= 2.60 |
fb0e5d86 | 18 | BuildRequires: automake |
4655174b | 19 | BuildRequires: cpp |
fc1b336b | 20 | BuildRequires: docbook-dtd43-xml |
7498b4a3 | 21 | BuildRequires: libtool |
95a6db5a | 22 | BuildRequires: libxcb-devel >= 1.11.1 |
fc1b336b | 23 | BuildRequires: perl-Encode |
359a44e2 | 24 | BuildRequires: pkgconfig >= 1:0.19 |
c37bbabe | 25 | BuildRequires: sed >= 4.0 |
1d54b6be | 26 | BuildRequires: xmlto >= 0.0.22 |
30e2f483 | 27 | BuildRequires: xorg-lib-xtrans-devel |
fb0e5d86 AM |
28 | BuildRequires: xorg-proto-inputproto-devel |
29 | BuildRequires: xorg-proto-kbproto-devel | |
fb0e5d86 | 30 | BuildRequires: xorg-proto-xextproto-devel |
9b36617b | 31 | BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0 |
9c5ac771 | 32 | BuildRequires: xorg-proto-xproto-devel >= 7.0.25 |
b4106686 | 33 | BuildRequires: xorg-sgml-doctools >= 1.10 |
88139e16 | 34 | BuildRequires: xorg-util-util-macros >= 1.15 |
7488d398 | 35 | Requires: %{name}-data = %{version}-%{release} |
95a6db5a | 36 | Requires: libxcb >= 1.11.1 |
aa01d4b4 | 37 | Obsoletes: libX11 |
7498b4a3 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb0e5d86 | 39 | |
fb0e5d86 | 40 | %description |
eb10d989 | 41 | Core X11 protocol client library. |
fb0e5d86 | 42 | |
6bfcf4a9 | 43 | %description -l pl.UTF-8 |
eb10d989 | 44 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 45 | |
7488d398 ER |
46 | %package data |
47 | Summary: Data files for libX11 library | |
417d2f16 JB |
48 | Summary(pl.UTF-8): Pliki danych biblioteki libX11 |
49 | Group: X11/Libraries | |
7488d398 | 50 | Conflicts: xorg-lib-libX11 < 1.6.3-2 |
7488d398 | 51 | BuildArch: noarch |
7488d398 ER |
52 | |
53 | %description data | |
54 | Data files for libX11 library. | |
55 | ||
417d2f16 JB |
56 | %description data -l pl.UTF-8 |
57 | Pliki danych biblioteki libX11. | |
58 | ||
fb0e5d86 | 59 | %package devel |
32ec9b81 | 60 | Summary: Header files for libX11 library |
8522c985 | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libX11 |
fb0e5d86 | 62 | Group: X11/Development/Libraries |
7498b4a3 | 63 | Requires: %{name} = %{version}-%{release} |
95a6db5a | 64 | Requires: libxcb-devel >= 1.11.1 |
83fd1fff JB |
65 | # after <X11/extensions/XKBgeom.h> removal |
66 | Requires: xorg-proto-kbproto-devel >= 1.0.7-2019.1.3 | |
9c5ac771 | 67 | Requires: xorg-proto-xproto-devel >= 7.0.25 |
ab86e80a | 68 | Obsoletes: libX11-devel |
fb0e5d86 AM |
69 | |
70 | %description devel | |
eb10d989 | 71 | Core X11 protocol client library. |
fb0e5d86 AM |
72 | |
73 | This package contains the header files needed to develop programs that | |
32ec9b81 | 74 | use libX11. |
fb0e5d86 | 75 | |
6bfcf4a9 | 76 | %description devel -l pl.UTF-8 |
eb10d989 | 77 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 78 | |
6bfcf4a9 JR |
79 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
80 | używających biblioteki libX11. | |
fb0e5d86 | 81 | |
fb0e5d86 | 82 | %package static |
7498b4a3 | 83 | Summary: Static libX11 library |
8522c985 | 84 | Summary(pl.UTF-8): Biblioteka statyczna libX11 |
7498b4a3 JB |
85 | Group: X11/Development/Libraries |
86 | Requires: %{name}-devel = %{version}-%{release} | |
ab86e80a | 87 | Obsoletes: libX11-static |
fb0e5d86 AM |
88 | |
89 | %description static | |
eb10d989 | 90 | Core X11 protocol client library. |
fb0e5d86 AM |
91 | |
92 | This package contains the static libX11 library. | |
93 | ||
6bfcf4a9 | 94 | %description static -l pl.UTF-8 |
eb10d989 | 95 | Podstawowa biblioteka kliencka protokołu X11. |
fb0e5d86 | 96 | |
6bfcf4a9 | 97 | Pakiet zawiera statyczną bibliotekę libX11. |
fb0e5d86 | 98 | |
fb0e5d86 AM |
99 | %prep |
100 | %setup -q -n libX11-%{version} | |
df0b8fa6 AM |
101 | # do we need this patch for anything? (aka is any pld user in need for these new locales) |
102 | # https://bugs.freedesktop.org/show_bug.cgi?id=7415 | |
d3404380 | 103 | %patch0 -p1 |
fb0e5d86 | 104 | |
c37bbabe JB |
105 | # support __libmansuffix__ and __filemansuffix__ with "x" suffix (per FHS 2.3) |
106 | %{__sed} -i -e 's,\.so man__libmansuffix__/,.so man3/,' \ | |
107 | -e 's,\.so man__filemansuffix__/,.so man5/,' man/*.man | |
108 | ||
fb0e5d86 AM |
109 | %build |
110 | %{__libtoolize} | |
0cb7271b | 111 | %{__aclocal} -I m4 |
fb0e5d86 AM |
112 | %{__autoconf} |
113 | %{__autoheader} | |
114 | %{__automake} | |
ac99ec55 | 115 | %configure \ |
d0bc1695 | 116 | %{!?with_static_libs:--disable-static} |
fb0e5d86 AM |
117 | |
118 | %{__make} | |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
fb0e5d86 | 122 | %{__make} install \ |
829e5fdb | 123 | INSTALL="install -p" \ |
34787d1c | 124 | DESTDIR=$RPM_BUILD_ROOT |
30e2f483 | 125 | |
1a976cd3 JB |
126 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libX11 |
127 | ||
d0bc1695 AM |
128 | cd specs |
129 | for dir in XIM i18n/framework i18n/localedb i18n/trans libX11; do | |
130 | install -d rpm-doc/$dir | |
131 | cp -a $dir/*.html rpm-doc/$dir | |
132 | cp -a $dir/*.svg rpm-doc/$dir || : | |
133 | sed -i -e "s#$RPM_BUILD_ROOT##g" rpm-doc/$dir/*.html | |
134 | done | |
d0bc1695 | 135 | |
df0b8fa6 AM |
136 | # for xorg-app-x11perf and possibly others |
137 | install -d $RPM_BUILD_ROOT%{_libdir}/X11 | |
138 | ||
fb0e5d86 AM |
139 | %clean |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
aa01d4b4 AM |
142 | %post -p /sbin/ldconfig |
143 | %postun -p /sbin/ldconfig | |
fb0e5d86 | 144 | |
aa01d4b4 | 145 | %pretrans |
30e2f483 | 146 | # this needs to be a dir |
9a3a34ef | 147 | if [ -L %{_libdir}/X11 ]; then |
30e2f483 ER |
148 | umask 022 |
149 | mv -f %{_libdir}/X11{,.rpmsave} | |
150 | mkdir %{_libdir}/X11 | |
151 | fi | |
152 | ||
fb0e5d86 AM |
153 | %files |
154 | %defattr(644,root,root,755) | |
aa01d4b4 AM |
155 | %attr(755,root,root) %{_libdir}/libX11.so.*.*.* |
156 | %attr(755,root,root) %ghost %{_libdir}/libX11.so.6 | |
aa01d4b4 AM |
157 | %attr(755,root,root) %{_libdir}/libX11-xcb.so.*.*.* |
158 | %attr(755,root,root) %ghost %{_libdir}/libX11-xcb.so.1 | |
aa01d4b4 | 159 | %dir %{_libdir}/X11 |
7488d398 ER |
160 | |
161 | %files data | |
162 | %defattr(644,root,root,755) | |
76854080 | 163 | %doc AUTHORS COPYING ChangeLog README.md |
0d382d8c JB |
164 | %dir %{_datadir}/X11 |
165 | %{_datadir}/X11/XErrorDB | |
df0b8fa6 | 166 | %{_datadir}/X11/Xcms.txt |
05ab38ad ER |
167 | %dir %{_datadir}/X11/locale |
168 | %{_datadir}/X11/locale/compose.dir | |
169 | %{_datadir}/X11/locale/locale.alias | |
170 | %{_datadir}/X11/locale/locale.dir | |
171 | %{_datadir}/X11/locale/C | |
172 | %{_datadir}/X11/locale/en_US.UTF-8 | |
173 | ||
174 | # encodings, not really lang taggable | |
175 | %{_datadir}/X11/locale/armscii-8 | |
176 | %{_datadir}/X11/locale/georgian-academy | |
177 | %{_datadir}/X11/locale/georgian-ps | |
178 | %{_datadir}/X11/locale/ibm-cp1133 | |
179 | %{_datadir}/X11/locale/iscii-dev | |
180 | %{_datadir}/X11/locale/isiri-3342 | |
181 | %{_datadir}/X11/locale/iso8859-1 | |
182 | %{_datadir}/X11/locale/iso8859-10 | |
183 | %{_datadir}/X11/locale/iso8859-11 | |
184 | %{_datadir}/X11/locale/iso8859-13 | |
185 | %{_datadir}/X11/locale/iso8859-14 | |
186 | %{_datadir}/X11/locale/iso8859-15 | |
c37bbabe | 187 | %{_datadir}/X11/locale/iso8859-16 |
05ab38ad ER |
188 | %{_datadir}/X11/locale/iso8859-2 |
189 | %{_datadir}/X11/locale/iso8859-3 | |
190 | %{_datadir}/X11/locale/iso8859-4 | |
191 | %{_datadir}/X11/locale/iso8859-5 | |
192 | %{_datadir}/X11/locale/iso8859-6 | |
193 | %{_datadir}/X11/locale/iso8859-7 | |
194 | %{_datadir}/X11/locale/iso8859-8 | |
195 | %{_datadir}/X11/locale/iso8859-9 | |
196 | %{_datadir}/X11/locale/iso8859-9e | |
197 | %{_datadir}/X11/locale/koi8-c | |
198 | %{_datadir}/X11/locale/koi8-r | |
c37bbabe | 199 | %{_datadir}/X11/locale/koi8-t |
05ab38ad ER |
200 | %{_datadir}/X11/locale/koi8-u |
201 | %{_datadir}/X11/locale/microsoft-cp1251 | |
202 | %{_datadir}/X11/locale/microsoft-cp1255 | |
203 | %{_datadir}/X11/locale/microsoft-cp1256 | |
204 | %{_datadir}/X11/locale/mulelao-1 | |
205 | %{_datadir}/X11/locale/nokhchi-1 | |
206 | %{_datadir}/X11/locale/tatar-cyr | |
207 | %{_datadir}/X11/locale/tscii-0 | |
208 | ||
209 | %lang(am) %{_datadir}/X11/locale/am_ET.UTF-8 | |
b11969e8 | 210 | %lang(cs) %{_datadir}/X11/locale/cs_CZ.UTF-8 |
05ab38ad ER |
211 | %lang(el) %{_datadir}/X11/locale/el_GR.UTF-8 |
212 | %lang(fi) %{_datadir}/X11/locale/fi_FI.UTF-8 | |
213 | %lang(ja) %{_datadir}/X11/locale/ja | |
214 | %lang(ja) %{_datadir}/X11/locale/ja.JIS | |
05ab38ad | 215 | %lang(ja) %{_datadir}/X11/locale/ja.SJIS |
05ab38ad | 216 | %lang(ja) %{_datadir}/X11/locale/ja_JP.UTF-8 |
a5f0a5f6 | 217 | %lang(km) %{_datadir}/X11/locale/km_KH.UTF-8 |
05ab38ad ER |
218 | %lang(ko) %{_datadir}/X11/locale/ko |
219 | %lang(ko) %{_datadir}/X11/locale/ko_KR.UTF-8 | |
220 | %lang(pt_BR) %{_datadir}/X11/locale/pt_BR.UTF-8 | |
95a6db5a | 221 | %lang(pt) %{_datadir}/X11/locale/pt_PT.UTF-8 |
05ab38ad | 222 | %lang(ru) %{_datadir}/X11/locale/ru_RU.UTF-8 |
9c5ac771 | 223 | %lang(sr) %{_datadir}/X11/locale/sr_RS.UTF-8 |
05ab38ad ER |
224 | %lang(th) %{_datadir}/X11/locale/th_TH |
225 | %lang(th) %{_datadir}/X11/locale/th_TH.UTF-8 | |
226 | %lang(vi) %{_datadir}/X11/locale/vi_VN.tcvn | |
227 | %lang(vi) %{_datadir}/X11/locale/vi_VN.viscii | |
228 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN | |
229 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.UTF-8 | |
230 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gb18030 | |
231 | %lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gbk | |
232 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.UTF-8 | |
233 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5 | |
234 | %lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5hkscs | |
235 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW | |
236 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW.UTF-8 | |
237 | %lang(zh_TW) %{_datadir}/X11/locale/zh_TW.big5 | |
95a6db5a JB |
238 | %{_mandir}/man5/Compose.5* |
239 | %{_mandir}/man5/XCompose.5* | |
fb0e5d86 | 240 | |
fb0e5d86 AM |
241 | %files devel |
242 | %defattr(644,root,root,755) | |
34787d1c | 243 | %doc specs/rpm-doc/* |
7498b4a3 | 244 | %attr(755,root,root) %{_libdir}/libX11.so |
34787d1c | 245 | %attr(755,root,root) %{_libdir}/libX11-xcb.so |
fb0e5d86 | 246 | %{_libdir}/libX11.la |
34787d1c | 247 | %{_libdir}/libX11-xcb.la |
eb10d989 | 248 | %{_includedir}/X11/ImUtil.h |
95a6db5a JB |
249 | %{_includedir}/X11/XKBlib.h |
250 | %{_includedir}/X11/Xcms.h | |
251 | %{_includedir}/X11/Xlib.h | |
252 | %{_includedir}/X11/Xlib-xcb.h | |
253 | %{_includedir}/X11/XlibConf.h | |
254 | %{_includedir}/X11/Xlibint.h | |
255 | %{_includedir}/X11/Xlocale.h | |
256 | %{_includedir}/X11/Xregion.h | |
257 | %{_includedir}/X11/Xresource.h | |
258 | %{_includedir}/X11/Xutil.h | |
eb10d989 | 259 | %{_includedir}/X11/cursorfont.h |
83fd1fff | 260 | %{_includedir}/X11/extensions/XKBgeom.h |
fb0e5d86 | 261 | %{_pkgconfigdir}/x11.pc |
ac99ec55 | 262 | %{_pkgconfigdir}/x11-xcb.pc |
95a6db5a JB |
263 | %{_mandir}/man3/AllPlanes.3* |
264 | %{_mandir}/man3/Bitmap*.3* | |
265 | %{_mandir}/man3/BlackPixel*.3* | |
266 | %{_mandir}/man3/CellsOfScreen.3* | |
267 | %{_mandir}/man3/ClientWhitePointOfCCC.3* | |
268 | %{_mandir}/man3/ConnectionNumber.3* | |
269 | %{_mandir}/man3/Default*.3* | |
270 | %{_mandir}/man3/Display*.3* | |
271 | %{_mandir}/man3/DoesBackingStore.3* | |
272 | %{_mandir}/man3/DoesSaveUnders.3* | |
273 | %{_mandir}/man3/EventMaskOfScreen.3* | |
274 | %{_mandir}/man3/HeightMMOfScreen.3* | |
275 | %{_mandir}/man3/HeightOfScreen.3* | |
276 | %{_mandir}/man3/ImageByteOrder.3* | |
277 | %{_mandir}/man3/Is*Key.3* | |
278 | %{_mandir}/man3/LastKnownRequestProcessed.3* | |
279 | %{_mandir}/man3/MaxCmapsOfScreen.3* | |
280 | %{_mandir}/man3/MinCmapsOfScreen.3* | |
281 | %{_mandir}/man3/NextRequest.3* | |
282 | %{_mandir}/man3/PlanesOfScreen.3* | |
283 | %{_mandir}/man3/ProtocolRevision.3* | |
284 | %{_mandir}/man3/ProtocolVersion.3* | |
285 | %{_mandir}/man3/QLength.3* | |
286 | %{_mandir}/man3/RootWindow*.3* | |
287 | %{_mandir}/man3/Screen*.3* | |
288 | %{_mandir}/man3/ServerVendor.3* | |
289 | %{_mandir}/man3/VendorRelease.3* | |
290 | %{_mandir}/man3/VisualOfCCC.3* | |
291 | %{_mandir}/man3/WhitePixel*.3* | |
292 | %{_mandir}/man3/WidthMMOfScreen.3* | |
293 | %{_mandir}/man3/WidthOfScreen.3* | |
294 | %{_mandir}/man3/X*.3* | |
fb0e5d86 | 295 | |
61e6236a | 296 | %if %{with static_libs} |
fb0e5d86 AM |
297 | %files static |
298 | %defattr(644,root,root,755) | |
299 | %{_libdir}/libX11.a | |
ac99ec55 JB |
300 | %{_libdir}/libX11-xcb.a |
301 | %endif |