[SSSD] [PATCH] SPEC: Fix packaging rpms on OSes without systemd

Lukas Slebodnik lslebodn at redhat.com
Wed Feb 19 15:11:58 UTC 2014


ehlo,

I tested stef's patches "First batch of infrastructure patches"
and I wans not able to build rpms for rhel6.

Patch is attached

LS
-------------- next part --------------
>From e7b6bffb2b9e80ccd6678fcf611ca8086a6e574c Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Wed, 19 Feb 2014 15:40:56 +0100
Subject: [PATCH] SPEC: Fix packaging rpms on OSes without systemd

---
 contrib/sssd.spec.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index e0830f8f863a9a03b00793b9b324ae0ffebf4188..055de4accd52b3fbd66e2b1914da1f3356df208f 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -18,7 +18,7 @@
 %define __provides_exclude_from %{python_sitearch}/.*\.so$
 %endif
 
-%if (0%{?fedora} >= 16)
+%if (0%{?fedora} >= 16 || 0%{?rhel} >= 7)
     %global use_systemd 1
 %endif
 
@@ -585,8 +585,10 @@ rm -rf $RPM_BUILD_ROOT
 %attr(750,root,root) %dir %{_var}/log/%{name}
 %attr(711,root,root) %dir %{_sysconfdir}/sssd
 %ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
+%if (0%{?use_systemd} == 1)
 %attr(755,root,root) %dir %{_sysconfdir}/systemd/system/sssd.service.d
 %config(noreplace) %{_sysconfdir}/systemd/system/sssd.service.d/journal.conf
+%endif
 %config(noreplace) %{_sysconfdir}/logrotate.d/sssd
 %config(noreplace) %{_sysconfdir}/rwtab.d/sssd
 %dir %{_datadir}/sssd
-- 
1.8.5.3



More information about the sssd-devel mailing list