diff options
author | Magnus <mfeuer@jaguarlandrover.com> | 2014-09-26 10:53:50 -0700 |
---|---|---|
committer | Magnus <mfeuer@jaguarlandrover.com> | 2014-09-26 10:53:50 -0700 |
commit | 508f6b9b4cf14f79ea3b73c81b4f7f7ae88339e6 (patch) | |
tree | a84c0fa447ed9e8102dda89f1c7afaf4a6e685f3 /rpm/SPECS | |
parent | bd5afa1cf6e2f670d92c7cff86f9148987768d3b (diff) | |
download | rvi_core-508f6b9b4cf14f79ea3b73c81b4f7f7ae88339e6.tar.gz |
Renamed to match bumped version
Signed-off-by: Magnus <mfeuer@jaguarlandrover.com>
Diffstat (limited to 'rpm/SPECS')
-rw-r--r-- | rpm/SPECS/rvi-0.2.0.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/rpm/SPECS/rvi-0.2.0.spec b/rpm/SPECS/rvi-0.2.0.spec new file mode 100644 index 0000000..4a3ff61 --- /dev/null +++ b/rpm/SPECS/rvi-0.2.0.spec @@ -0,0 +1,72 @@ +Summary: Remote Vehicle Interaction Node +Name: rvi +Version: 0.2.0 +Release: 1 +# Copyright: Jaguar Land Rover - +License: Mozilla Public License v2 +Vendor: Jaguar Land Rover +Group: Applications/System +Source: http://content.linuxfoundation.org/auto/downloads/rvi/rvi-0.2.0.tgz +Buildroot: /var/tmp/%{name}-buildroot + +# Requires: + +%description +The RVI project sets up a P2P network allowing services on multiple +nodes to access each other through a number of different protocols +and data channels. The entire system is designed to be adapted +and rewritten to fullfil the requirements of the target production +environment. + +# +%prep +%setup -c rvi-$RPM_PACKAGE_VERSION + +%build +make deps +make compile +# Create a sample config. +./scripts/setup_rvi_node.sh -n rvi-$RPM_PACKAGE_VERSION -c rvi_sample.config + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION +cp -ar rel/rvi-$RPM_PACKAGE_VERSION $RPM_BUILD_ROOT/opt/ + +# Create a standard debian setup for start/stop. +mkdir -p $RPM_BUILD_ROOT/etc/init.d +mkdir -p $RPM_BUILD_ROOT/etc/rc0.d +mkdir -p $RPM_BUILD_ROOT/etc/rc1.d +mkdir -p $RPM_BUILD_ROOT/etc/rc2.d +mkdir -p $RPM_BUILD_ROOT/etc/rc3.d +mkdir -p $RPM_BUILD_ROOT/etc/rc4.d +mkdir -p $RPM_BUILD_ROOT/etc/rc5.d +mkdir -p $RPM_BUILD_ROOT/etc/rc6.d +install ./scripts/rvi $RPM_BUILD_ROOT/etc/init.d +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc0.d/K20-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc1.d/K20-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc2.d/S50-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc3.d/S50-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc4.d/S50-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc5.d/S50-rvi +ln -fsr $RPM_BUILD_ROOT/etc/init.d/rvi $RPM_BUILD_ROOT/etc/rc6.d/K20-rvi + +# Make global config file easier to access. +ln -fsr $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION/releases/1/sys.config \ + $RPM_BUILD_ROOT/opt/rvi-$RPM_PACKAGE_VERSION/sys.config +%post + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/etc/init.d +/etc/rc0.d +/etc/rc1.d +/etc/rc2.d +/etc/rc3.d +/etc/rc4.d +/etc/rc5.d +/etc/rc6.d +/opt/rvi-0.2.0 |