20 |
|
|
21 |
|
# SCRAM ToolBox toolfile |
22 |
|
mkdir -p %i/etc/scram.d |
23 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
24 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
25 |
< |
<Tool name=%n version=%v> |
26 |
< |
<info url="http://python-ldap.sourceforge.net/"></info> |
27 |
< |
<Client> |
28 |
< |
<Environment name=PYTHON_LDAP_BASE default="%i"></Environment> |
29 |
< |
<Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python@PYTHONV@/site-packages"></Environment> |
30 |
< |
</Client> |
31 |
< |
<use name=openssl> |
32 |
< |
<use name=openldap> |
33 |
< |
<use name=python> |
34 |
< |
<Runtime name=PYTHONPATH value="$PYTHON_LDAP_PYPATH" type=path> |
35 |
< |
</Tool> |
23 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
24 |
> |
<tool name="%n" version="%v"> |
25 |
> |
<info url="http://python-ldap.sourceforge.net/"/> |
26 |
> |
<client> |
27 |
> |
<environment name="PYTHON_LDAP_BASE" default="%i"/> |
28 |
> |
<environment name="PYTHON_LDAP_PYPATH" default="$PYTHON_LDAP_BASE/lib/python@PYTHONV@/site-packages"/> |
29 |
> |
</client> |
30 |
> |
<runtime name="PYTHONPATH" value="$PYTHON_LDAP_PYPATH" type="path"/> |
31 |
> |
<use name="openssl"/> |
32 |
> |
<use name="openldap"/> |
33 |
> |
<use name="python"/> |
34 |
> |
</tool> |
35 |
|
EOF_TOOLFILE |
36 |
|
|
37 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
49 |
|
|
50 |
|
|
51 |
|
%post |
52 |
< |
%{relocateConfig}etc/scram.d/%n |
52 |
> |
%{relocateConfig}etc/scram.d/%n.xml |
53 |
|
# The relocation below is also needed for dependencies |
54 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
55 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |