2011-10-14 13:32:19 +00:00
|
|
|
# RPM macros for eclipse packages.
|
|
|
|
#
|
|
|
|
|
2012-04-04 13:58:56 +00:00
|
|
|
# There is no guarantee that %%{_libdir} will resolve properly on
|
|
|
|
# noarch so we use this macro.
|
|
|
|
%_eclipse_bits %(rpm --eval %{__isa_bits} | sed 's/32//')
|
|
|
|
%_eclipse_base %{_prefix}/lib%{_eclipse_bits}/eclipse
|
2012-08-24 07:26:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
#symlinking platform repos
|
|
|
|
%_symlink \
|
|
|
|
_pattern="%1" \
|
|
|
|
_target="%2" \
|
|
|
|
_f=`ls | grep -e "^${_pattern}"`; \
|
|
|
|
rm -rf {_f} ; \
|
|
|
|
ln -s %{_javadir}/${_target} ${_f}
|