Dne 21.1.2014 01:54, Mo Morsi napsal(a):
On 01/10/2014 09:11 AM, Vít Ondruch wrote:
- Not sure if there is some neat way how to get rid of the
"-I%{buildroot}%{gem_extdir_mri}" from the %check section though :/ May be "-I$(dirs +1)%{gem_extdir_mri}" could be better pattern, since it points into ${_builddir}, i.e. into the directory where the test suite is executed. Any thoughts on this topic?
Could the buildroot correspondences of the standard ruby load directories be automatically pushed onto the LOAD_PATH in the %check section? Then the buildroot would just be seen as another standard location to all the ruby based tools. Or perhaps some more macro's could be used to hide some of these long bits.
Pushing buildroot on LOAD_PATH is not enough. More likely, you have something like GEM_PATH=%{buildroot}%{gem_dir} on your mind. Unfortunately that will not work as well, since it is not standard system path, so there is not expected that extensions are placed into %{gem_extdir_mri}.
Vít