diff options
-rw-r--r-- | packaging/xkb-tizen-data.spec | 26 |
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 + |