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:
Sami Wagiaalla 2011-12-19 13:56:12 -05:00
parent 55ff88e237
commit 7a836001f0
3 changed files with 17 additions and 21 deletions

View File

@ -22,7 +22,8 @@ then
exit 0 exit 0
fi fi
tmp_dir=/var/run/eclipse tmp_dir=$(mktemp -d)
echo "Tmpdir: $tmp_dir"
if [ -e /usr/lib64/eclipse ] if [ -e /usr/lib64/eclipse ]
then then

View File

@ -17,7 +17,7 @@ Epoch: 1
Summary: An open, extensible IDE Summary: An open, extensible IDE
Name: eclipse Name: eclipse
Version: %{eclipse_majmin}.%{eclipse_micro} Version: %{eclipse_majmin}.%{eclipse_micro}
Release: 13%{?dist} Release: 14%{?dist}
License: EPL License: EPL
Group: Text Editors/Integrated Development Environments (IDE) Group: Text Editors/Integrated Development Environments (IDE)
URL: http://www.eclipse.org/ URL: http://www.eclipse.org/
@ -647,6 +647,10 @@ rm -rf %{_bindir}/efj/
%{_libdir}/%{name}/dropins/sdk %{_libdir}/%{name}/dropins/sdk
%changelog %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 * Fri Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> - 1:3.7.1-13
- Fix o.e.osgi.services pom to remove fake parent. - Fix o.e.osgi.services pom to remove fake parent.

View File

@ -1,28 +1,19 @@
# RPM macros for eclipse packages. # RPM macros for eclipse packages.
# #
%_eclipse_pkg() \ %_eclipse_pkg_post \
%define __name %{lua: touch /var/run/eclipse/run-reconciler
if rpm.expand("%#") == "0"
then %_eclipse_pkg_postun \
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\
touch /var/run/eclipse/run-reconciler \ touch /var/run/eclipse/run-reconciler \
\ \
if [ $1 == 0 ]; then \ if [ $1 == 0 ]; then \
eclipse-reconciler.sh > /dev/null \ eclipse-reconciler.sh > /dev/null \
fi \ fi \
\
%posttrans %__name \ %_eclipse_pkg_posttrans \
eclipse-reconciler.sh > /dev/null 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 \