1 |
< |
### RPM cms dbs-client DBS_2_0_9_pre5 |
1 |
> |
### RPM cms dbs-client DBS_2_1_1 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/ |
3 |
|
## INITENV +PATH PYTHONPATH %i/bin/ |
4 |
|
## INITENV +PATH PYTHONPATH %{i}/lib/ |
11 |
|
Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz |
12 |
|
Requires: python openssl py2-zsi py2-pyxml |
13 |
|
|
14 |
+ |
|
15 |
|
%prep |
16 |
|
%setup -n DBS |
17 |
|
%build |
43 |
|
|
44 |
|
# SCRAM ToolBox toolfile |
45 |
|
mkdir -p %i/etc/scram.d |
46 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
47 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
48 |
< |
<Tool name=dbs-client version=%v> |
49 |
< |
<client> |
50 |
< |
<Environment name=DBS_CLIENT_BASE default="%i"></Environment> |
51 |
< |
</client> |
52 |
< |
<Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path> |
53 |
< |
<Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib" type=path> |
54 |
< |
<Runtime name=PYTHONPATH value="$DBS_CLIENT_BASE/lib/DBSAPI" type=path> |
55 |
< |
<Runtime name=DBS_CLIENT_CONFIG value="$DBS_CLIENT_BASE/lib/DBSAPI/dbs.config"> |
56 |
< |
<Runtime name=DBSCMD_HOME value="$DBS_CLIENT_BASE/lib/DBSAPI"> |
56 |
< |
</Tool> |
46 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
47 |
> |
<tool name="dbs-client" version="%v"> |
48 |
> |
<client> |
49 |
> |
<environment name="DBS_CLIENT_BASE" default="%i"/> |
50 |
> |
</client> |
51 |
> |
<runtime name="PATH" value="$DBS_CLIENT_BASE/bin" type="path"/> |
52 |
> |
<runtime name="PYTHONPATH" value="$DBS_CLIENT_BASE/lib" type="path"/> |
53 |
> |
<runtime name="PYTHONPATH" value="$DBS_CLIENT_BASE/lib/DBSAPI" type="path"/> |
54 |
> |
<runtime name="DBS_CLIENT_CONFIG" value="$DBS_CLIENT_BASE/lib/DBSAPI/dbs.config"/> |
55 |
> |
<runtime name="DBSCMD_HOME" value="$DBS_CLIENT_BASE/lib/DBSAPI"/> |
56 |
> |
</tool> |
57 |
|
EOF_TOOLFILE |
58 |
|
|
59 |
– |
|
60 |
– |
|
59 |
|
%post |
60 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
61 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
62 |
< |
%{relocateConfig}etc/scram.d/%n |
62 |
> |
%{relocateConfig}etc/scram.d/%n.xml |
63 |
|
|
64 |
|
# hack init.csh to get around bug in current version of PKGTOOLS |
65 |
|
# will have no effect with the bug fixed verion |