blob: d340f9ef74de91f5587997baf4a6cd3376c74f33 (
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
|
Name: ivi-demo-config
Summary: Custom configs for Tizen IVI demos
Version: 0.0.3
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
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_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/*
|