Add support for RHEL 7 and greater in the spec file when building RPMs.
---
 opensaf.spec.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/opensaf.spec.in b/opensaf.spec.in
index 37be5de6d..f19e17aec 100644
--- a/opensaf.spec.in
+++ b/opensaf.spec.in
@@ -15,13 +15,13 @@
 %define is_ais_msg %(test "@AIS_MSG_ENABLED@" = "yes" && echo 1 || echo 0)
 %define is_ais_smf %(test "@AIS_SMF_ENABLED@" = "yes" && echo 1 || echo 0)

-%if (0%{?suse_version} >= 1210 || 0%{?fedora} >= 18)
+%if (0%{?suse_version} >= 1210 || 0%{?fedora} >= 18 || 0%{?rhel} >= 7)
 %define use_systemd 1
 %if 0%{?suse_version} >= 1210
 %define _systemd_preun() %{service_del_preun}
 %define _systemd_post() %{service_add_post}
 %endif
-%if (0%{?fedora} >= 18)
+%if (0%{?fedora} >= 18 || 0%{?rhel} >= 7)
 %define _systemd_preun() %{systemd_preun}
 %define _systemd_post() %{systemd_post}
 %endif
--
2.20.1


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of 
Ribbon Communications Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  
Any review, disclosure, reliance or
distribution by others or forwarding without express permission is strictly 
prohibited.  If you are not the intended
recipient, please notify the sender immediately and then delete all copies, 
including any attachments.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to