7ff8333204544b10eda69f4f40bd1458ad436255
[platform/upstream/libX11.git] / packaging / libX11.spec
1 Name:           libX11
2 Version:        1.5.0
3 Release:        0
4 License:        MIT
5 Summary:        Core X11 protocol client library
6 Url:            http://xorg.freedesktop.org/
7 Group:          Graphics/X Window System
8 Source:         %{name}-%{version}.tar.bz2
9 Source1001:     libX11.manifest
10 BuildRequires:  autoconf >= 2.60
11 BuildRequires:  automake
12 BuildRequires:  libtool
13 BuildRequires:  pkgconfig
14 BuildRequires:  pkgconfig(inputproto)
15 BuildRequires:  pkgconfig(kbproto)
16 BuildRequires:  pkgconfig(xcb) >= 1.1.92
17 BuildRequires:  pkgconfig(xextproto)
18 BuildRequires:  pkgconfig(xf86bigfontproto)
19 BuildRequires:  pkgconfig(xorg-macros) >= 1.11
20 BuildRequires:  pkgconfig(xproto)
21 BuildRequires:  pkgconfig(xproto) >= 7.0.13
22 BuildRequires:  pkgconfig(xtrans)
23 Requires:       %{name}-data >= %{version}
24
25 %description
26 The X Window System is a network-transparent window system that was
27 designed at MIT. X display servers run on computers with either
28 monochrome or color bitmap display hardware. The server distributes
29 user input to and accepts output requests from various client
30 programs located either on the same machine or elsewhere in the
31 network. Xlib is a C subroutine library that application programs
32 (clients) use to interface with the window system by means of a
33 stream connection.
34
35 %package xcb
36 Summary:        XCB X11 protocol client library
37 Group:          Graphics/X Window System
38 Requires:       %{name}-data >= %{version}
39
40 %description xcb
41 The X Window System is a network-transparent window system that was
42 designed at MIT. X display servers run on computers with either
43 monochrome or color bitmap display hardware. The server distributes
44 user input to and accepts output requests from various client
45 programs located either on the same machine or elsewhere in the
46 network. Xlib is a C subroutine library that application programs
47 (clients) use to interface with the window system by means of a
48 stream connection.
49
50 %package data
51 Summary:        Shared data for the Core X11 protocol library
52 Group:          Graphics/X Window System
53 BuildArch:      noarch
54
55 %description data
56 The X Window System is a network-transparent window system that was
57 designed at MIT. X display servers run on computers with either
58 monochrome or color bitmap display hardware. The server distributes
59 user input to and accepts output requests from various client
60 programs located either on the same machine or elsewhere in the
61 network. Xlib is a C subroutine library that application programs
62 (clients) use to interface with the window system by means of a
63 stream connection.
64
65 %package devel
66 Summary:        Development files for the Core X11 protocol library
67 Group:          Development/Libraries
68 Requires:       libX11 = %{version}
69 Requires:       libX11-xcb = %{version}
70
71 %description devel
72 The X Window System is a network-transparent window system that was
73 designed at MIT. X display servers run on computers with either
74 monochrome or color bitmap display hardware. The server distributes
75 user input to and accepts output requests from various client
76 programs located either on the same machine or elsewhere in the
77 network. Xlib is a C subroutine library that application programs
78 (clients) use to interface with the window system by means of a
79 stream connection.
80
81 This package contains the development headers for the library found
82 in libX11 and libX11-xcb.
83
84 %prep
85 %setup -q
86 cp %{SOURCE1001} .
87
88 %build
89 %reconfigure --docdir=%_docdir/%{name} --disable-static
90 make %{?_smp_mflags}
91
92 %install
93 %make_install
94
95
96 rm -rf %{buildroot}%{_libdir}/X11/Xcms.txt
97
98 %post   -p /sbin/ldconfig
99
100 %postun  -p /sbin/ldconfig
101
102 %post   xcb -p /sbin/ldconfig
103
104 %postun xcb -p /sbin/ldconfig
105
106 %docs_package
107
108 %files
109 %manifest %{name}.manifest
110 %license COPYING
111 %defattr(-,root,root)
112 %{_libdir}/libX11.so.6*
113
114 %files xcb
115 %manifest %{name}.manifest
116 %defattr(-,root,root)
117 %{_libdir}/libX11-xcb.so.1*
118
119 %files data
120 %manifest %{name}.manifest
121 %defattr(-,root,root)
122 %{_datadir}/X11
123
124 %files devel
125 %manifest %{name}.manifest
126 %defattr(-,root,root)
127 %{_includedir}/X11/*
128 %{_libdir}/*.so
129 %{_libdir}/pkgconfig/*.pc
130 %_docdir/%{name}
131
132 %changelog