summaryrefslogtreecommitdiff
path: root/packaging/ivi-demo-config.spec
blob: de6eac3ff16f9ece2ea79e55aa926bada3fa64f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name:       ivi-demo-config
Summary:    Custom configs for Tizen IVI demos
Version:    0.0.5
Release:    1
Group:      System Environment/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
Source4:    settings
Source5:    tizen-base.repo  
Source6:    tizen-ivi-demo.repo
Source7:    tizen-ivi.repo

%description
Provides customizations for Tizen IVI demos

%prep

%build

%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
install -m 755 %{SOURCE3} %{buildroot}%{_libdir}/automotive-message-broker/scripts
mkdir 	-p %{buildroot}/var/lib/connman
install -m 600 %{SOURCE4} %{buildroot}/var/lib/connman
mkdir 	-p %{buildroot}%{_sysconfdir}/zypp/repos.d
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/zypp/repos.d
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/zypp/repos.d
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/zypp/repos.d

%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_HOSTNAME=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/*
%{_sysconfdir}/zypp/repos.d/*
/var/lib/connman/settings