2011-10-14 13:32:19 +00:00
|
|
|
# RPM macros for eclipse packages.
|
|
|
|
#
|
|
|
|
|
|
|
|
%_eclipse_pkg() \
|
|
|
|
%define __name %{lua:
|
|
|
|
if rpm.expand("%#") == "0"
|
|
|
|
then
|
|
|
|
print("")
|
|
|
|
else
|
|
|
|
print(rpm.expand("%1"))
|
|
|
|
end
|
|
|
|
} \
|
|
|
|
\
|
2011-10-26 20:49:10 +00:00
|
|
|
Requires(post): eclipse-platform >= 1:3.7.0-8 \
|
|
|
|
Requires(postun): eclipse-platform >= 1:3.7.0-8 \
|
|
|
|
\
|
2011-10-14 13:32:19 +00:00
|
|
|
%post %__name \
|
|
|
|
touch /var/run/eclipse/run-reconciler \
|
|
|
|
\
|
|
|
|
%postun %__name\
|
|
|
|
touch /var/run/eclipse/run-reconciler \
|
|
|
|
\
|
|
|
|
if [ $1 == 0 ]; then \
|
2011-10-20 19:33:03 +00:00
|
|
|
eclipse-reconciler.sh > /dev/null \
|
2011-10-14 13:32:19 +00:00
|
|
|
fi \
|
|
|
|
\
|
|
|
|
%posttrans %__name \
|
2011-10-20 19:33:03 +00:00
|
|
|
eclipse-reconciler.sh > /dev/null
|