Project

General

Profile

Install myami-22 on guppy » History » Version 4

Sargis Dallakyan, 09/10/2012 11:48 AM

1 1 Sargis Dallakyan
h1. Install myami-2.2 on guppy (work in progress...)
2 2 Sargis Dallakyan
3 3 Sargis Dallakyan
The following describes myami-2.2 installation on guppy running CentOS 6.
4 1 Sargis Dallakyan
5 3 Sargis Dallakyan
Before we start, make sure to "set up an RPM build environment under CentOS":http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment. Notice that "rpmbuild is building in /root/rpmbuild":http://help.directadmin.com/item.php?id=381 on CentOS 6.
6 1 Sargis Dallakyan
7 3 Sargis Dallakyan
We use attachment:myami-2.2.spec to build rpm package for myami-2.2.spec. 
8 1 Sargis Dallakyan
<pre>
9 3 Sargis Dallakyan
Name:           myami
10
Version:        2.2
11
Release:        757
12
Source0:        %{name}-%{version}.tar.gz
13
License:        Apache
14
Summary:        Data collection and procession processing tools for EM
15
Vendor:         NRAMM/Scripps Research Institute AMI Group
16
URL:            http://nramm.scripps.edu
17
Group:          Applications/Engineering and Scientific
18
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
19
AutoReq:        0
20
Prefix:		/opt/%{name}-%{version}
21
...
22 1 Sargis Dallakyan
</pre>
23 3 Sargis Dallakyan
The "Prefix":http://www.rpm.org/max-rpm/s1-rpm-reloc-prefix-tag.html tag here shows that, by default, rpm will install our files under /opt/myami-2.2. 
24
25
For our automated build procedure we use attachment:buildMyamiSnapshot-2.2.py. Line 6 in buildMyamiSnapshot-2.2.py defines where myami-2.2.spec is stored:
26
<pre>
27
specFile = '/root/rpmbuild/SPECS/myami-2.2.spec'
28
</pre>
29
In other words, we need to store attached myami-2.2.spec under /root/rpmbuild/SPECS. Line 7 in buildMyamiSnapshot-2.2.py defines workingDir as:
30
<pre>
31
workingDir = '/root/src/myami-2.2'
32
</pre>
33
This workingDir where we need to checkout myami-2.2 files to:
34
<pre>
35
cd /root/src
36
svn co http://emg.nysbc.org/svn/myami/branches/myami-2.2
37
</pre>
38
In order to run buildMyamiSnapshot-2.2.py nightly, add the following to /var/spool/cron/root:
39
<pre>
40
55 22 * * * /root/bin/buildMyamiSnapshot-2.2.py
41
</pre>
42
43
h1. Summary
44
45 4 Sargis Dallakyan
Attached myami-2.2.spec and buildMyamiSnapshot-2.2.py are used get the latest myami-2.2 files from SVN, build and create rpm package, and install myami-2.2 under /opt/myami-2.2.