From b592c703c1839015b058459ba1edea5d76783e71 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 19 Jul 2023 23:10:22 +0200 Subject: [PATCH] install .if to distributed selinux directory --- smartmontools.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/smartmontools.spec b/smartmontools.spec index a1cbf8b..7d95bb9 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -62,13 +62,7 @@ Custom SELinux policy module for smartmontools cp %{SOURCE5} . %if 0%{?with_selinux} mkdir selinux -cp -p %{SOURCE7} %{SOURCE8} selinux/ -%if %{?fedora}0 > 330 -cp -p %{SOURCE6} selinux/ -%else -cp -p %{SOURCE9} selinux/smartmon.te -%endif - +cp -p %{SOURCE6} %{SOURCE7} %{SOURCE8} selinux/ %endif %build @@ -102,6 +96,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} %if 0%{?with_selinux} install -D -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 +install -D -p -m 0644 selinux/%{modulename}.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/%{modulename}.if %endif %if 0%{?with_selinux} @@ -157,8 +152,11 @@ fi %{_sharedstatedir}/%{name} %files selinux +%license COPYING %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* -%ghost %attr(0700,-,-) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} +%{_datadir}/selinux/devel/include/distributed/%{modulename}.if +%ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} + %changelog * Wed Apr 05 2023 Michal Hlavinka - 1:7.3-6