summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjhyuni.kang <jhyuni.kang@samsung.com>2015-03-30 23:56:50 +0900
committerjhyuni.kang <jhyuni.kang@samsung.com>2015-04-06 14:39:09 +0900
commit253d5cfd0079f556a24b930bcac54cf637a8de31 (patch)
treeb59e23eaf41360fe83ec630dd5ff7ff1f6c4245e /packaging
parentdd022a059cdd0bebd806d58479c29999a7d91a2e (diff)
downloadxkeyboard-config-253d5cfd0079f556a24b930bcac54cf637a8de31.tar.gz
xkeyboard-config-253d5cfd0079f556a24b930bcac54cf637a8de31.tar.bz2
xkeyboard-config-253d5cfd0079f556a24b930bcac54cf637a8de31.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/xkeyboard-config.spec29
1 files changed, 27 insertions, 2 deletions
diff --git a/packaging/xkeyboard-config.spec b/packaging/xkeyboard-config.spec
index 04ae3352..aad6123d 100644
--- a/packaging/xkeyboard-config.spec
+++ b/packaging/xkeyboard-config.spec
@@ -1,7 +1,7 @@
%bcond_with x
Name: xkeyboard-config
-Version: 2.12
+Version: 2.13
Release: 0
License: GPL-2.0+ and LGPL-2.1+ and MIT
Summary: The X Keyboard Extension
@@ -24,6 +24,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(pre): /usr/bin/ln
Requires(pre): /usr/bin/rm
+%if "%{?profile}" == "common"
+%else
+BuildRequires: e-tizen-data
+%endif
%description
The X Keyboard Extension essentially replaces the core protocol
@@ -36,13 +40,27 @@ make keyboards more accessible to people with physical impairments.
%prep
%setup -q
cp %{SOURCE1001} .
+export TIZEN_PROFILE="%{?profile}"
+%if "%{?profile}" == "common"
+%else
+
+%if %{with x}
+export TIZEN_WINDOW_SYSTEM="x11"
+%else
+export TIZEN_WINDOW_SYSTEM="wayland"
+%endif
+
+./make_keycodes.sh
+./make_symbols.sh
+%endif
%build
%autogen --with-xkb-rules-symlink=xfree86,xorg \
--with-xkb-base=/usr/share/X11/xkb \
--enable-compat_rules \
--disable-runtime-deps \
- --disable-xkbcomp-symlink
+ --disable-xkbcomp-symlink \
+ --with-tizen-profile="%{?profile}"
rm -f */*.dir
%__make
@@ -55,6 +73,13 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/xkb/compiled/
ln -snf /var/lib/xkb/compiled/ %{buildroot}%{_datadir}/X11/xkb/compiled
%find_lang %{name}
%fdupes -s %{buildroot}%{_datadir}/X11/xkb
+%if "%{?profile}" == "common"
+%else
+cp -af %{buildroot}/usr/share/X11/xkb/rules/evdev %{buildroot}/usr/share/X11/xkb/rules/tizen_"%{?profile}"
+mv -f %{buildroot}/usr/share/X11/xkb/rules/evdev %{buildroot}/usr/share/X11/xkb/rules/evdev.org
+sed -i 's/evdev/tizen_%{?profile}/g' %{buildroot}/usr/share/X11/xkb/rules/tizen_"%{?profile}"
+ln -sf tizen_"%{?profile}" %{buildroot}/usr/share/X11/xkb/rules/evdev
+%endif
%files -f %{name}.lang
%manifest %{name}.manifest