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