Re: [Mageia-dev] Help with package

2013-01-07 Thread Juan Luis Baptiste
On Sat, Jan 5, 2013 at 2:02 AM, Juan Luis Baptiste juan...@mageia.orgwrote: 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

Re: [Mageia-dev] Help with package

2013-01-07 Thread Juan Luis Baptiste
Hi Colin, On Mon, Jan 7, 2013 at 5:53 AM, Colin Guthrie mag...@colin.guthr.ie wrote: 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,

Re: [Mageia-dev] Help with package

2013-01-04 Thread sardine
juan...@mageia.org A : Mageia development mailing-list mageia-dev@mageia.org Copie à : Sujet : [Mageia-dev] Help with package Hi, I'm having a strange problem with warsow's package. To fix bug #8103 I need to symlink the game data contents from warsow-data into the same directory were the game

Re: [Mageia-dev] Help with package

2013-01-04 Thread Juan Luis Baptiste
On Fri, Jan 4, 2013 at 7:11 AM, sardine sardine...@sfr.fr wrote: Hi, This should work : pushd %{buildroot}%{_datadir}/%{name}/basewsw for i in *; do file=`basename $i` ln -sf %{_datadir}/%{name}/basewsw/$i %{buildroot}%{gamelibdir}/basewsw/$file done popd Got it working with:

[Mageia-dev] Help with package

2013-01-03 Thread Juan Luis Baptiste
Hi, I'm having a strange problem with warsow's package. To fix bug #8103 I need to symlink the game data contents from warsow-data into the same directory were the game libraries are located. The problem is that when I build the package in my local cauldron installation, the symlinks are

Re: [Mageia-dev] Help with package

2013-01-03 Thread David Walser
Juan Luis Baptiste juancho@... writes: ln -sf %{_datadir}/%{name}/basewsw/*  %{buildroot}%{gamelibdir}/basewsw That creates absolute symlinks rather than relative ones. You shouldn't do absolute ones. for i in %{_datadir}/%{name}/basewsw/*; do   file=`basename $i`   ln -sf $i  

Re: [Mageia-dev] Help with package

2013-01-03 Thread Charles A Edwards
On Thu, 3 Jan 2013 22:23:40 + (UTC) David Walser wrote: ln -sf %{_datadir}/%{name}/basewsw/*  %{buildroot}%{gamelibdir}/basewsw That creates absolute symlinks rather than relative ones. You shouldn't do absolute ones. for i in %{_datadir}/%{name}/basewsw/*; do  

Re: [Mageia-dev] Help with package

2013-01-03 Thread Juan Luis Baptiste
On Thu, Jan 3, 2013 at 5:23 PM, David Walser luigiwal...@yahoo.com wrote: for i in %{_datadir}/%{name}/basewsw/*; do file=`basename $i` ln -sf $i %{buildroot}%{gamelibdir}/basewsw/$file done Looks better, that should make relative links. The problem is in the first line, the

Re: [Mageia-dev] Help with package

2013-01-03 Thread Juan Luis Baptiste
On Thu, Jan 3, 2013 at 6:10 PM, Charles A Edwards c...@eslrahc.com wrote:. Why not have it created in post by the warsow-data rpm? %post ln -sf %{_datadir}/warsow/basewsw/* %{gamelibdir}/basewsw %postun rm -rf %{gamelibdir}/basewsw Good idea, going to try this. -- Juancho

Re: [Mageia-dev] Help with package

2013-01-03 Thread Juan Luis Baptiste
On Thu, Jan 3, 2013 at 6:22 PM, Juan Luis Baptiste juan...@mageia.orgwrote: On Thu, Jan 3, 2013 at 6:10 PM, Charles A Edwards c...@eslrahc.comwrote:. Why not have it created in post by the warsow-data rpm? %post ln -sf %{_datadir}/warsow/basewsw/* %{gamelibdir}/basewsw %postun rm -rf