Skip to content

Commit

Permalink
Add condition to spec file
Browse files Browse the repository at this point in the history
Add condition to spec file because SELinux interface
files with ifndef don’t work on rhel <8.4 and Fedora <33
  • Loading branch information
5umm3r15 committed May 5, 2021
1 parent f32ce95 commit 6a2877b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions glusterfs-selinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ fi


%files
%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.*
%ghost %attr(700, root, root) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
%if 0%{?fedora} >= 33 || 0%{?rhel} > 8
%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.*
%endif
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
%license COPYING


Expand Down

0 comments on commit 6a2877b

Please sign in to comment.