7 |
|
Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite |
8 |
|
|
9 |
|
%prep |
10 |
< |
%setup PRODREQUEST |
10 |
> |
%setup -n PRODREQUEST |
11 |
|
%build |
12 |
+ |
mkdir %i/etc/profile.d/ |
13 |
|
( echo source $PYTHON_ROOT/etc/profile.d/init.sh ; \ |
14 |
|
echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \ |
15 |
|
echo source $PY2_SQLOBJECT_ROOT/etc/profile.d/init.sh ; \ |
23 |
|
echo source $BZ2LIB_ROOT/etc/profile.d/init.sh ; \ |
24 |
|
echo source $DB4_ROOT/etc/profile.d/init.sh ; \ |
25 |
|
echo source $GDBM_ROOT/etc/profile.d/init.sh ; \ |
26 |
< |
echo source $DB4_ROOT/etc/profile.d/init.sh ; ) > %i/etc/profile.d/dependencies-setup.sh |
26 |
> |
echo source $DB4_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh |
27 |
|
%install |
28 |
|
cp -r * %i/ |
29 |
|
%post |
30 |
< |
perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX!" PRODREQUEST |
30 |
> |
perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/PRODREQUEST |