Blob Blame Raw
# RPM macros for eclipse packages.
#

%_eclipse_pkg() \
%define __name  %{lua:
  if rpm.expand("%#") == "0" 
  then 
    print("") 
  else
    print(rpm.expand("%1")) 
  end 
} \
\
Requires(post): eclipse-platform >= 1:3.7.0-8 \
Requires(postun): eclipse-platform >= 1:3.7.0-8 \
\
%post %__name \
touch /var/run/eclipse/run-reconciler \
\
%postun %__name\
touch /var/run/eclipse/run-reconciler \
\
if [ $1 == 0 ]; then \
  eclipse-reconciler.sh > /dev/null \
fi \
\
%posttrans %__name \
eclipse-reconciler.sh > /dev/null