1 |
< |
### RPM cms prodrequest V00-00-01 |
1 |
> |
### RPM cms prodrequest 0.4.0 |
2 |
|
%define moduleName PRODREQUEST |
3 |
|
%define exportName PRODREQUEST |
4 |
< |
%define cvstag %{v} |
4 |
> |
%define cvstag V00-04-21 |
5 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
6 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/PRODREQUEST.tar.gz |
7 |
< |
Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite |
7 |
> |
Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite py2-formencode zlib expat openssl bz2lib db4 gdbm prodcommon webtools dbs dls boss mysql py2-mysqldb py2-pycrypto |
8 |
> |
#Requires: prodagent |
9 |
|
|
10 |
|
%prep |
11 |
|
%setup -n PRODREQUEST |
12 |
|
%build |
13 |
< |
mkdir %i/etc/profile.d/ |
14 |
< |
( echo source $PYTHON_ROOT/etc/profile.d/init.sh ; \ |
15 |
< |
echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \ |
16 |
< |
echo source $PY2_SQLOBJECT_ROOT/etc/profile.d/init.sh ; \ |
17 |
< |
echo source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh ; \ |
18 |
< |
echo source $CHERRYPY_ROOT/etc/profile.d/init.sh ; \ |
19 |
< |
echo source $PY2_CHEETAH_ROOT/etc/profile.d/init.sh ; \ |
20 |
< |
echo source $YUI_ROOT/etc/profile.d/init.sh ; \ |
21 |
< |
echo source $ZLIB_ROOT/etc/profile.d/init.sh ; \ |
22 |
< |
echo source $EXPAT_ROOT/etc/profile.d/init.sh ; \ |
23 |
< |
echo source $OPENSSL_ROOT/etc/profile.d/init.sh ; \ |
24 |
< |
echo source $BZ2LIB_ROOT/etc/profile.d/init.sh ; \ |
25 |
< |
echo source $DB4_ROOT/etc/profile.d/init.sh ; \ |
26 |
< |
echo source $GDBM_ROOT/etc/profile.d/init.sh ; \ |
27 |
< |
echo source $DB4_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh |
13 |
> |
rm -rf %i/etc/profile.d |
14 |
> |
mkdir -p %i/etc/profile.d/ |
15 |
> |
dependenciesRoots="$PYTHON_ROOT $SQLITE_ROOT $PY2_SQLOBJECT_ROOT $PY2_PYSQLITE_ROOT $CHERRYPY_ROOT $YUI_ROOT \ |
16 |
> |
$ZLIB_ROOT $EXPAT_ROOT $OPENSSEL_ROOT $BZ2LIB_ROOT $DB4_ROOT $GDBM_ROOT $PY2_FORMENCODE_ROOT \ |
17 |
> |
$PY2_CHEETAH_ROOT $PRODCOMMON_ROOT $WEBTOOLS_ROOT $DBS_ROOT $DLS_ROOT $BOSS_ROOT \ |
18 |
> |
$PY2_MYSQLDB_ROOT $MYSQL_ROOT $PY2_PYCRYPTO_ROOT" |
19 |
> |
|
20 |
> |
touch %i/etc/profile.d/dependencies-setup.sh |
21 |
> |
touch %i/etc/profile.d/dependencies-setup.csh |
22 |
> |
|
23 |
> |
for pkg in $dependenciesRoots |
24 |
> |
do |
25 |
> |
echo $pkg |
26 |
> |
echo source $pkg/etc/profile.d/init.sh >> %i/etc/profile.d/dependencies-setup.sh |
27 |
> |
echo source $pkg/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh |
28 |
> |
done |
29 |
> |
|
30 |
|
%install |
31 |
|
cp -r * %i/ |
32 |
|
%post |
33 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
34 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
35 |
|
perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/PRODREQUEST |
36 |
+ |
# |