summaryrefslogtreecommitdiffstats
path: root/genome-autostarter/genome-autostarter.spec
blob: 82c4cfc276c6ec7a3021c4bdc47b612a7073de7c (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
Summary: Genome virtual machine autostarter
Name: genome-autostarter
Source0: genome-autostarter
Source1: genome-autostarter.sh
Version: 1.0.0
Release: 6%{?dist}
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Group: Applications/System
URL: http://genome.et.redhat.com
License: GPLv2

%description
Genome virtual machine autostarter

%prep

%setup -c -T

%build

%install
# Cleaning up the build root
rm -rf $RPM_BUILD_ROOT

# Create the directory structure required to lay down our files
mkdir -p $RPM_BUILD_ROOT/etc/cron.d $RPM_BUILD_ROOT/usr/sbin

install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.d
install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/sbin

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
/etc/cron.d/genome-autostarter
/usr/sbin/genome-autostarter.sh

%doc