[calligra] more (conditional) plannerconvert stuff

Rex Dieter rdieter at fedoraproject.org
Sat Dec 14 23:16:52 UTC 2013


commit 25432e1614c2cd1c35034df2ae172ea0d3c27896
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sat Dec 14 17:15:38 2013 -0600

    more (conditional) plannerconvert stuff

 calligra.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/calligra.spec b/calligra.spec
index f9e556c..e683a4d 100644
--- a/calligra.spec
+++ b/calligra.spec
@@ -602,7 +602,6 @@ fi
 %{_kde4_appsdir}/koproperty/
 %{_datadir}/mime/packages/msooxml-all.xml
 %{_datadir}/mime/packages/calligra_svm.xml
-#{_datadir}/mime/packages/calligra_planner_mpp.xml
 %{_datadir}/mime/packages/krita*.xml
 %{_kde4_iconsdir}/hicolor/*/*/*
 %{_kde4_iconsdir}/oxygen/*/*/*
@@ -1049,10 +1048,16 @@ fi
 
 %posttrans plan
 update-desktop-database -q &> /dev/null ||:
+%if 0%{?mpxj}
+update-mime-database %{_datadir}/mime >& /dev/null
+%endif
 
 %postun plan
 if [ $1 -eq 0 ] ; then
 update-desktop-database -q &> /dev/null ||:
+%if 0%{?mpxj}
+update-mime-database %{_datadir}/mime >& /dev/null
+%endif
 fi
 
 %files plan 
@@ -1070,12 +1075,15 @@ fi
 %{_kde4_libdir}/kde4/plankplatoimport.*
 %{_kde4_libdir}/kde4/krossmoduleplan.so
 %{_kde4_libdir}/kde4/plantjscheduler.so
-%{_kde4_libdir}/kde4/planconvert/
 %{_kde4_datadir}/kde4/servicetypes/plan_schedulerplugin.desktop
 %{_kde4_datadir}/kde4/servicetypes/plan_viewplugin.desktop
 %{_kde4_datadir}/kde4/services/krossmoduleplan.desktop
+%if 0%{mpxj}
+%{_kde4_libdir}/kde4/planconvert/
+%{_datadir}/mime/packages/calligra_planner_mpp.xml
 %{_kde4_datadir}/kde4/services/calligra_filter_mpp2plan.desktop
 %{_kde4_datadir}/kde4/services/calligra_filter_planner2plan.desktop
+%endif
 %{_kde4_appsdir}/plan/
 %{_kde4_appsdir}/planwork/
 %{_kde4_datadir}/config.kcfg/plansettings.kcfg


More information about the scm-commits mailing list