]> git.pld-linux.org Git - packages/xorg-lib-libX11.git/blame - xorg-lib-libX11.spec
- some sr_* updates in glibc-locale-sync patch
[packages/xorg-lib-libX11.git] / xorg-lib-libX11.spec
CommitLineData
ac99ec55
JB
1#
2# Conditional build:
61e6236a 3%bcond_without static_libs # don't build static library
ac99ec55 4#
eb10d989
JB
5Summary: Core X11 protocol client library
6Summary(pl.UTF-8): Podstawowa biblioteka kliencka protokołu X11
fb0e5d86 7Name: xorg-lib-libX11
1371ebe4 8Version: 1.6.0
af6bb8c9 9Release: 1
fb0e5d86
AM
10License: MIT
11Group: X11/Libraries
4a571e62 12Source0: 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 15Patch0: %{name}-glibc-locale_sync.patch
fb0e5d86 16URL: http://xorg.freedesktop.org/
eb10d989 17BuildRequires: autoconf >= 2.60
fb0e5d86 18BuildRequires: automake
4655174b 19BuildRequires: cpp
7498b4a3 20BuildRequires: libtool
34787d1c 21BuildRequires: libxcb-devel >= 1.2
359a44e2 22BuildRequires: pkgconfig >= 1:0.19
c37bbabe 23BuildRequires: sed >= 4.0
1d54b6be 24BuildRequires: xmlto >= 0.0.22
30e2f483 25BuildRequires: xorg-lib-xtrans-devel
fb0e5d86
AM
26BuildRequires: xorg-proto-inputproto-devel
27BuildRequires: xorg-proto-kbproto-devel
fb0e5d86 28BuildRequires: xorg-proto-xextproto-devel
9b36617b 29BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
03691cc5 30BuildRequires: xorg-proto-xproto-devel >= 7.0.21
b4106686 31BuildRequires: xorg-sgml-doctools >= 1.10
88139e16 32BuildRequires: xorg-util-util-macros >= 1.15
d0bc1695 33Requires: libxcb >= 1.2
aa01d4b4 34Obsoletes: libX11
7498b4a3 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
fb0e5d86 36
fb0e5d86 37%description
eb10d989 38Core X11 protocol client library.
fb0e5d86 39
6bfcf4a9 40%description -l pl.UTF-8
eb10d989 41Podstawowa biblioteka kliencka protokołu X11.
fb0e5d86 42
fb0e5d86 43%package devel
32ec9b81 44Summary: Header files for libX11 library
8522c985 45Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libX11
fb0e5d86 46Group: X11/Development/Libraries
7498b4a3 47Requires: %{name} = %{version}-%{release}
7498b4a3 48Requires: xorg-proto-kbproto-devel
1d54b6be 49Requires: xorg-proto-xproto-devel >= 7.0.21
eb10d989 50Requires: libxcb-devel >= 1.2
ab86e80a 51Obsoletes: libX11-devel
fb0e5d86
AM
52
53%description devel
eb10d989 54Core X11 protocol client library.
fb0e5d86
AM
55
56This package contains the header files needed to develop programs that
32ec9b81 57use libX11.
fb0e5d86 58
6bfcf4a9 59%description devel -l pl.UTF-8
eb10d989 60Podstawowa biblioteka kliencka protokołu X11.
fb0e5d86 61
6bfcf4a9
JR
62Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
63używających biblioteki libX11.
fb0e5d86 64
fb0e5d86 65%package static
7498b4a3 66Summary: Static libX11 library
8522c985 67Summary(pl.UTF-8): Biblioteka statyczna libX11
7498b4a3
JB
68Group: X11/Development/Libraries
69Requires: %{name}-devel = %{version}-%{release}
ab86e80a 70Obsoletes: libX11-static
fb0e5d86
AM
71
72%description static
eb10d989 73Core X11 protocol client library.
fb0e5d86
AM
74
75This package contains the static libX11 library.
76
6bfcf4a9 77%description static -l pl.UTF-8
eb10d989 78Podstawowa biblioteka kliencka protokołu X11.
fb0e5d86 79
6bfcf4a9 80Pakiet 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
104rm -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
111cd specs
112for 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
117done
d0bc1695 118
df0b8fa6
AM
119# for xorg-app-x11perf and possibly others
120install -d $RPM_BUILD_ROOT%{_libdir}/X11
121
fb0e5d86
AM
122%clean
123rm -rf $RPM_BUILD_ROOT
124
aa01d4b4
AM
125%post -p /sbin/ldconfig
126%postun -p /sbin/ldconfig
fb0e5d86 127
aa01d4b4 128%pretrans
30e2f483 129# this needs to be a dir
9a3a34ef 130if [ -L %{_libdir}/X11 ]; then
30e2f483
ER
131 umask 022
132 mv -f %{_libdir}/X11{,.rpmsave}
133 mkdir %{_libdir}/X11
134fi
135
fb0e5d86
AM
136%files
137%defattr(644,root,root,755)
da8a9538 138%doc AUTHORS COPYING ChangeLog README
aa01d4b4
AM
139%attr(755,root,root) %{_libdir}/libX11.so.*.*.*
140%attr(755,root,root) %ghost %{_libdir}/libX11.so.6
aa01d4b4
AM
141%attr(755,root,root) %{_libdir}/libX11-xcb.so.*.*.*
142%attr(755,root,root) %ghost %{_libdir}/libX11-xcb.so.1
aa01d4b4 143%dir %{_libdir}/X11
0d382d8c
JB
144%dir %{_datadir}/X11
145%{_datadir}/X11/XErrorDB
df0b8fa6 146%{_datadir}/X11/Xcms.txt
05ab38ad
ER
147%dir %{_datadir}/X11/locale
148%{_datadir}/X11/locale/compose.dir
149%{_datadir}/X11/locale/locale.alias
150%{_datadir}/X11/locale/locale.dir
151%{_datadir}/X11/locale/C
152%{_datadir}/X11/locale/en_US.UTF-8
153
154# encodings, not really lang taggable
155%{_datadir}/X11/locale/armscii-8
156%{_datadir}/X11/locale/georgian-academy
157%{_datadir}/X11/locale/georgian-ps
158%{_datadir}/X11/locale/ibm-cp1133
159%{_datadir}/X11/locale/iscii-dev
160%{_datadir}/X11/locale/isiri-3342
161%{_datadir}/X11/locale/iso8859-1
162%{_datadir}/X11/locale/iso8859-10
163%{_datadir}/X11/locale/iso8859-11
164%{_datadir}/X11/locale/iso8859-13
165%{_datadir}/X11/locale/iso8859-14
166%{_datadir}/X11/locale/iso8859-15
c37bbabe 167%{_datadir}/X11/locale/iso8859-16
05ab38ad
ER
168%{_datadir}/X11/locale/iso8859-2
169%{_datadir}/X11/locale/iso8859-3
170%{_datadir}/X11/locale/iso8859-4
171%{_datadir}/X11/locale/iso8859-5
172%{_datadir}/X11/locale/iso8859-6
173%{_datadir}/X11/locale/iso8859-7
174%{_datadir}/X11/locale/iso8859-8
175%{_datadir}/X11/locale/iso8859-9
176%{_datadir}/X11/locale/iso8859-9e
177%{_datadir}/X11/locale/koi8-c
178%{_datadir}/X11/locale/koi8-r
c37bbabe 179%{_datadir}/X11/locale/koi8-t
05ab38ad
ER
180%{_datadir}/X11/locale/koi8-u
181%{_datadir}/X11/locale/microsoft-cp1251
182%{_datadir}/X11/locale/microsoft-cp1255
183%{_datadir}/X11/locale/microsoft-cp1256
184%{_datadir}/X11/locale/mulelao-1
185%{_datadir}/X11/locale/nokhchi-1
186%{_datadir}/X11/locale/tatar-cyr
187%{_datadir}/X11/locale/tscii-0
188
189%lang(am) %{_datadir}/X11/locale/am_ET.UTF-8
190%lang(el) %{_datadir}/X11/locale/el_GR.UTF-8
191%lang(fi) %{_datadir}/X11/locale/fi_FI.UTF-8
192%lang(ja) %{_datadir}/X11/locale/ja
193%lang(ja) %{_datadir}/X11/locale/ja.JIS
05ab38ad 194%lang(ja) %{_datadir}/X11/locale/ja.SJIS
05ab38ad
ER
195%lang(ja) %{_datadir}/X11/locale/ja_JP.UTF-8
196%lang(ko) %{_datadir}/X11/locale/ko
197%lang(ko) %{_datadir}/X11/locale/ko_KR.UTF-8
198%lang(pt_BR) %{_datadir}/X11/locale/pt_BR.UTF-8
199%lang(ru) %{_datadir}/X11/locale/ru_RU.UTF-8
200%lang(th) %{_datadir}/X11/locale/th_TH
201%lang(th) %{_datadir}/X11/locale/th_TH.UTF-8
202%lang(vi) %{_datadir}/X11/locale/vi_VN.tcvn
203%lang(vi) %{_datadir}/X11/locale/vi_VN.viscii
204%lang(zh_CN) %{_datadir}/X11/locale/zh_CN
205%lang(zh_CN) %{_datadir}/X11/locale/zh_CN.UTF-8
206%lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gb18030
207%lang(zh_CN) %{_datadir}/X11/locale/zh_CN.gbk
208%lang(zh_HK) %{_datadir}/X11/locale/zh_HK.UTF-8
209%lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5
210%lang(zh_HK) %{_datadir}/X11/locale/zh_HK.big5hkscs
211%lang(zh_TW) %{_datadir}/X11/locale/zh_TW
212%lang(zh_TW) %{_datadir}/X11/locale/zh_TW.UTF-8
213%lang(zh_TW) %{_datadir}/X11/locale/zh_TW.big5
df0b8fa6 214%{_mandir}/man5/*Compose.5*
fb0e5d86 215
fb0e5d86
AM
216%files devel
217%defattr(644,root,root,755)
34787d1c 218%doc specs/rpm-doc/*
7498b4a3 219%attr(755,root,root) %{_libdir}/libX11.so
34787d1c 220%attr(755,root,root) %{_libdir}/libX11-xcb.so
fb0e5d86 221%{_libdir}/libX11.la
34787d1c 222%{_libdir}/libX11-xcb.la
eb10d989
JB
223%{_includedir}/X11/ImUtil.h
224%{_includedir}/X11/X*.h
225%{_includedir}/X11/cursorfont.h
fb0e5d86 226%{_pkgconfigdir}/x11.pc
ac99ec55 227%{_pkgconfigdir}/x11-xcb.pc
df0b8fa6 228%{_mandir}/man3/*.3*
fb0e5d86 229
61e6236a 230%if %{with static_libs}
fb0e5d86
AM
231%files static
232%defattr(644,root,root,755)
233%{_libdir}/libX11.a
ac99ec55
JB
234%{_libdir}/libX11-xcb.a
235%endif
This page took 0.149079 seconds and 4 git commands to generate.