On 2010-11-24 16:10:40 +0100, Stefan Seyfried wrote:
I have a strange problem in project home:seife:openstack, packgage rubygem-ohai
It looks like $RPM_BUILD_ROOT is empty and %{buildroot} does not get expanded but is '%{buildroot}'. But only in the SLES11_SP1 repository.
I added this to the specfile:
%prep %setup -q -c -T echo $RPM_BUILD_ROOT echo %{buildroot} false
and got:
+ echo
+ echo '%{buildroot}' %{buildroot} + false
Can anybody explain this? This looks seriously broken to me, but I don't think I did anything wrong.
1. you didnt define buildroot in the preamble. so nothing can be expanded. only 11.3 or newer set buildroot automatically 2. use gem2rpm-opensuse to create your spec files. (package rubygem-gem2rpm) 3. once you are done SR the packages to devel:languages:ruby:extensions. (there you also find the gem2rpm package) darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org