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