summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2016-01-01 02:18:34 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2016-01-01 02:18:34 +0100
commit28b91af4da78e78e4842d84cb04f9ab8be489584 (patch)
tree99b9ecd77f9a91bf6877d5fb6c0cadea763df257 /redhat
parenta30d722e77ebc1c23768995d04084cc64a7be415 (diff)
downloadtde-packaging-28b91af4da78e78e4842d84cb04f9ab8be489584.tar.gz
tde-packaging-28b91af4da78e78e4842d84cb04f9ab8be489584.zip
RPM packaging: fix ktechlab build on opensuse tumbleweed
Diffstat (limited to 'redhat')
-rw-r--r--redhat/applications/knemo/knemo-14.0.0.spec2
-rw-r--r--redhat/applications/ktechlab/ktechlab-14.0.0.spec7
2 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/knemo/knemo-14.0.0.spec b/redhat/applications/knemo/knemo-14.0.0.spec
index 47de607e9..cc512079b 100644
--- a/redhat/applications/knemo/knemo-14.0.0.spec
+++ b/redhat/applications/knemo/knemo-14.0.0.spec
@@ -78,7 +78,7 @@ BuildRequires: brp-check-trinity
BuildRequires: gettext
-%if 0%{?fedora} >= 18 || 0%{?suse_version}
+%if 0%{?fedora} >= 18 || 0%{?suse_version} || 0%{?mgaversion}
%if 0%{?suse_version} >= 1330
BuildRequires: net-tools-deprecated
Requires: net-tools-deprecated
diff --git a/redhat/applications/ktechlab/ktechlab-14.0.0.spec b/redhat/applications/ktechlab/ktechlab-14.0.0.spec
index ce835aff5..4cdac7bdb 100644
--- a/redhat/applications/ktechlab/ktechlab-14.0.0.spec
+++ b/redhat/applications/ktechlab/ktechlab-14.0.0.spec
@@ -134,6 +134,12 @@ export PATH="%{tde_bindir}:${PATH}"
%find_lang %{tde_pkg}
+# Updates applications categories for openSUSE
+%if 0%{?suse_version}
+%suse_update_desktop_file -r -n ktechlab Science Math
+%endif
+
+
%clean
%__rm -rf %{buildroot}
@@ -142,6 +148,7 @@ export PATH="%{tde_bindir}:${PATH}"
touch --no-create %{tde_datadir}/icons/hicolor || :
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
%postun
touch --no-create %{tde_datadir}/icons/hicolor || :
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :