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