[eclipse-emf] Run reconciler in post.

sami wagiaalla swagiaal at fedoraproject.org
Wed Oct 5 20:38:23 UTC 2011


commit 1eb622a535001101bee6e7b2761c7fe1258f12c1
Author: Sami Wagiaalla <swagiaal at redhat.com>
Date:   Wed Oct 5 11:51:30 2011 -0400

    Run reconciler in post.
    
    - Use the reconciler to install/uninstall plugins during rpm
      post and postun respectively.

 eclipse-emf.spec |   39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 insertions(+), 2 deletions(-)
---
diff --git a/eclipse-emf.spec b/eclipse-emf.spec
index b5a9603..d3959df 100644
--- a/eclipse-emf.spec
+++ b/eclipse-emf.spec
@@ -3,7 +3,7 @@
 
 Name:      eclipse-emf
 Version:   2.7.0
-Release:   1%{?dist}
+Release:   2%{?dist}
 Summary:   Eclipse Modeling Framework (EMF) Eclipse plugin
 Group:     System Environment/Libraries
 License:   EPL
@@ -38,7 +38,7 @@ BuildRequires:    eclipse-pde >= 1:3.6.1
 BuildRequires:    dos2unix
 Requires:         java
 Requires:         jpackage-utils
-Requires:         eclipse-platform >= 1:3.6.1
+Requires:         eclipse-platform >= 1:3.7.0-5
 
 # the standalone package was deprecated and removed in EMF 2.3 (see eclipse.org bug #191837)
 Obsoletes:        %{name}-standalone < 2.4
@@ -177,6 +177,37 @@ unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-examples build/rpmBuild/org.ecl
 (cd %{buildroot}%{eclipse_dropin}/xsd-sdk/eclipse/features && ls %{buildroot}%{eclipse_dropin}/xsd/eclipse/features | xargs rm -rf)
 (cd %{buildroot}%{eclipse_dropin}/xsd-sdk/eclipse/plugins  && ls %{buildroot}%{eclipse_dropin}/xsd/eclipse/plugins  | xargs rm -rf)
 
+%post
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%postun
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%post sdk
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%postun sdk
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%post xsd
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%postun xsd
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%post xsd-sdk
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%postun xsd-sdk
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%post examples
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+%postun examples
+eclipse-reconciler.sh %{_libdir}/eclipse %{_tmppath} > /dev/null
+
+
 %clean
 rm -rf %{buildroot}
 
@@ -203,6 +234,10 @@ rm -rf %{buildroot}
 %{eclipse_dropin}/emf-examples
 
 %changelog
+* Wed Oct 5 2011 Sami Wagiaalla <swagiaal at redhat.com> 2.7.0-2
+- Use the reconciler to install/uninstall plugins during rpm
+  post and postun respectively.
+
 * Thu Sep 15 2011 Roland Grunberg <rgrunber at redhat.com> 2.7.0-1
 - Update to 2.7.0.
 - Re-apply necessary patches, content-handler error fixed upstream.


More information about the scm-commits mailing list