update spec file to handle EL selinux reqs

f40
Mukundan Ragavan 2 years ago
parent ee9766a601
commit 8e4138b576

@ -17,6 +17,12 @@ Source1: com.nextcloud.desktopclient.nextcloud.metainfo.xml
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3BVLBS4B3XHJEXFVGD7RK2ZMXZG6JQZT/
Patch0: xcb_%{version}.patch
%if 0%{?rhel}
BuildRequires: rpmautospec-rpm-macros
BuildRequires: policycoreutils
%endif
BuildRequires: check
BuildRequires: chrpath
BuildRequires: cmake
@ -186,6 +192,15 @@ rm -rf %{buildroot}%{_datadir}/nemo-python/
rm -rf %{buildroot}%{_datadir}/caja-python/
%endif
%post
%if 0%{?rhel}
setsebool -P selinuxuser_execmod=on
%endif
%postun
%if 0%{?rhel}
setsebool -P selinuxuser_execmod=off
%endif
%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.nextcloud.desktopclient.nextcloud.metainfo.xml

Loading…
Cancel
Save