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