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