eclipse/macros.eclipse

16 lines
405 B
Plaintext
Raw Normal View History

# RPM macros for eclipse packages.
#
# 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
#symlinking platform repos
%_symlink \
_pattern="%1" \
_target="%2" \
_f=`ls | grep -e "^${_pattern}"`; \
rm -rf {_f} ; \
ln -s %{_javadir}/${_target} ${_f}