1 |
### RPM cms dbs-client 1.1.0
|
2 |
## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
|
3 |
#
|
4 |
#
|
5 |
%define cvstag DBS_1_1_0
|
6 |
%define moduleName DBS
|
7 |
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Clients/Python&export=DBS/Clients/Python&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz
|
8 |
Requires: python openssl py2-zsi
|
9 |
|
10 |
|
11 |
%prep
|
12 |
%setup -n %{moduleName}
|
13 |
%build
|
14 |
(make DBSHOME=%_builddir/DBS/Clients/Python )
|
15 |
|
16 |
%install
|
17 |
mkdir -p %{i}/bin
|
18 |
mkdir -p %{i}/lib
|
19 |
mkdir -p %{i}/etc/profile.d
|
20 |
cp -r Clients/Python/* %{i}/lib/
|
21 |
|
22 |
(echo "#!/bin/sh"; \
|
23 |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
|
24 |
echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
|
25 |
) > %{i}/etc/profile.d/dependencies-setup.sh
|
26 |
|
27 |
(echo "#!/bin/tcsh"; \
|
28 |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
|
29 |
echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
|
30 |
) > %{i}/etc/profile.d/dependencies-setup.csh
|
31 |
|
32 |
%post
|
33 |
%{relocateConfig}etc/profile.d/dependencies-setup.sh
|
34 |
%{relocateConfig}etc/profile.d/dependencies-setup.csh
|