- Change eclipse-reconciler script to run with no arguments. - Use initscripts to create run directory. - Run reconciler only once per install transaction.
26 lines
397 B
Plaintext
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
|