Cleanups requested by FPC.
* Mon Dec 19 2011 Sami Wagiaalla <swagiaal@redhat.com> 1:3.7.1-9 - Remove _eclipse_pkg macro. - Use mktemp for creating a backup directory in eclipse-reconciler.sh
This commit is contained in:
parent
55ff88e237
commit
7a836001f0
@ -22,7 +22,8 @@ then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
tmp_dir=/var/run/eclipse
|
||||
tmp_dir=$(mktemp -d)
|
||||
echo "Tmpdir: $tmp_dir"
|
||||
|
||||
if [ -e /usr/lib64/eclipse ]
|
||||
then
|
||||
|
@ -17,7 +17,7 @@ Epoch: 1
|
||||
Summary: An open, extensible IDE
|
||||
Name: eclipse
|
||||
Version: %{eclipse_majmin}.%{eclipse_micro}
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
License: EPL
|
||||
Group: Text Editors/Integrated Development Environments (IDE)
|
||||
URL: http://www.eclipse.org/
|
||||
@ -647,6 +647,10 @@ rm -rf %{_bindir}/efj/
|
||||
%{_libdir}/%{name}/dropins/sdk
|
||||
|
||||
%changelog
|
||||
* Mon Jan 19 2012 Sami Wagiaalla <swagiaal@redhat.com> 1:3.7.1-14
|
||||
- Remove _eclipse_pkg macro.
|
||||
- Use mktemp for creating a backup directory in eclipse-reconciler.sh
|
||||
|
||||
* Fri Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> - 1:3.7.1-13
|
||||
- Fix o.e.osgi.services pom to remove fake parent.
|
||||
|
||||
|
@ -1,28 +1,19 @@
|
||||
# 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\
|
||||
%_eclipse_pkg_post \
|
||||
touch /var/run/eclipse/run-reconciler
|
||||
|
||||
%_eclipse_pkg_postun \
|
||||
touch /var/run/eclipse/run-reconciler \
|
||||
\
|
||||
if [ $1 == 0 ]; then \
|
||||
eclipse-reconciler.sh > /dev/null \
|
||||
fi \
|
||||
\
|
||||
%posttrans %__name \
|
||||
|
||||
%_eclipse_pkg_posttrans \
|
||||
eclipse-reconciler.sh > /dev/null
|
||||
|
||||
%_eclipse_pkg_reqs \
|
||||
Requires(post): eclipse-platform >= 1:3.7.0-8 \
|
||||
Requires(postun): eclipse-platform >= 1:3.7.0-8 \
|
||||
|
Loading…
Reference in New Issue
Block a user