eclipse/macros.eclipse
Krzysztof Daniel 03ba9e74ea Introduce a macro for symlinking.
Bug 851190 - eclipse CBI build does not Requires: icu4j-eclipse
2012-08-24 09:26:01 +02:00

16 lines
405 B
Plaintext

# 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}