summaryrefslogtreecommitdiff
path: root/packaging/libxkbcommon.spec
blob: b99d8c0a3f56d34823b518804042944079883abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name:           libxkbcommon
Version:        0.4.3.1
Release:        0
License:        MIT
Summary:        Wayland libxkbcommon library
Url:            http://wayland.freedesktop.org/
Group:          Development/Libraries

Source:         %{name}-%{version}.tar.xz
#X-Vcs-Url:     https://github.com/xkbcommon/libxkbcommon.git
Source1001:     libxkbcommon.manifest
BuildRequires:  autoconf >= 2.60
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  libtool >= 2
BuildRequires:  pkgconfig(xorg-macros) >= 1.8
%if "%{?profile}" == "common"
%else
BuildRequires:  python
BuildRequires:  xkb-data
%endif

%description
Keyboard handling library using XKB data.

%package devel
Summary:        Development files for the Wayland libxkbcommon library
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description devel
Keyboard handling library using XKB data.

This package contains the development headers for the library found
in %{name}.

%prep
%setup -qn %{name}
cp %{SOURCE1001} .

# Generate tizen keymap header except common profile
%if "%{?profile}" == "common"
%else
export TIZEN_PROFILE="%{?profile}"
chmod a+x ./make_tizen_keymap.sh
./make_tizen_keymap.sh
chmod a+x ./gen_tables.sh
./gen_tables.sh
%endif

%build
%autogen --disable-static --disable-x11 --with-tizen-profile="%{?profile}"
%__make %{?_smp_mflags} V=1;

%install
%make_install

%post  -p /sbin/ldconfig

%postun  -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_libdir}/libxkbcommon.so.0*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/xkbcommon
%{_libdir}/libxkbcommon.so
%{_libdir}/pkgconfig/xkbcommon.pc