eclipse/macros.eclipse
Sami Wagiaalla 67ffc326a6 Speed up reconciliation.
- Change eclipse-reconciler script to run with no arguments.
- Use initscripts to create run directory.
- Run reconciler only once per install transaction.
2011-10-19 17:13:22 -04:00

26 lines
397 B
Plaintext

# RPM macros for eclipse packages.
#
%_eclipse_pkg() \
%define __name %{lua:
if rpm.expand("%#") == "0"
then
print("")
else
print(rpm.expand("%1"))
end
} \
\
%post %__name \
touch /var/run/eclipse/run-reconciler \
\
%postun %__name\
touch /var/run/eclipse/run-reconciler \
\
if [ $1 == 0 ]; then \
eclipse-reconciler.sh \
fi \
\
%posttrans %__name \
eclipse-reconciler.sh