de0a46515374be70e1416410582995a5a0ee0e0f
[platform/upstream/libxkbcommon.git] / packaging / libxkbcommon.spec
1 Name:           libxkbcommon
2 Version:        0.3.0
3 Release:        0
4 License:        MIT
5 Summary:        Wayland libxkbcommon library
6 Url:            http://wayland.freedesktop.org/
7 Group:          Development/Libraries
8
9 #Git-Clone:     git://anongit.freedesktop.org/xorg/lib/libxkbcommon
10 #Git-Web:       http://cgit.freedesktop.org/xorg/lib/libxkbcommon/
11 Source:         %{name}-%{version}.tar.xz
12 BuildRequires:  autoconf >= 2.60
13 BuildRequires:  automake
14 BuildRequires:  bison
15 BuildRequires:  flex
16 BuildRequires:  libtool >= 2
17 BuildRequires:  pkgconfig
18 BuildRequires:  pkgconfig(kbproto) >= 1.0.4
19 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
20 BuildRequires:  pkgconfig(xproto)
21
22 %description
23 Keyboard handling library using XKB data.
24
25 %package devel
26 Summary:        Development files for the Wayland libxkbcommon library
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}
29
30 %description devel
31 Keyboard handling library using XKB data.
32
33 This package contains the development headers for the library found
34 in %{name}.
35
36 %prep
37 %setup -qn %{name}
38
39 %build
40 %autogen
41 %configure --disable-static
42 make %{?_smp_mflags} V=1;
43
44 %install
45 %make_install
46
47 %post  -p /sbin/ldconfig
48
49 %postun  -p /sbin/ldconfig
50
51 %files
52 %defattr(-,root,root)
53 %license COPYING
54 %{_libdir}/libxkbcommon.so.0*
55
56 %files devel
57 %defattr(-,root,root)
58 %{_includedir}/xkbcommon
59 %{_libdir}/libxkbcommon.so
60 %{_libdir}/pkgconfig/xkbcommon.pc
61
62 %changelog