]> git.pld-linux.org Git - packages/xorg-lib-libX11.git/blob - xorg-lib-libX11.spec
- up to 1.1.99.2 with back-off xcb mechanism
[packages/xorg-lib-libX11.git] / xorg-lib-libX11.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 %bcond_without  xcb             # XCB for low-level protocol implementation
5 #
6 Summary:        X11 Base library
7 Summary(pl.UTF-8):      Podstawowa biblioteka X11
8 Name:           xorg-lib-libX11
9 Version:        1.1.99.2
10 Release:        1
11 License:        MIT
12 Group:          X11/Libraries
13 Source0:        http://xorg.freedesktop.org/releases/individual/lib/libX11-%{version}.tar.bz2
14 # Source0-md5:  2450f861d39939e46f8a4ced1abc3504
15 Patch0:         %{name}-glibc-locale_sync.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.1.92}
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.1.92}
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
88 %build
89 %{__libtoolize}
90 %{__aclocal}
91 %{__autoconf}
92 %{__autoheader}
93 %{__automake}
94 %configure \
95         %{!?with_static_libs:--disable-static} \
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 %attr(755,root,root) %ghost %{_libdir}/libX11.so.6
118 %if %{with xcb}
119 %attr(755,root,root) %{_libdir}/libX11-xcb.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libX11-xcb.so.1
121 %endif
122 %dir %{_libdir}/X11
123 %{_libdir}/X11/Xcms.txt
124 %dir %{_datadir}/X11
125 %{_datadir}/X11/XErrorDB
126 %{_datadir}/X11/XKeysymDB
127 %{_datadir}/X11/locale
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libX11.so
132 %{_libdir}/libX11.la
133 %{_includedir}/X11/*.h
134 %{_pkgconfigdir}/x11.pc
135 %if %{with xcb}
136 %attr(755,root,root) %{_libdir}/libX11-xcb.so
137 %{_libdir}/libX11-xcb.la
138 #%{_includedir}/X11/Xlib-xcb.h (already included in *.h above)
139 %{_pkgconfigdir}/x11-xcb.pc
140 %endif
141 %{_mandir}/man3/*.3x*
142
143 %if %{with static_libs}
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/libX11.a
147 %if %{with xcb}
148 %{_libdir}/libX11-xcb.a
149 %endif
150 %endif
This page took 0.23072 seconds and 4 git commands to generate.