summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2016-09-05 19:38:37 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-02-01 10:56:50 +0900
commit6e7da1ada641c18218858fddfbd809876ce23f85 (patch)
treea2b8a95587642b48841078637d76a4fccec228f7
parente7243f4f7639af103d8329f0c1008594d55eac82 (diff)
downloadxkb-tizen-data-6e7da1ada641c18218858fddfbd809876ce23f85.tar.gz
xkb-tizen-data-6e7da1ada641c18218858fddfbd809876ce23f85.tar.bz2
xkb-tizen-data-6e7da1ada641c18218858fddfbd809876ce23f85.zip
Remove Profile Build Dependency (Type-B)
- This is for Tizen 4.0. (4.0 Configurability and Building Blocks) : There are multiple packages with the same name, "xkb-tizen-data", which is a blocking issue for Tizen 4.0. - After https://review.tizen.org/gerrit/#/c/102936/ , we only have 3 packages using xkb-tizen-data: "e-tizen-data", "libxkbcommon", "xkeyboard-config". The plan is: : xkb-tizen-data is Type-B (one repo per profile). So, we can directly make them require "xkb-tizen-data-profile_...." : libxkbcommon/xkeyboard-config: Make them not to use xkb-tizen-data in public. (In private-GBM-production, they can keep using this) - You need to create JIRA-TRE issue when SR-ing this: - Replace xkb-tizen-data with xkb-tizen-data-profile_ivi in ivi profile. Change-Id: Ib8192b45acf53147b6cf12b5cc4ad5175e4582b0 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r--packaging/xkb-tizen-data.spec26
1 files changed, 19 insertions, 7 deletions
diff --git a/packaging/xkb-tizen-data.spec b/packaging/xkb-tizen-data.spec
index 5ae0f85..72165e4 100644
--- a/packaging/xkb-tizen-data.spec
+++ b/packaging/xkb-tizen-data.spec
@@ -1,14 +1,16 @@
-Name: xkb-tizen-data
+%define alias xkb-tizen-data
+Name: xkb-tizen-data-profile_ivi
Version: 0.0.1
Release: 0
+Provides: xkb-tizen-data = %{version}-%{release}
BuildArch: noarch
Summary: Xkb data files
Group: Graphics & UI Framework/Other
License: MIT
Source0: %{name}-%{version}.tar.gz
-Source1001: %{name}.manifest
+Source1001: %{alias}.manifest
-%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+%{!?TZ_SYS_RO_SHARE: %global TZ_SYS_RO_SHARE /usr/share}
%description
Data files for Xkb keymap
@@ -28,20 +30,30 @@ rm -rf %{buildroot}
# install service
%__mkdir_p %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb
-%__cp -f xkb/tizen_key_layout.txt %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt
+%__cp -f xkb/tizen_key_layout.txt %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt.ivi
+ln -sf tizen_key_layout.txt.ivi %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt
%__cp -f xkb/xkb.rule %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/xkb.rule
# for license notification
mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
-cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{alias}
%pre
%postun
%files
-%manifest %{name}.manifest
+%manifest %{alias}.manifest
%defattr(-,root,root,-)
-%{TZ_SYS_RO_SHARE}/license/%{name}
+%{TZ_SYS_RO_SHARE}/license/%{alias}
%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt
+%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt.ivi
%{TZ_SYS_RO_SHARE}/X11/xkb/xkb.rule
+
+%package layout
+Summary: Layout file only
+%description layout
+keyboard layout of xkb-tizen-data-profile_ivi
+%files layout
+%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt.ivi
+