simplify selinux policy path for ci tests

This commit is contained in:
Michal Hlavinka 2021-04-28 12:09:52 +02:00
parent 6190b96adf
commit 0d3bf34c03
4 changed files with 8 additions and 9 deletions

View File

@ -7,7 +7,7 @@
Summary: Tools for monitoring SMART capable hard disks Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools Name: smartmontools
Version: 7.2 Version: 7.2
Release: 5%{?dist} Release: 6%{?dist}
Epoch: 1 Epoch: 1
License: GPLv2+ License: GPLv2+
URL: http://smartmontools.sourceforge.net/ URL: http://smartmontools.sourceforge.net/
@ -17,9 +17,9 @@ Source4: smartdnotify
#semi-automatic update of drivedb.h #semi-automatic update of drivedb.h
%global UrlSource5 https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw %global UrlSource5 https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw
Source5: drivedb.h Source5: drivedb.h
Source6: selinux_%{modulename}.te Source6: %{modulename}.te
Source7: selinux_%{modulename}.if Source7: %{modulename}.if
Source8: selinux_%{modulename}.fc Source8: %{modulename}.fc
#fedora/rhel specific #fedora/rhel specific
Patch1: smartmontools-5.38-defaultconf.patch Patch1: smartmontools-5.38-defaultconf.patch
@ -61,11 +61,7 @@ Custom SELinux policy module for smartmontools
cp %{SOURCE5} . cp %{SOURCE5} .
%if 0%{?with_selinux} %if 0%{?with_selinux}
mkdir selinux mkdir selinux
for srcf in %{SOURCE6} %{SOURCE7} %{SOURCE8} cp -p %{SOURCE6} %{SOURCE7} %{SOURCE8} selinux/
do
dstf=${srcf##*/selinux_}
cp -p $srcf $dstf
done
%endif %endif
%build %build
@ -158,6 +154,9 @@ fi
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
%changelog %changelog
* Wed Apr 28 2021 Michal Hlavinka <mhlavink@redhat.com> - 1:7.2-6
- simplify selinux policy path for ci tests
* Mon Apr 19 2021 Michal Hlavinka <mhlavink@redhat.com> - 1:7.2-5 * Mon Apr 19 2021 Michal Hlavinka <mhlavink@redhat.com> - 1:7.2-5
- add selinux sub-package - add selinux sub-package