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