Name: libxkbcommon
-Version: 0.4.1
+Version: 0.4.3
Release: 0
License: MIT
Summary: Wayland libxkbcommon library
Url: http://wayland.freedesktop.org/
Group: Development/Libraries
-#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libxkbcommon
-#Git-Web: http://cgit.freedesktop.org/xorg/lib/libxkbcommon/
Source: %{name}-%{version}.tar.xz
-Source1001: libxkbcommon.manifest
+#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
-#BuildRequires: pkgconfig(kbproto) >= 1.0.4
BuildRequires: pkgconfig(xorg-macros) >= 1.8
-#BuildRequires: pkgconfig(xproto)
+%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}
+Requires: %{name} = %{version}-%{release}
%description devel
Keyboard handling library using XKB data.
%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
-make %{?_smp_mflags} V=1;
+%autogen --disable-static --disable-x11 --with-tizen-profile="%{?profile}"
+%__make %{?_smp_mflags} V=1;
%install
%make_install
%{_libdir}/libxkbcommon.so
%{_libdir}/pkgconfig/xkbcommon.pc
-%changelog