blob: b692e8d0e3928e5941c8543b3d6985ba5a94b5d0 (
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
|
Summary: Remote Vehicle Interaction Node, running on top of Erlang,
Name: rvi_core
Version: 0.5.0
Release: 1
Group: App Framework/Application Communication
License: Mozilla Public License 2.0
Source: http://content.linuxfoundation.org/auto/downloads/rvi/rvi_core-0.5.0.tgz
BuildRequires: make
BuildRequires: glib2-devel
BuildRequires: rpm
BuildRequires: git
BuildRequires: erlang
BuildRequires: bluez-devel
%description
RVI Node running on Tizen. Needs erlang. See README.md
%prep
%setup -c rvi_core-$RPM_PACKAGE_VERSION
for i in $(find deps -name '*.app.src'); do sed 's/git/"1.0"/' < $i > $i.tmp; mv $i.tmp $i; done
make compile
# Create a tizen node if that is what we have.
./scripts/setup_rvi_node.sh -n rvi_tizen -c ./packaging/tizen.config
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION
cp -ar rel/rvi_tizen $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION
cp -ar python $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/
mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/multi-user.target.wants/
install ./scripts/rvi.service $RPM_BUILD_ROOT/usr/lib/systemd/system/rvi.service
ln -fsr $RPM_BUILD_ROOT/usr/lib/systemd/system/rvi.service \
$RPM_BUILD_ROOT/etc/systemd/system/multi-user.target.wants/rvi.service
ln -fsr $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION/releases/$RPM_PACKAGE_VERSION/sys.config \
$RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION/sys.config
mkdir -p $RPM_BUILD_ROOT/home/app/content/Documents
echo "default_vin" > $RPM_BUILD_ROOT/home/app/content/Documents/vin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%manifest packaging/rvi_core.manifest
%defattr(-,root,root)
%attr(644,app,users) /home/app/content/Documents/vin
/usr/lib/systemd/system/rvi.service
/etc/systemd/system/multi-user.target.wants/rvi.service
/opt/rvi-0.5.0
|