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
|