On 09/03/09 21:14, Halton Huo wrote:
> Should be better if you do the renaming thing in %install rather than in
> %post.
>
> Another suggestion is using a loop clause instead in
> base-spec/ncurses.spec.
>
> -Halton
>
>
>>
>> +%post
>> +cd $RPM_BUILD_ROOT%{_prefix}/bin
>> +mkdir -p ../../bin
>> +mv captoinfo ../../bin/gcaptoinfo
>> +mv clear ../../bin/gclear
>> +mv infocmp ../../bin/ginfocmp
>> +mv infotocap ../../bin/ginfotocap
>> +mv reset ../../bin/greset
>> +mv tic ../../bin/gtic
>> +mv toe ../../bin/gtoe
>> +mv tput ../../bin/gtput
>> +mv tset ../../bin/gtset
>> +
>> +ln -s ../../bin/gcaptoinfo captoinfo
>> +ln -s ../../bin/gclear clear
>> +ln -s ../../bin/ginfocmp infocmp
>> +ln -s ../../bin/ginfotocap infotocap
>> +ln -s ../../bin/greset reset
>> +ln -s ../../bin/gtic tic
>> +ln -s ../../bin/gtoe toe
>> +ln -s ../../bin/gtput tput
>> +ln -s ../../bin/gtset tset
>> +
>> +%ifarch amd64 sparcv9
>> +cd $RPM_BUILD_ROOT%{_bindir}/%{_arch64}
>> +
>> +mv captoinfo ../../../bin/%{_arch64}/gcaptoinfo
>> +mv clear ../../../bin/%{_arch64}/gclear
>> +mv infocmp ../../../bin/%{_arch64}/ginfocmp
>> +mv infotocap ../../../bin/%{_arch64}/ginfotocap
>> +mv reset ../../../bin/%{_arch64}/greset
>> +mv tic ../../../bin/%{_arch64}/gtic
>> +mv toe ../../../bin/%{_arch64}/gtoe
>> +mv tput ../../../bin/%{_arch64}/gtput
>> +mv tset ../../../bin/%{_arch64}/gtset
>> +
>> +ln -s ../../../bin/%{_arch64}/gcaptoinfo captoinfo
>> +ln -s ../../../bin/%{_arch64}/gclear clear
>> +ln -s ../../../bin/%{_arch64}/ginfocmp infocmp
>> +ln -s ../../../bin/%{_arch64}/ginfotocap infotocap
>> +ln -s ../../../bin/%{_arch64}/greset reset
>> +ln -s ../../../bin/%{_arch64}/gtic tic
>> +ln -s ../../../bin/%{_arch64}/gtoe toe
>> +ln -s ../../../bin/%{_arch64}/gtput tput
>> +ln -s ../../../bin/%{_arch64}/gtset tset
>> +
>> +%endif
>> +
>> +
>> %files
>>
>
Hi Halton,
Sorry for the delay response.
I real should do renaming thing in %install rather than in %post,
otherwise it causes P1 bug [Bug 11335] Installation of <SUNWncurses> failed.
Please review the new one to fix [Bug 11335] .
BR,
-Simon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SUNWncurses.spec
URL:
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20090915/6f60fe93/attachment.ksh>