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