[Mageia-dev] Help with package
Juan Luis Baptiste
juancho at mageia.org
Fri Jan 4 05:43:24 CET 2013
On Thu, Jan 3, 2013 at 6:22 PM, Juan Luis Baptiste <juancho at mageia.org>wrote:
>
>
> On Thu, Jan 3, 2013 at 6:10 PM, Charles A Edwards <CAE at 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.
>
>
>
Nope it didn't work either, with Charle's suggestion I get this error:
ln: target ‘/usr/lib64/games/warsow/basewsw/’ is not a directory: No such
file or directory
Which I don't understand why it says no such file or directory if that's
the link I want to create. And /usr/lib64/games/warsow exists. I also tried
the for loop option with no success either:
for i in `%{_datadir}/%{name}/basewsw/*`;
do
file=`basename $i`
ln -sf $i %{gamelibdir}/basewsw/$file
done
/var/tmp/rpm-tmp.HdlyUk: line 7: /usr/share/warsow-data/basewsw/*: No such
file or directory
It seems as if the expression `%{_datadir}/%{name}/basewsw/*` (don't mind
the left quotes, it happens the same with them or not) of the for loop
wasn't being expanded and $i ends with the literal value '*'.
Any other suggestions ?
--
Juancho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-dev/attachments/20130103/53183d2d/attachment.html>
More information about the Mageia-dev
mailing list