From d98231d33e74252768ad5fbb2fc0225ad2d8e569 Mon Sep 17 00:00:00 2001 From: Viktor Ashirov Date: Fri, 19 Jan 2018 00:19:18 +0100 Subject: [PATCH] Issue 49542 - Unpackaged files on el7 break rpm build Bug Description: Some files are not created during build on el7, but are mentioned in %files section. Fix Description: Package them on only on Fedora and EL>7 https://pagure.io/389-ds-base/issue/49542 Reviewed by: ??? --- rpm/389-ds-base.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/389-ds-base.spec.in b/rpm/389-ds-base.spec.in index 9806bea13..4542ea4cc 100644 --- a/rpm/389-ds-base.spec.in +++ b/rpm/389-ds-base.spec.in @@ -491,11 +491,13 @@ fi %{_bindir}/* # We have to seperate this from being a glob to ensure the caps are applied. %caps(CAP_NET_BIND_SERVICE=pe) %{_sbindir}/ns-slapd +%if 0%{?rhel} >= 8 || 0%{?fedora} %{_sbindir}/dsconf %{_sbindir}/dscreate %{_sbindir}/dsctl %{_sbindir}/dsidm %{_sbindir}/ds-cockpit-setup +%endif %{_sbindir}/ds_selinux_enabled %{_sbindir}/ds_selinux_port_query %{_sbindir}/ds_systemd_ask_password_acl -- 2.14.3