From f94e69df5ee12562012bdbbb552da226055c28e3 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Tue, 8 Jun 2021 13:59:32 +0200 Subject: [PATCH] Ship interface file within -selinux subpackage Signed-off-by: Vitezslav Crhonek --- mrtg.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mrtg.spec b/mrtg.spec index 01e945c..a73d722 100644 --- a/mrtg.spec +++ b/mrtg.spec @@ -6,12 +6,13 @@ # defining macros needed by SELinux %global with_selinux 1 %global selinuxtype targeted +%global moduletype contrib %global modulename mrtg Summary: Multi Router Traffic Grapher Name: mrtg Version: 2.17.7 -Release: 11%{?dist} +Release: 12%{?dist} URL: http://oss.oetiker.ch/mrtg/ Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz Source1: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5 @@ -147,6 +148,7 @@ sed -i 's;@@lib@@;%{_lib};g' "$RPM_BUILD_ROOT"%{_mandir}/man1/*.1 %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/%{moduletype}/%{name}.if %endif %post @@ -210,10 +212,14 @@ fi %if 0%{?with_selinux} %files selinux %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* +%{_datadir}/selinux/devel/include/%{moduletype}/%{modulename}.if %ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %endif %changelog +* Tue Jun 08 2021 Vitezslav Crhonek - 2.17.7-12 +- Ship interface file within -selinux subpackage + * Tue May 18 2021 Vitezslav Crhonek - 2.17.7-11 - Remove deprecated StandardOutput=syslog - Add LogLevelMax=notice to avoid loggin each start/stop of the service