packaging: Initial packaging of Weston 1.6 IVI Shell for Tizen
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 4 Jul 2014 09:13:24 +0000 (11:13 +0200)
committerJanos Kovacs <jankovac503@gmail.com>
Wed, 10 Dec 2014 14:26:54 +0000 (16:26 +0200)
Squashed all of the older packaging changes into a single
initialization commit, as the Weston 1.6 rebase will bring us
to a clean slate in any case.

Now depends on Weston 1.6, as well as libwayland-client and
libwayland-server 1.6. Version has been bumped to 0.1.8.
Base for the IVI Shell patches is Nobuhiko Tanibata's
upstream branch weston-ivi-shell-1.6.0-WIP-12.

squashed Weston 1.5 IVI Shell commits:

8117bcf - packaging: Intial packaging for Tizen on 1.5.0
115867c - packaging: use upstream tag
c2c742f - packaging: dont overload regular weston files
5fe3ac7 - packaging: update config
ec16a2a - packaging: enabled desktopshell
7520753 - packaging: install ivi headers
b373015 - packaging: Build weston-clients to weston-ivi-shell
0ba60de - packaging: Bump to 0.1.7
a69fec0 - Revert "packaging: use upstream tag"
90fb16f - packaging: fix client installing pathes

Change-Id: I1c68d769c16c3e6a7c2445ce4e5034601aa2ea7d

packaging/weston-ivi-shell.changes [new file with mode: 0644]
packaging/weston-ivi-shell.manifest [new file with mode: 0644]
packaging/weston-ivi-shell.spec [new file with mode: 0644]
packaging/weston.ini [new file with mode: 0644]

