|
Sami Wagiaalla |
67ffc32 |
# RPM macros for eclipse packages.
|
|
Sami Wagiaalla |
67ffc32 |
#
|
|
Sami Wagiaalla |
67ffc32 |
|
|
|
d30270e |
# There is no guarantee that %%{_libdir} will resolve properly on
|
|
|
d30270e |
# noarch so we use this macro.
|
|
|
d30270e |
%_eclipse_bits %(rpm --eval %{__isa_bits} | sed 's/32//')
|
|
|
d30270e |
%_eclipse_base %{_prefix}/lib%{_eclipse_bits}/eclipse
|
|
Krzysztof Daniel |
03ba9e7 |
|
|
Krzysztof Daniel |
03ba9e7 |
|
|
Krzysztof Daniel |
03ba9e7 |
#symlinking platform repos
|
|
Krzysztof Daniel |
03ba9e7 |
%_symlink \
|
|
Krzysztof Daniel |
03ba9e7 |
_pattern="%1" \
|
|
Krzysztof Daniel |
03ba9e7 |
_target="%2" \
|
|
Krzysztof Daniel |
03ba9e7 |
_f=`ls | grep -e "^${_pattern}"`; \
|
|
Krzysztof Daniel |
03ba9e7 |
rm -rf {_f} ; \
|
|
Krzysztof Daniel |
03ba9e7 |
ln -s %{_javadir}/${_target} ${_f}
|