mebulbal.DeleteThis@gmail.com wrote:
> I have two problems :
> 1. I am trying to work on another path than /usr/src/redhat/
Very good. Working on building new rpms from a root account is
a loosing proposition. Change %_topdir in your own ~/.rpmmacros.
> I have cannot understand why I cant rid of :
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.96933
What this has to do with the above? Run 'rpmbuild --showrc | less'
to see what you have defined now and how. Checks like
'rpm --eval %_topdir' or 'rpm --eval %_builddir' can be of help
too.
> seems that my system ignores buildroot.
It rather appears that there is a misunderstanding what is used for
what.
> Requires: jdk-1.6.0_01-fcs
It appears that you really want
Requires: jdk
or, if that has to be _that_ specific, something like
Requires: jdk = 1.6.0_01-fcs
See
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch05s02.html#id2952678
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-advanced-packagin...tml#id2
> 2. I canot I tried to check java sdk - jdk-1.6.0_01-fcs, but even when
> Its installed I get error that I should install it ...
>
> rpm -ivh yaron.rpm
> error: Failed dependencies:
> jdk-1.6.0_01-fcs is needed by yaron
> [nxbuild@ybar-xp1 ~]$ rpm -q jdk
> jdk-1.6.0_01-fcs
If there is no mixup in architectures (this is not clear from the
above) then apparently you require a package with a name
"jdk-1.6.0_01-fcs" but you have installed a package with a name "jdk"
and "1.6.0_01-fcs" version (and who knows what release).
Michal