diff --git a/packaging/weston-ivi-shell.changes b/packaging/weston-ivi-shell.changes
new file mode 100644 (file)
index 0000000..09f1a1f
--- /dev/null
@@ -0,0 +1,39 @@
+* Tue Dec 9 2014 Jan Ekström <jan.ekstrom@intel.com>
+- Rebase on top of Tizen Weston 1.6 with IVI Shell patchset applied
+  on top of it. Used Nobuhiko Tanibata's upstream
+  weston-ivi-shell-1.6.0-WIP-12 branch as the base for the IVI shell
+  patches.
+
+* Tue Aug 12 2014 Ossama Othman <ossama.othman@intel.com> accepted/tizen/ivi/20140701.104524-1-gf53cf2f
+- packaging: ship weston-ivi-shell-user-interface and resources
+- packaging: share protocol file and stubs
+- Build weston-clients to weston-ivi-shell
+
+* Tue Jun 24 2014 Ossama Othman <ossama.othman@intel.com> 1aa3fe8
+- Update to latest version that supports Weston 1.5.
+
+* Mon Mar 31 2014 Ossama Othman <ossama.othman@intel.com> 12c5de3
+- Bug fix: Similar bug of IVI-2969. it doesn't display a layer when the layer is switched from one screen to another screen.
+- Bug fix: TIVI-2969. it doesn't display a surface when the surface is switched from one layer to another layer.
+- Bug fix: TIVI-2966. Supporting wl_shell_info again
+- Fix a bug: the input panel (weston-keyboard) displayed above a pointer cursor.
+- packaging: Avoid conflicting installation of wl_shell client examples.
+- Update for rpmbuild to package new samples and weston.ini with version 0.1.3 add following client example as https://bugs.tizen.org/jira/browse/TIVI-2970 weston-simple-shm weston-simple-egl weston-flower weston-smoke weston-clickdot weston-editor weston-dnd weston-terminal
+- Add new ivi examples: dnd and editor
+- Add image of Demo application: Navigation
+- Add clients: dnd and keyboard to verify correspoding protocols.
+- Applying feedback from Wayland Mailing list and Bug fixes.
+- Apply review comment from Wayland Mailing list regarding protocols
+
+* Tue Mar 11 2014 Ossama Othman <ossama.othman@intel.com> accepted/tizen/ivi/20140311.203321@8fe6470
+- Pulled in changes that were missed during the last rebase.
+- Added a 'config' subpackage that contains sample homescreen config.
+- Update to latest upstream to address misplaced home button.
+- Initial package for Tizen IVI.
+
+* Thu Feb 27 2014 Ossama Othman <ossama.othman@intel.com> 3331500
+- Change image size to avoid what is used as cursor on DRM backend.
+
+* Mon Feb 24 2014 Ossama Othman <ossama.othman@intel.com> 8ba5f92
+- Initial package for Tizen IVI.
+
diff --git a/packaging/weston-ivi-shell.manifest b/packaging/weston-ivi-shell.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/weston-ivi-shell.spec b/packaging/weston-ivi-shell.spec
new file mode 100644 (file)
index 0000000..fdccfe7
--- /dev/null
@@ -0,0 +1,178 @@
+Name:           weston-ivi-shell
+Version:        0.1.8
+Release:        0
+Summary:        Weston IVI Shell
+License:        MIT
+Group:          Graphics & UI Framework/Wayland Window System
+Url:            https://github.com/ntanibata/weston-ivi-shell/
+Source0:        %name-%version.tar.xz
+Source1:        weston.ini
+Source1001:     weston-ivi-shell.manifest
+BuildRequires:  autoconf >= 2.64, automake >= 1.11
+BuildRequires:  libtool >= 2.2
+BuildRequires:  libjpeg-devel
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(weston) >= 1.6
+BuildRequires:  pkgconfig(cairo-egl) >= 1.11.3
+BuildRequires:  pkgconfig(egl) >= 7.10
+BuildRequires:  pkgconfig(mtdev) >= 1.1.0
+BuildRequires:  pkgconfig(pixman-1)
+BuildRequires:  pkgconfig(wayland-client) >= 1.6
+BuildRequires:  pkgconfig(wayland-egl)
+BuildRequires:  pkgconfig(wayland-server) >= 1.6
+BuildRequires:  pkgconfig(xkbcommon) >= 0.3.0
+BuildRequires:  pkgconfig(pangocairo) >= 1.34.0
+Requires:       weston >= 1.6
+
+%description
+A reference Weston shell designed for use in IVI systems.
+
+%package devel
+Summary: Development files for package %{name}
+Group:   Graphics & UI Framework/Development
+Requires:  %{name} = %{version}-%{release}
+%description devel
+This package provides header files and other developer releated files
+for package %{name}.
+
+%package clients
+Summary: Sample clients for package %{name}
+Group:   Graphics & UI Framework/Development
+%description clients
+This package provides a set of example ivi wayland clients useful for
+validating the functionality of wayland with very little dependencies
+on other system components.
+
+%package config
+Summary:    Tizen IVI Weston configuration for package %{name}
+Group:      Automotive/Configuration
+Requires:   weston-ivi-shell-clients
+Requires:   weekeyboard
+Requires:   genivi-shell
+Conflicts:  weston-ivi-config
+Conflicts:  ico-uxf-weston-plugin
+%description config
+This package contains Tizen IVI-specific configuration for %{name}.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+# We only care about the ivi-shell related bits so disable anything
+# unrelated.
+%autogen \
+    --disable-static \
+    --disable-libunwind \
+    --disable-xwayland \
+    --disable-xwayland-test \
+    --disable-drm-compositor \
+    --disable-x11-compositor \
+    --disable-rpi-compositor \
+    --disable-fbdev-compositor \
+    --disable-wayland-compositor \
+    --disable-headless-compositor \
+    --disable-weston-launch \
+    --enable-simple-clients \
+    --enable-clients \
+    --disable-wcap-tools \
+    --enable-demo-clients-install \
+    --disable-libinput-backend \
+    --disable-fullscreen-shell \
+    --disable-desktop-shell \
+    --disable-simple-clients \
+    --enable-ivi-shell
+
+%__make %{?_smp_mflags}
+
+
+%install
+%make_install
+
+# install example clients
+%define ivi_shell_client_dir %{_bindir}/ivi
+mkdir -p %{buildroot}%{ivi_shell_client_dir}
+#mv %{buildroot}%{_bindir}/weston-calibrator %{buildroot}%{ivi_shell_client_dir}
+#mv %{buildroot}%{_bindir}/weston-simple-touch %{buildroot}%{ivi_shell_client_dir}
+#mv %{buildroot}%{_bindir}/weston-simple-shm %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-simple-egl %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-flower %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-image %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-cliptest %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-dnd %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-editor %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-smoke %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-resizor %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-eventdemo %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-clickdot %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-subsurfaces %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-transformed %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-fullscreen %{buildroot}%{ivi_shell_client_dir}
+mv %{buildroot}%{_bindir}/weston-terminal %{buildroot}%{ivi_shell_client_dir}
+
+install -d %{buildroot}/%{_datadir}/%{name}/protocol/
+
+install -m 644 protocol/*.xml \
+    %{buildroot}/%{_datadir}/%{name}/protocol/
+
+install -m 644 protocol/*.h \
+    %{buildroot}/%{_datadir}/%{name}/protocol/
+
+install -m 644 protocol/*.c \
+    %{buildroot}/%{_datadir}/%{name}/protocol/
+
+%define weston_config_dir %{_sysconfdir}/xdg/weston
+mkdir -p %{buildroot}%{weston_config_dir}
+install -m 0644 %{SOURCE1} %{buildroot}%{weston_config_dir}
+install -d %{buildroot}/%{_datadir}/weston/
+cp -rfva data/* %{buildroot}/%{_datadir}/weston/
+
+%define _unpackaged_files_terminate_build 0
+
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%license COPYING
+%_libdir/weston/ivi-shell.so
+%_libdir/weston/ivi-layout.so
+%_libdir/weston/hmi-controller.so
+%_libexecdir/weston-ivi-shell-user-interface
+%_datadir/weston/*
+
+%exclude %_bindir/weston
+%exclude %_libdir/weston/desktop-shell.so
+
+%files devel
+%manifest %{name}.manifest
+%_includedir/weston/ivi-layout-export.h
+%_includedir/weston/ivi-layout-private.h
+%_includedir/weston/ivi-shell.h
+%_includedir/weston/ivi-shell-ext.h
+%{_datadir}/%{name}/protocol/*
+
+%files clients
+%manifest %{name}.manifest
+#%{ivi_shell_client_dir}/weston-simple-touch
+#%{ivi_shell_client_dir}/weston-simple-shm
+%{ivi_shell_client_dir}/weston-simple-egl
+%{ivi_shell_client_dir}/weston-flower
+%{ivi_shell_client_dir}/weston-image
+%{ivi_shell_client_dir}/weston-cliptest
+%{ivi_shell_client_dir}/weston-dnd
+%{ivi_shell_client_dir}/weston-editor
+%{ivi_shell_client_dir}/weston-smoke
+%{ivi_shell_client_dir}/weston-resizor
+%{ivi_shell_client_dir}/weston-eventdemo
+%{ivi_shell_client_dir}/weston-clickdot
+%{ivi_shell_client_dir}/weston-subsurfaces
+%{ivi_shell_client_dir}/weston-transformed
+%{ivi_shell_client_dir}/weston-fullscreen
+%{ivi_shell_client_dir}/weston-terminal
+#%{ivi_shell_client_dir}/weston-calibrator
+
+%files config
+%manifest %{name}.manifest
+%config %{weston_config_dir}/weston.ini
+
+%exclude %_libdir/pkgconfig/weston.pc
diff --git a/packaging/weston.ini b/packaging/weston.ini
new file mode 100644 (file)
index 0000000..b45d260
--- /dev/null
@@ -0,0 +1,104 @@
+[core]
+shell=ivi-shell.so
+
+[output]
+name=DP1
+mode=1920x1080
+#transform=90
+
+[ivi-shell]
+ivi-module=ivi-controller.so,hmi-controller.so
+ivi-shell-user-interface=/usr/libexec/weston-ivi-shell-user-interface
+
+cursor-theme=default
+cursor-size=32
+
+base-layer-id=1000
+workspace-background-layer-id=2000
+workspace-layer-id=3000
+application-layer-id=4000
+
+transition-duration=300
+
+background-image=/usr/share/weston/background.png
+background-id=1001
+panel-image=/usr/share/weston/panel.png
+panel-id=1002
+tiling-image=/usr/share/weston/tiling.png
+tiling-id=1003
+sidebyside-image=/usr/share/weston/sidebyside.png
+sidebyside-id=1004
+fullscreen-image=/usr/share/weston/fullscreen.png
+fullscreen-id=1005
+random-image=/usr/share/weston/random.png
+random-id=1006
+home-image=/usr/share/weston/home.png
+home-id=1007
+workspace-background-color=0x99000000
+workspace-background-id=2001
+
+ivi-surface-creator-path=/usr/bin/IVISurfaceCreator
+
+[input-method]
+path=/usr/libexec/weston-keyboard
+
+
+[ivi-launcher]
+workspace-id=0
+icon-id=4001
+icon=/usr/share/weston/icon_ivi_flower.png
+path=/usr/bin/ivi/weston-flower
+
+[ivi-launcher]
+workspace-id=0
+icon-id=4002
+icon=/usr/share/weston/icon_ivi_clickdot.png
+path=/usr/bin/ivi/weston-clickdot
+
+[ivi-launcher]
+workspace-id=1
+icon-id=4003
+icon=/usr/share/weston/icon_ivi_simple-egl.png
+path=/usr/bin/ivi/weston-simple-egl
+
+[ivi-launcher]
+workspace-id=1
+icon-id=4004
+icon=/usr/share/weston/icon_ivi_simple-shm.png
+path=/usr/bin/ivi/weston-simple-shm
+
+[ivi-launcher]
+workspace-id=2
+icon-id=4005
+icon=/usr/share/weston/icon_ivi_smoke.png
+path=/usr/bin/ivi/weston-smoke
+
+[ivi-launcher]
+workspace-id=3
+icon-id=4006
+icon=/usr/share/weston/icon_ivi_flower.png
+path=/usr/bin/ivi/weston-flower
+
+[ivi-launcher]
+workspace-id=3
+icon-id=4007
+icon=/usr/share/weston/icon_ivi_clickdot.png
+path=/usr/bin/ivi/weston-clickdot
+
+[ivi-launcher]
+workspace-id=3
+icon-id=4008
+icon=/usr/share/weston/icon_ivi_simple-egl.png
+path=/usr/bin/ivi/weston-simple-egl
+
+[ivi-launcher]
+workspace-id=3
+icon-id=4009
+icon=/usr/share/weston/icon_ivi_simple-shm.png
+path=/usr/bin/ivi/weston-simple-shm
+
+[ivi-launcher]
+workspace-id=3
+icon-id=4010
+icon=/usr/share/weston/icon_ivi_smoke.png
+path=/usr/bin/ivi/weston-smoke