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