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 2.7.0-2 +- Use the reconciler to install/uninstall plugins during rpm + post and postun respectively. + * Thu Sep 15 2011 Roland Grunberg 2.7.0-1 - Update to 2.7.0. - Re-apply necessary patches, content-handler error fixed upstream.