On Sat, Jan 5, 2013 at 2:02 AM, Juan Luis Baptiste <juancho@mageia.org> wrote:

 Got it working with:

for i in `%{_datadir}/warsow/basewsw/*`;
do
   file=`basename $i`
   ln -sf $i  %{gamelibdir}/basewsw/$file
done 

The game name in the for loop was wrong.



Well, it worked on x86_64, but  on i586 the symlinks are created under /usr/lib64/games/warsow/basewsw instead of /usr/lib/games/warsow/basewsw but I don't understand why, it seems that for some reason, the %{_libdir} macro is expanding to /usr/lib64 on the BS. This is the spec if someone wants to take a look:

http://svnweb.mageia.org/packages/cauldron/warsow-data/current/SPECS/warsow-data.spec?revision=338836&view=markup

--
Juancho