From a32ccce2c2a8edce53e0c5fbaf95a907f41c4a01 Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Sun, 4 Jun 2017 11:34:11 +0200 Subject: [PATCH] added macro for Caja extension --- nextcloud-client.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nextcloud-client.spec b/nextcloud-client.spec index b639641..ea15f78 100644 --- a/nextcloud-client.spec +++ b/nextcloud-client.spec @@ -100,7 +100,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package provides overlay icons to visualize the sync state in the nemo file manager. -%if 0%{?fedora} >= 24 || 0%{?rhel} > 7 +# Only Fedora has Mate, so there is no need for Caja extension on EPEL +%if 0%{?fedora} %package caja Summary: Caja overlay icons Requires: caja @@ -162,6 +163,11 @@ rm -f %{buildroot}%{_qt5_plugindir}/nextclouddolphinactionplugin.so rm -f %{buildroot}%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop %endif +# Only Fedora has Mate, so there is no need for Caja extension on EPEL +%if 0%{?rhel} +rf -rf %{_datadir}/caja-python/ +%endif + %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml @@ -213,7 +219,8 @@ fi %files nemo %{_datadir}/nemo-python/extensions/* -%if 0%{?fedora} >= 24 || 0%{?rhel} > 7 +# Only Fedora has Mate, so there is no need for Caja extension on EPEL +%if 0%{?fedora} %files caja %{_datadir}/caja-python/extensions/* %endif