1 |
< |
### RPM cms webtools-base 0.1.1 |
1 |
> |
### RPM cms webtools-base 0.1.3 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages |
3 |
|
%define moduleName WEBTOOLS |
4 |
|
%define exportName WEBTOOLS |
5 |
< |
%define cvstag V01-03-18 |
5 |
> |
%define cvstag V01-03-19 |
6 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
7 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz |
8 |
|
Requires: python cherrypy py2-cheetah yui webtools |
60 |
|
port=7999 |
61 |
|
pid=`ps auxw | grep WSServer | grep -v grep | awk '{print $2}'` |
62 |
|
base=base |
63 |
< |
cmd = "cmsWeb --base-url=https://cmsweb.cern.ch/base --port $port --default-page /WSServer" |
63 |
> |
if [ -n "$WEBTOOLS_BASEURL" ]; then |
64 |
> |
url="$WEBTOOLS_BASEURL/$base" |
65 |
> |
else |
66 |
> |
url="http://cmsweb.cern.ch/$base" |
67 |
> |
fi |
68 |
> |
cmd="cmsWeb --base-url=$url --port $port --default-page /WSServer" |
69 |
|
|
70 |
|
case "$1" in |
71 |
|
restart) |
104 |
|
exit $RETVAL |
105 |
|
|
106 |
|
EOF |
107 |
+ |
chmod a+x %i/bin/base_init |
108 |
|
|
109 |
|
%post |
110 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |