]>
Commit | Line | Data |
---|---|---|
ac99ec55 JB |
1 | # |
2 | # Conditional build: | |
fdc01b39 | 3 | %bcond_without xcb # XCB for low-level protocol implementation |
ac99ec55 | 4 | # |
fb0e5d86 | 5 | Summary: X11 Base library |
6bfcf4a9 | 6 | Summary(pl.UTF-8): Podstawowa biblioteka X11 |
fb0e5d86 | 7 | Name: xorg-lib-libX11 |
32ad2abc | 8 | Version: 1.1.1 |
70ef7e58 | 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 |
32ad2abc | 13 | # Source0-md5: 848b80f77b20ae1fa5c882bbfa531ebc |
e526b8f8 | 14 | Patch0: %{name}-glibc-locale_sync.patch |
fb0e5d86 | 15 | URL: http://xorg.freedesktop.org/ |
da8a9538 | 16 | BuildRequires: autoconf >= 2.57 |
fb0e5d86 | 17 | BuildRequires: automake |
4655174b | 18 | BuildRequires: cpp |
7498b4a3 | 19 | BuildRequires: libtool |
fdc01b39 | 20 | %{?with_xcb:BuildRequires: libxcb-devel >= 1.0} |
359a44e2 | 21 | BuildRequires: pkgconfig >= 1:0.19 |
fb0e5d86 AM |
22 | BuildRequires: xorg-proto-bigreqsproto-devel |
23 | BuildRequires: xorg-proto-inputproto-devel | |
24 | BuildRequires: xorg-proto-kbproto-devel | |
fb0e5d86 AM |
25 | BuildRequires: xorg-proto-xcmiscproto-devel |
26 | BuildRequires: xorg-proto-xextproto-devel | |
27 | BuildRequires: xorg-proto-xf86bigfontproto-devel | |
0d382d8c | 28 | BuildRequires: xorg-proto-xproto-devel >= 7.0.6 |
7498b4a3 JB |
29 | BuildRequires: xorg-lib-libXdmcp-devel |
30 | BuildRequires: xorg-lib-libXau-devel | |
fb0e5d86 | 31 | BuildRequires: xorg-lib-xtrans-devel |
ac99ec55 | 32 | BuildRequires: xorg-util-util-macros >= 1.1.0 |
ab86e80a | 33 | Obsoletes: libX11 |
7498b4a3 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
fb0e5d86 | 35 | |
fb0e5d86 AM |
36 | %description |
37 | X11 Base library. | |
38 | ||
6bfcf4a9 | 39 | %description -l pl.UTF-8 |
fb0e5d86 AM |
40 | Podstawowa biblioteka X11. |
41 | ||
fb0e5d86 | 42 | %package devel |
32ec9b81 | 43 | Summary: Header files for libX11 library |
6bfcf4a9 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libX11 |
fb0e5d86 | 45 | Group: X11/Development/Libraries |
7498b4a3 | 46 | Requires: %{name} = %{version}-%{release} |
613acb44 | 47 | %{?with_xcb:Requires: libxcb-devel >= 1.0} |
fb0e5d86 AM |
48 | Requires: xorg-lib-libXau-devel |
49 | Requires: xorg-lib-libXdmcp-devel | |
7498b4a3 | 50 | Requires: xorg-proto-kbproto-devel |
0d382d8c | 51 | Requires: xorg-proto-xproto-devel >= 7.0.6 |
ab86e80a | 52 | Obsoletes: libX11-devel |
fb0e5d86 AM |
53 | |
54 | %description devel | |
55 | X11 Base library. | |
56 | ||
57 | This package contains the header files needed to develop programs that | |
32ec9b81 | 58 | use libX11. |
fb0e5d86 | 59 | |
6bfcf4a9 | 60 | %description devel -l pl.UTF-8 |
fb0e5d86 AM |
61 | Podstawowa biblioteka X11. |
62 | ||
6bfcf4a9 JR |
63 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
64 | używających biblioteki libX11. | |
fb0e5d86 | 65 | |
fb0e5d86 | 66 | %package static |
7498b4a3 | 67 | Summary: Static libX11 library |
6bfcf4a9 | 68 | Summary(pl.UTF-8): Biblioteka statyczna libX11 |
7498b4a3 JB |
69 | Group: X11/Development/Libraries |
70 | Requires: %{name}-devel = %{version}-%{release} | |
ab86e80a | 71 | Obsoletes: libX11-static |
fb0e5d86 AM |
72 | |
73 | %description static | |
74 | X11 Base library. | |
75 | ||
76 | This package contains the static libX11 library. | |
77 | ||
6bfcf4a9 | 78 | %description static -l pl.UTF-8 |
fb0e5d86 AM |
79 | Podstawowa biblioteka X11. |
80 | ||
6bfcf4a9 | 81 | Pakiet zawiera statyczną bibliotekę libX11. |
fb0e5d86 | 82 | |
fb0e5d86 AM |
83 | %prep |
84 | %setup -q -n libX11-%{version} | |
e526b8f8 | 85 | %patch0 -p1 |
fb0e5d86 | 86 | |
fb0e5d86 AM |
87 | %build |
88 | %{__libtoolize} | |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
ac99ec55 JB |
93 | %configure \ |
94 | %{!?with_xcb:--without-xcb} | |
fb0e5d86 AM |
95 | |
96 | %{__make} | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT \ | |
103 | pkgconfigdir=%{_pkgconfigdir} | |
b3df5726 | 104 | |
fb0e5d86 AM |
105 | %clean |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
fb0e5d86 AM |
111 | %files |
112 | %defattr(644,root,root,755) | |
da8a9538 | 113 | %doc AUTHORS COPYING ChangeLog README |
7498b4a3 | 114 | %attr(755,root,root) %{_libdir}/libX11.so.*.*.* |
ac99ec55 JB |
115 | %if %{with xcb} |
116 | %attr(755,root,root) %{_libdir}/libX11-xcb.so.*.*.* | |
117 | %endif | |
da8a9538 JB |
118 | %dir %{_libdir}/X11 |
119 | %{_libdir}/X11/Xcms.txt | |
0d382d8c JB |
120 | %dir %{_datadir}/X11 |
121 | %{_datadir}/X11/XErrorDB | |
122 | %{_datadir}/X11/XKeysymDB | |
123 | %{_datadir}/X11/locale | |
fb0e5d86 | 124 | |
fb0e5d86 AM |
125 | %files devel |
126 | %defattr(644,root,root,755) | |
7498b4a3 | 127 | %attr(755,root,root) %{_libdir}/libX11.so |
fb0e5d86 | 128 | %{_libdir}/libX11.la |
7498b4a3 | 129 | %{_includedir}/X11/*.h |
fb0e5d86 | 130 | %{_pkgconfigdir}/x11.pc |
ac99ec55 JB |
131 | %if %{with xcb} |
132 | %attr(755,root,root) %{_libdir}/libX11-xcb.so | |
133 | %{_libdir}/libX11-xcb.la | |
134 | #%{_includedir}/X11/Xlib-xcb.h (already included in *.h above) | |
135 | %{_pkgconfigdir}/x11-xcb.pc | |
136 | %endif | |
17adbfba | 137 | %{_mandir}/man3/*.3x* |
fb0e5d86 | 138 | |
fb0e5d86 AM |
139 | %files static |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/libX11.a | |
ac99ec55 JB |
142 | %if %{with xcb} |
143 | %{_libdir}/libX11-xcb.a | |
144 | %endif |