94c3c6e62c6544ae26668fd2bd2ca7ae18ea0078
[platform/upstream/xcb-util.git] / packaging / xcb-util.spec
1 Name:           xcb-util
2 Version:        0.3.9
3 Release:        0
4 License:        MIT
5 Summary:        Utility libraries for X C Binding
6 Url:            http://xcb.freedesktop.org/
7 Group:          System/Libraries
8 Source:         %{name}-%{version}.tar.bz2
9
10 BuildRequires:  gperf
11 BuildRequires:  libxcb-devel >= 1.4
12 BuildRequires:  m4
13 BuildRequires:  pkgconfig(xorg-macros)
14 BuildRequires:  pkgconfig(xproto)
15
16 %description
17 The xcb-util module provides a number of libraries which sit on top of
18 libxcb, the core X protocol library, and some of the extension
19 libraries. These experimental libraries provide convenience functions
20 and interfaces which make the raw X protocol more usable. Some of the
21 libraries also provide client-side code which is not strictly part of
22 the X protocol but which have traditionally been provided by Xlib.
23
24 %package -n libxcb-util
25 Summary:        XCB utility modules
26 Group:          System/Libraries
27
28 %description -n libxcb-util
29 The XCB util modules provide a number of libraries which sit on top
30 of libxcb, the core X protocol library, and some of the extension
31 libraries. These experimental libraries provide convenience functions
32 and interfaces which make the raw X protocol more usable. Some of the
33 libraries also provide client-side code which is not strictly part of
34 the X protocol but which have traditionally been provided by Xlib.
35
36 Included in this package are:
37
38 - atom: Standard core X atom constants and atom caching.
39 - aux: Convenient access to connection setup and some core requests.
40 - event: Callback X event handling.
41
42 %package        devel
43 Summary:        Development and header files for xcb-util
44 Group:          System Environment/Libraries
45 Requires:       %{name} = %{version}
46 Requires:       pkgconfig
47
48 %description    devel
49 Development files for xcb-util.
50
51 %prep
52 %setup -q
53
54 %build
55 %configure --disable-static
56
57 make %{?_smp_mflags}
58
59 %install
60 %make_install
61
62 %remove_docs
63
64 %post -n libxcb-util -p /sbin/ldconfig
65
66 %postun -n libxcb-util -p /sbin/ldconfig
67
68
69 %files -n libxcb-util
70 %defattr(-,root,root,-)
71 %{_libdir}/libxcb-util.so.*
72
73 %files devel
74 %defattr(-,root,root,-)
75 %{_libdir}/pkgconfig/*.pc
76 %{_libdir}/*.so
77 %{_includedir}/xcb/*.h