forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boss.spec
41 lines (38 loc) · 1.77 KB
/
boss.spec
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
### RPM cms boss BOSS_4_3_10-CMS30
## INITENV +PATH PATH %i/bin
## INITENV +PATH PYTHONPATH %i/BossPython
## INITENV SET BOSSDIR %i
%define cvstag %realversion
%define compProjectName BOSS
Source: cvs://:pserver:[email protected]:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=%{compProjectName}&export=%{compProjectName}&&tag=-r%{cvstag}&output=/%{compProjectName}.tar.gz
Requires: mysql sqlite uuid monalisa-apmon xerces-c python
%prep
%setup -n %{compProjectName}
%build
export mysql_dir=$MYSQL_ROOT
export sqlite_dir=$SQLITE_ROOT
echo %{v} > ./VERSION
./configure --prefix=%{i} --with-monalisa-dir=$MONALISA_APMON_ROOT --with-uuid-lib=$UUID_ROOT/lib --with-uuid-include=$UUID_ROOT/include/uuid/ --with-xercesc-lib=$XERCES_C_ROOT/lib --with-xercesc-include=$XERCES_C_ROOT/include
make
%install
make install
mkdir -p %{i}/etc/profile.d
(echo "#!/bin/sh"; \
echo "source $PYTHON_ROOT/etc/profile.d/init.sh";
echo "source $UUID_ROOT/etc/profile.d/init.sh"; \
echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
echo "source $SQLITE_ROOT/etc/profile.d/init.sh"; \
echo "source $XERCES_C_ROOT/etc/profile.d/init.sh"; \
echo "source $MONALISA_APMON_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh
(echo "#!/bin/tcsh"; \
echo "source $PYTHON_ROOT/etc/profile.d/init.csh";
echo "source $UUID_ROOT/etc/profile.d/init.csh"; \
echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \
echo "source $SQLITE_ROOT/etc/profile.d/init.csh"; \
echo "source $XERCES_C_ROOT/etc/profile.d/init.csh"; \
echo "source $MONALISA_APMON_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh
%post
%{relocateConfig}etc/profile.d/dependencies-setup.sh
%{relocateConfig}etc/profile.d/dependencies-setup.csh
%{relocateConfig}bossenv.csh
%{relocateConfig}bossenv.sh