Take two 08/1908/1 1.0_post accepted/trunk/20121001.223406 submit/trunk/20121001.223947
authorGraydon, Tracy <tracy.graydon@intel.com>
Mon, 1 Oct 2012 22:29:45 +0000 (15:29 -0700)
committerGraydon, Tracy <tracy.graydon@intel.com>
Mon, 1 Oct 2012 22:29:45 +0000 (15:29 -0700)
packaging/ivi-demo-config.changes [new file with mode: 0644]
packaging/ivi-demo-config.spec [new file with mode: 0644]

diff --git a/packaging/ivi-demo-config.changes b/packaging/ivi-demo-config.changes
new file mode 100644 (file)
index 0000000..1f61103
--- /dev/null
@@ -0,0 +1,11 @@
+* Mon Oct 01 2012 Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> 2bf0bed
+- Add postinstall script to give any system a unique, friendly name
+- Revamp of rundemo.sh script to use 'case' instead of nested 'if'
+- Correct path to AMB config file - Bump up version
+- Fix automotive-message-broker version requirement
+- Update AMB config file for demo - Add couple of scripts to use gear stick pad buttons
+- Remove conflicts with Wayland as it causes a list of things to be removed
+
+* Tue Sep 04 2012 Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> 710cff4
+- Initial packaging of Tizen IVI demo config (xorg.conf)
+
diff --git a/packaging/ivi-demo-config.spec b/packaging/ivi-demo-config.spec
new file mode 100644 (file)
index 0000000..f55d9ef
--- /dev/null
@@ -0,0 +1,55 @@
+Name:       ivi-demo-config
+Summary:    Custom configs for Tizen IVI demos
+Version:    0.0.3
+Release:    1
+Group:      System/Libraries
+License:    Apache License, Version 2.0
+URL:        http://www.tizen.org
+Source0:    xorg-dual.conf
+Source1:    configwheeldemo
+Source2:    rundemo.sh
+Source3:    start_video.sh
+Requires:   xorg-x11-server
+Requires:   automotive-message-broker >= 0.3
+#Conflicts:  wayland
+
+%description
+Provides customizations for Tizen IVI demos
+
+%prep
+
+%build
+# >> build pre
+# << build pre
+
+# >> build post
+# << build post
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_sysconfdir}/X11/
+install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xorg.conf
+
+mkdir -p %{buildroot}%{_sysconfdir}/ambd/
+install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ambd/config
+
+mkdir -p %{buildroot}%{_libdir}/automotive-message-broker/scripts
+install -m 755 %{SOURCE2} %{buildroot}%{_libdir}/automotive-message-broker/scripts/rundemo.sh
+install -m 755 %{SOURCE3} %{buildroot}%{_libdir}/automotive-message-broker/scripts/start_video.sh
+
+%post
+# Create a new machine-info file in order to have a friendly name
+#!/bin/bash
+if [ ! -e %{_sysconfdir}/machine-info ]; then
+       HOST_ID=$(hostid)
+       cat > %{_sysconfdir}/machine-info <<EOF
+PRETTY_NAME=Tizen IVI $HOST_ID
+ICON_NAME=Tizen IVI
+EOF
+fi
+
+%files
+%defattr(-,root,root,-)
+%config %{_sysconfdir}/X11/xorg.conf
+%config %{_sysconfdir}/ambd/config
+%{_libdir}/automotive-message-broker/scripts/*